Ready to get started?Download WordPress


WP Google Fonts
Deprecate call user/roles (5 posts)

  1. Bozz
    Posted 2 years ago #

    Found a deprecated error for this plugin:

    Argument in add_options_page()
    Used in wp-content/plugins/wp-google-fonts/google-fonts.php on line 429.

    Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.

    Deprecated in version 2.0.


  2. Pierre Fossey
    Posted 1 year ago #

    Same problem for me…

    Is the error known, and is there a security hole with it ?

  3. Aaron Brown
    Posted 1 year ago #

    Thanks for finding that @Bozz and @Pierre. We will update it in v3.0.2.

    In the mean time, you can change "function_admin_link()" in wp-content/plugins/wp-google-fonts/google-fonts.php from:

    add_options_page('Google Fonts', 'Google Fonts', 10, basename(__FILE__), array(&$this,'admin_options_page'));


    add_options_page('Google Fonts', 'Google Fonts', 'manage_options', basename(__FILE__), array(&$this,'admin_options_page'));

    The only change is making the '10' be 'manage_options'.

  4. Pierre Fossey
    Posted 1 year ago #

    Thanks for your quick answer,
    still have problem messages in the admin of the WP google fonts panel :

    Notice: Undefined index: googlefonts_save in /mystuff/wp-content/plugins/wp-google-fonts/google-fonts.php on line 926

    Notice: Undefined variable: message in /mystuff/wp-content/plugins/wp-google-fonts/google-fonts.php on line 953

    Notice: Undefined property: stdClass::$error in /mystuff/wp-content/plugins/wp-google-fonts/google-fonts.php on line 202

    i'm not an expert in php so i bring to you the error like i see it…
    thanks for your help !

    Best Regards and thanks for this plugin !

  5. Aaron Brown
    Posted 1 year ago #

    Thanks again Pierre. We have now written changes to correct these notices in the upcoming version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic