WordPress.org

Forums

SB Child List
[resolved] WP_DEBUG warning msg (2 posts)

  1. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    The plugin shows a WP_DEBUG has_cap warning in the backend when active with WP_DEBUG on

    It looks like it can be easily fixed by changing

    function sb_cl_init_admin_page() {
    	global $sb_cl_file;
    	add_options_page('SB Child List Options', 'SB Child List', 8, $sb_cl_file, 'sb_cl_admin_page');
    }

    to

    function sb_cl_init_admin_page() {
    	global $sb_cl_file;
    	add_options_page('SB Child List Options', 'SB Child List', 'publish_posts', $sb_cl_file, 'sb_cl_admin_page');
    }

    http://wordpress.org/extend/plugins/sb-child-list/

  2. Sean Barton
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks.. sorted.

    S

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SB Child List
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic