Support » Plugin: WP-Orphanage Extended » screen_icon and get_screen_icon are depreciated functions

  • Resolved Steven

    (@stgoos)


    I was troubleshooting another bit of code and noticed the following debug messages when loading the WP Orphanage Extended settings page:

    ( ! ) Notice: screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /home/.../wp-includes/functions.php on line 3842
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0010	433352	{main}( )	.../options-general.php:0
    2	0.0020	480928	require_once( '/home/.../wp-includes/wp-admin/admin.php' )	.../options-general.php:10
    3	0.3060	22704592	do_action( )	.../admin.php:224
    4	0.3060	22704864	WP_Hook->do_action( )	.../plugin.php:453
    5	0.3060	22704864	WP_Hook->apply_filters( )	.../class-wp-hook.php:310
    6	0.3060	22705584	wporphanageex_menu_settings( )	.../class-wp-hook.php:286
    7	0.3060	22719864	include_once( '/home/.../wp-content/plugins/wp-orphanage-extended/wp-orphanage-extended-options.php' )	.../wp-orphanage-extended.php:76
    8	0.3070	22750864	screen_icon( )	.../wp-orphanage-extended-options.php:30
    9	0.3070	22750864	_deprecated_function( )	.../deprecated.php:1226
    10	0.3070	22751184	trigger_error ( )	.../functions.php:3842
    
    ( ! ) Notice: get_screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /home/.../wp-includes/wp-includes/functions.php on line 3842
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0010	433352	{main}( )	.../options-general.php:0
    2	0.0020	480928	require_once( '/home/.../wp-admin/admin.php' )	.../options-general.php:10
    3	0.3060	22704592	do_action( )	.../admin.php:224
    4	0.3060	22704864	WP_Hook->do_action( )	.../plugin.php:453
    5	0.3060	22704864	WP_Hook->apply_filters( )	.../class-wp-hook.php:310
    6	0.3060	22705584	wporphanageex_menu_settings( )	.../class-wp-hook.php:286
    7	0.3060	22719864	include_once( '/home/.../wp-content/plugins/wp-orphanage-extended/wp-orphanage-extended-options.php' )	.../wp-orphanage-extended.php:76
    8	0.3070	22750864	screen_icon( )	.../wp-orphanage-extended-options.php:30
    9	0.3090	22759560	get_screen_icon( )	.../deprecated.php:1227
    10	0.3090	22759560	_deprecated_function( )	.../deprecated.php:1239
    11	0.3090	22759880	trigger_error ( )	.../functions.php:3842

    More info on the depreciated functions:

    Perhaps time for a minor update on this really nice plugin to avoid debug errors being shown?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Steven

    (@stgoos)

    Here is the code to quickly fix it.

    Remove wp-orphanage-extended-options.php line 30

    <?php screen_icon(); ?>

    as it only removes the icon from the really outdated WordPress installations 😉

    • This reply was modified 3 years, 7 months ago by Steven. Reason: minor tweak for readability
    • This reply was modified 3 years, 7 months ago by Steven.
    • This reply was modified 3 years, 7 months ago by Steven.
    Thread Starter Steven

    (@stgoos)

    Closing this topic as resolved but would love to see it fixed in a new release of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘screen_icon and get_screen_icon are depreciated functions’ is closed to new replies.