Support » Plugin: Yoast SEO » wpseo_metabox_prio Filter Bug?

  • WordPress version: 3.4.2
    WordPress SEO version: 1.2.8.7

    I did this:
    I’ve tried a number of different things to try to get the “wpseo_metabox_prio” filter to work…and nothing seems to do the trick…so I dug into the source code of the WPSEO plugin and found that in the file “/plugins/wordpress-seo/admin/class-metabox.php” there were two instances that called the “add_meta_box()” function. The first (on line 144) shows the new ‘wpseo_metabox_prio” filter in place….but the second (on line 215) did not have the filter added in the same way. I added the filter on this line (215) to replicate what I saw in the first (144) and suddenly my custom filter (in my functions.php file) appeared to be working:

    From my functions.php file:

    // Filter Yoast Meta Priority
    add_filter( 'wpseo_metabox_prio', 'low');

    I expected the plugin to do this:
    I expected the plugin filter of ‘wpseo_metabox_prio” to work “out of the box”…but couldn’t get anything to respond without adding the filter to line 215 of class-metabox.php, as described above.

    Instead it did this:
    The priority of the WordPress SEO plugin metaboxes remained unchanged…regardless of what I tried to do with the ‘wpseo_metabox_prio” filter.

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

    In Conclusion:
    I feel that perhaps the filter needs to be added to line 215 of ‘class-metabox.php’ in the next release of WPSEO. I’m guessing it was just missed when this new filter was added back in version 1.1.7.

  • The topic ‘wpseo_metabox_prio Filter Bug?’ is closed to new replies.