WordPress.org

Ready to get started?Download WordPress

Forums

Radio Buttons for Taxonomies
[resolved] Warning in 1.4.2 (10 posts)

  1. Brian Cruikshank
    Member
    Posted 1 year ago #

    I upgraded from 1.3 to 1.4.2 in my test site and I'm now getting this warning with WP_DEBUG set to true:

    Notice: Undefined property: stdClass::$parent in /var/www/test.dev/wp-includes/class-wp-walker.php on line 205

    The warning is in the radio button taxonomy on the post edit screen.

    http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/

  2. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    What screen are you seeing that on? Is RBFT the only plugin you have active?

  3. Brian Cruikshank
    Member
    Posted 1 year ago #

    Here is a screenshot. Was working fine in 1.3. Only occurs when Radio Buttons for Taxonomies is active.

  4. Brian Cruikshank
    Member
    Posted 1 year ago #

    Also, is there a way to turn 'no term' off? I want a selection to be a requirement. 'No term' shouldn't be an option.

  5. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the screenshot, that helps.

    Figures you'd want to turn 'no term' off. I added it b/c someone else wanted it! :) I'll have to investigate adding a filter or plugin option.

  6. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    Brian, in the short-term you can remove the "no term" option by removing the filter I am applying to get_terms.

    For example, to disable for a taxonomy called genre:

    function remove_no_term(){
      global $Radio_Buttons_for_Taxonomies;
      remove_filter('get_terms', array( $Radio_Buttons_for_Taxonomies->genre, 'get_terms' ) );
    }
    add_action( 'admin_init', 'remove_no_term' );

    I'll try to add better filters in the future...

  7. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    In the next release you will be able to do:

    add_filter('radio-buttons-for-taxonomies-no-term-genre', '__return_FALSE' );

    if you want to disable the "no term" option on the genre taxonomy.

    I've got another issue in github to deal with before i push out an update.... but hopefully this week.

  8. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    Also, the upcoming update should resolve the PHP warning

  9. Brian Cruikshank
    Member
    Posted 1 year ago #

    Cool. My sites are just remaining in 1.3 for now.

    Thanks for all the updates.

  10. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    I pushed out an update with a couple of bug fixes earlier today, it should be in the repo now. 1.4.3. I would suggest trying it out on one site... preferably a demo/test area.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.