Default Blog
has_cap error fix (2 posts)

  1. fotan
    Posted 3 years ago #

    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?


  2. lia2yuliana
    Posted 3 years ago #

    i did what u said above, but still nothing works for me :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Default Blog
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.