Results 1 to 2 of 2

Thread: Update Needed theme-widgets.php

  1. #1
    Thread Starter
    Amateur smedawar's Avatar
    Join Date
    Aug 2011
    Location
    United States
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Update Needed theme-widgets.php

    Hello Friends,

    You are registering the custom sidebar widgets incorrectly. Please do not trigger a WordPress action like this. Init actions SHOULD NOT be triggered again. Here's more info on how to do this correctly: https://codex.wordpress.org/Widgets_API

    Here is the corrected code that will not interfere with other plugins and widgets:

    // register the custom sidebar widgets
    function jr_widgets_init() {
    if (!is_blog_installed())
    return;

    register_widget('JR_Widget_250ad');
    register_widget('JR_Widget_pack_pricing');
    register_widget('JR_Widget_125ads');
    register_widget('JR_Widget_Facebook');
    register_widget('JR_Widget_Social');
    register_widget('JR_Widget_Recent_Jobs');
    register_widget('JR_Widget_Job_Categories');
    register_widget('JR_Widget_Top_Listings_Today');
    register_widget('JR_Widget_Top_Listings_Overall');
    register_widget('JR_Widget_Jobs_Tag_Cloud');
    register_widget('JR_Widget_Resumes_Tag_Cloud');
    register_widget('JR_Widget_Resume_Categories');

    }

    add_action('widgets_init', 'jr_widgets_init', 1);

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Missing widgets and menus after update to classipress 3.2
    By andreuerj in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 3rd, 2014, 03:23 PM
  2. [SOLVED] Footer Widgets not working after update
    By kaymansolutions in forum Prima
    Replies: 1
    Last Post: May 14th, 2013, 03:55 AM
  3. Dimitris Update to 3.2.1 but keep old widgets settings for theme
    By smallbiz in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: March 8th, 2013, 08:19 AM
  4. Replies: 0
    Last Post: November 15th, 2012, 12:05 AM
  5. Update regarding new Classipress 3.1 NEEDED
    By mridea in forum Report ClassiPress Bugs
    Replies: 64
    Last Post: November 2nd, 2010, 05:17 PM