Enable WordPress AJAX requests to set the language locale through WPML with this small patch.
An interesting gotcha that I stumbled across recently, sending a 404 response code with a download forced by Content-Disposition: attachment will fail but inline content will still be displayed. This behaviour was tested in both Chrome and FireFox.
Of course the appropriate response code should always be sent; this 404 response code was being sneaked in by WordPress and led to hours of frustration.… Read the rest
A rather frustrating bug that I became aware of when generating navigational menus for custom post types using wp_list_pages(). The list entries aren’t decorated with useful classes denoting the current item, the parent item, and ancestor(s).
Read about the issue here.… Read the rest
So Yoast’s Google Analytics for WordPress plugin has a somewhat annoying “bug”, or oversight rather , where it rewrites relative link URLS to full URLs, including anchors. For example, <a href="#anchor"> becomes <a href="http://planetjon.ca/blah/#anchor">. There is more information about this on the wordpress forums.… Read the rest