Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Beau Lebens

    (@beaulebens)

    Can you check and see if you get any errors in your web server’s error logs?

    Thread Starter Caspie

    (@caspie)

    So far I don’t get any errors in browser or debug.log

    Tested with:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors',0);

    http://img688.imageshack.us/img688/57/sharing.png

    I think this happens because add_submenu_page is used with ‘publish_posts’ as capability argument, which editors and authors also have. Shouldn’t it be changed to ‘manage_options’ (as later checked in: sharing.php line: 167) or even role ‘administrator’ instead?

    in: /jetpack/modules/sharedaddy/sharing.php, line: 51
    Plugin Contributor Beau Lebens

    (@beaulebens)

    Caspie, yes, it looks like it should be changed to ‘manage_options’, just like it is in the page.

    We have some different requirements on WP.com (which is where this code came from), and that capability check needs to be different there. Can you try changing that for me and confirm that it matches up with what you’re expecting?

    Thread Starter Caspie

    (@caspie)

    Sorry about the delay. I have the bad practice not to check “notify me of follow-ups via email”.

    Changing to ‘manage_options’ fixes the problem and the whole Settings tab is not shown anymore, which is the correct for roles lower than administrator.

    Plugin Contributor Beau Lebens

    (@beaulebens)

    Thanks Caspie, that has been changed in the development version, and will come out with the next release of Jetpack.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Jetpack by WordPress.com] Empty Sharing Page for Editor and Author’ is closed to new replies.