Support » Plugin: Default Blog » has_cap error fix

  • I installed this plugin and saw an error at the top of the plugin page…

    “Notice: has_cap was called with an argument that is deprecated since version 2.0!”

    After googling it I finally found a fix, but then had to find the right place to apply it.

    In the file default-blog.php, find the following (in mine it was ~line 53:

    // Add a new top-level menu
    function add_blog_menue_page() {
    	add_submenu_page('wpmu-admin.php', 'Default Blog', 'Default Blog', '10', 'defaultblog', 'default_blog');

    The fix is pretty simple. Just replace the number 10 with “Administrator”.

    It seems that numerical roles have been bad for quite some time, but you never see the error unless debug is turned on in wp-config.

    Anyway, I’m hoping this plugin is just what I need. Hopefully this will help others, or maybe the developer can implement the change?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘has_cap error fix’ is closed to new replies.