WordPress.org

Ready to get started?Download WordPress

Forums

SEO Ultimate
[resolved] Checkbox not working (Nofollow: Tell search engines not to spider...) (3 posts)

  1. Ed Orsini
    Member
    Posted 1 year ago #

    For a post or page, under the SEO settings, after you select the checkbox containing "Nofollow: Tell search engines not to spider links on this webpage." and save the post or page, the checkbox is unchecked.

    In other words, the checkbox does not save the value. It resets to to unchecked and saves it.

    Is anyone having this same problem?

    Thanks,

    -- Ed

    http://wordpress.org/extend/plugins/seo-ultimate/

  2. Ed Orsini
    Member
    Posted 1 year ago #

    Quick update:

    I found the culprit and have fixed the issue. In case anyone is interested, the issue is in the function: save_postmeta_box() in seo-ultimate/plugin/class.seo-ultimate.php

    In short, the meta_robots_noindex key would be fine. However, the meta_robots_nofollow key would get lost. The code was expecting the key to be "meta_robots_noindex|meta_robots_nofollow" to work properly, but the code was generating only "meta_robots_noindex". If you add the following if statement above the explode line, it will work:

    if ($fields == 'meta_robots_noindex') {
      $fields .= '|meta_robots_nofollow';
    }

    Again, this is only a quick fix and hopefully this will be patched on the next version.

  3. John
    Member
    Plugin Contributor

    Posted 1 year ago #

    Thank you for the bug report, Ed. This will be fixed in the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.