Support » Plugin: Flamingo » Deprecated Notice "add_object_page"

  • Hi!! Thank you so much great plugin!!
    When I updated WordPress core today (4.5), it was appear the Notice below.

    Notice: add_object_page is deprecated since version 4.5! Use add_menu_page() instead. in /var/www/wordpress/wp-includes/functions.php on line 3662

    It’s used /flamingo/admin/admin.php at line:8 🙂

    When I rewrited, appear nothing!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • If anyone doesn’t want to wait, until it gets fixed officially, you can fix it like this:

    In /wp-content/plugins/flamingo/admin/admin.php go to line 9 and change
    add_object_page to add_menu_page.

    Image for reference

    Plugin Author Takayuki Miyoshi


    Thank you for reporting this. The next version will be released soon. Until that, you can safely ignore the message since it’s just a notice.

    The solution outlined by scherii does resolve the issue and should suffice until a compatible version of the plug-in is release.

    I do want to note that, like the author noted, the warning notice does not generally not interfere with interference and is simply a nuisance that can be ignored, but it can pose problems under certain circumstances.

    I came across an instance where a call to wp_redirect fails due to the fact that the notice has already printed output to the screen.

    Thanks for this

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated Notice "add_object_page"’ is closed to new replies.