• Resolved techieshark

    (@techieshark)


    When editing a post, in the Gutenberg editor, see the following above the Maxgalleria button:

    > “Deprecated: media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead. in …/wp/wp-includes/functions.php on line 5234”

    Sure enough, Maxgalleria.php line 727 shows this deprecated string still in use:

    
    		add_action('media_buttons_context', array($this, 'media_button'));
    

    Changing to this will remove the warning:

    
    		add_action('media_buttons', array($this, 'media_button'));
    

    WP: 5.6.2
    Maxgalleria: 6.2.1
    Constants:
    WP_DEBUG Enabled
    WP_DEBUG_DISPLAY Enabled

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘maxgalleria post editor warning: “media_buttons_context is deprecated”’ is closed to new replies.