Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibilities with Wordpress SEO (by Yoast) [fix included] #2

Open
arminrosu opened this issue Jul 12, 2012 · 1 comment
Open

Comments

@arminrosu
Copy link

After activating the plugin, 4 fields started appearing in quick edit mode, on custom post types. After debugging, I found they were triggered by the custom columns Wordpress SEO adds.

This can be fixed by modifying "/lib/ns_tmo_plugin.class.php":

public function quick_edit_menu_order ($column_name, $post_type) {
        if ( $column_name === 'menu_order') {
            $menu_order_field = '<fieldset><div class="inline-edit-col"><label><span class="title">' . __( 'Order' , 'term-menu-order') . '</span><span class="input-text-wrap"><input class="ptitle" name="'. self::$form_field_name . '" type="text" value="" /></span></label></div></fieldset>';

            $menu_order_field .= '<script type="text/javascript">

            </script>';

            echo $menu_order_field;
        }

    }

Also, the "quick_edit_custom_box" action sets 2 parameters, not 3, thus:

add_action('quick_edit_custom_box', array(&$this, 'quick_edit_menu_order'), 10, 2);
@ryanjbonnell
Copy link

Has there been any activity on getting this bug officially fixed (and a new version of the plugin released)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants