Support » Plugin: WP SyntaxHighlighter » [Plugin: WP SyntaxHighlighter] deprecated usage of has_cap

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author redcocker

    (@redcocker)

    Hi, nbseminary san

    Thank you for your report.

    I will fix this notice for the next version.

    If in a hurry, try to edit “/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php”,

    and replace strings in 231 line,

    add_options_page('WP SyntaxHighlighter Options', 'WP SyntaxHighlighter', 10, 'wp-syntaxhighlighter-options', 'wp_sh_options_panel');

    with

    add_options_page('WP SyntaxHighlighter Options', 'WP SyntaxHighlighter', 'administrator', 'wp-syntaxhighlighter-options', 'wp_sh_options_panel');

    Plugin Author redcocker

    (@redcocker)

    In next version, I will replace it with

    add_options_page('WP SyntaxHighlighter Options', 'WP SyntaxHighlighter', 'manage_options', 'wp-syntaxhighlighter-options', 'wp_sh_options_panel');

    I think 'manage_options' is better than 'administrator'.

    Plugin Author redcocker

    (@redcocker)

    I released ver. 1.3.6.
    This version has a fix about this problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP SyntaxHighlighter] deprecated usage of has_cap’ is closed to new replies.