• Resolved Pavel I

    (@pavelvisualcomposer)


    class NF_Admin_AddFormModal {

    function __construct() {
    // Add a tinyMCE button to our post and page editor
    add_filter( ‘media_buttons_context’, array( $this, ‘insert_form_tinymce_buttons’ ) );
    }

    located at wp-content/plugins/ninja-forms/includes/Admin/AddFormModal.php:12
    causes an wordpress deprecation notice:
    on:
    wp-admin/includes/media.php:657
    $legacy_filter = apply_filters_deprecated( ‘media_buttons_context’, array( ” ), ‘3.5.0’, ‘media_buttons’ );

Viewing 7 replies - 1 through 7 (of 7 total)
  • keith

    (@wkeithgardner)

    i’m seeing the same, media_buttons_context is deprecated and should use media_buttons.

    Ninja forms is not ready for 5.4 yet

    Plugin Contributor Justin McElhaney

    (@jmcelhaney)

    @pavelvisualcomposer @wkeithgardner @dydyt
    I am sorry for the trouble. I am unable to replicate this issue when using the Gutenberg page editor. You are most likely seeing this issue due to using the Classic Editor plugin. This plugin causes WordPress to use the deprecated page builder and this old page builder is calling code that has not been updated due to WordPress moving to the Gutenberg page editor.
    I have created an issue for this in our system for our developers to look into.
    You can append a Ninja Forms shortcode to the page without using the add form modal using [ninja_forms id=#] where # is the ID of the form you want to display. https://goo.gl/UukURv

    Hi, same problem here, any updates?

    @jmcelhaney Do you have any update about that? The problem still exists, even with the latest NF 3.4.24.3.

    Until the plugin is updated, you may want to add the following if you don’t use the “Add Form” TinyMCE button:

    function your_prefix_remove_nf_add_form( $instance ) {
      remove_filter( 'media_buttons_context', array( $instance->add_form_modal, 'insert_form_tinymce_buttons' ) );
    }
    add_action( 'nf_admin_init', 'your_prefix_remove_nf_add_form' );

    Good luck!

    Drake

    (@marcoragogna)

    Thank you @smchenrybc, I confirm that this fix it is working.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘TinyMce deprecated notice in WordPress 5.4’ is closed to new replies.