Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561

There really is nothing anyone here can do for you with such limited information. It is obviously something within your recent changes. If you use a version control system (as everybody really should), I would roll back the changes and then from there slowly re-implement the changes that were causing this error to track it … Read more

WordPress as framework

To run a plugin only when it is needed the plugin author has to identify the pages where the code actually does something. WordPress offers a surprisingly simple way to do that: the global variable $pagenow. It is set before a plugin is called in wp-includes/vars.php. In a spam block plugin I have written recently … Read more

How accurate is P3 Plugin profiler

Checkout this page from GoDaddy: http://support.godaddy.com/help/article/7360/using-the-wordpress-plugin-performance-profiler-p3 It gives a pretty good overview of the P3 Plugin Profiler and should be able to answer your questions. There’s definitely error involved, and it should really just be used as a guideline.

How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]

As per WP Code Snippet blog, it looks like this is one way: Add this code snippet to your functions.php file. // add async and defer to javascripts function wcs_defer_javascripts ($url) { if (strpos($url, ‘.js’) === FALSE) { return $url; } if (strpos($url, ‘jquery.js’)) { return $url; } return “$url’ async onload=’myinit()”; } add_filter(‘clean_url’, ‘wcs_defer_javascripts’, … Read more