Title: [PATCH] minor performance improvement
Last modified: August 21, 2016

---

# [PATCH] minor performance improvement

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/patch-minor-performance-improvement/)
 * The following
 *     ```
       function init_ald_crp(){
       	if (function_exists('register_widget')) {
       		register_widget('WidgetCRP');
       	}
       }
       add_action('init', 'init_ald_crp', 1);
       ```
   
 * should be using _widgets\_init_ not _init_ hook as per [the documentation](http://codex.wordpress.org/Widgets_API).
 * [http://wordpress.org/plugins/contextual-related-posts/](http://wordpress.org/plugins/contextual-related-posts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/patch-minor-performance-improvement/#post-4309255)
 * Thank you once again. I’ll put this through. Didn’t realise there was a change.
 * Is there really a performance increase because of this?
 *  Thread Starter [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/patch-minor-performance-improvement/#post-4309256)
 * Some pages (such as AJAX) don’t require widget inits. I’m sure there are other
   places but that was just off the top of my head.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/patch-minor-performance-improvement/#post-4309257)
 * Understood. It definitely will help not having to load all the code every single
   time!
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/patch-minor-performance-improvement/#post-4309385)
 * Hi,
 * I’ve changed the code to use widget_init in the current version of the plugin
   1.8.10.2

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[PATCH] minor performance improvement’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/patch-minor-performance-improvement/#post-4309385)
 * Status: resolved