Home>Support>New Update and editor buttons filter stopt working with WP4.8

New Update and editor buttons filter stopt working with WP4.8

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi SiteOrigin,

in so-widget-bundle > base > inc > fields > tinymce.class.php

if ( ! empty( $this->wp_version_lt_4_8 ) ) {
			add_filter( 'mce_buttons', array( $this, 'mce_buttons_filter' ), 10, 2 );
			add_filter( 'quicktags_settings', array( $this, 'quicktags_settings' ), 10, 2 );
			
			if ( ! empty( $this->button_filters ) ) {
				foreach ( $this->button_filters as $filter_name => $filter ) {
					$is_valid_filter = preg_match(
						'/mce_buttons(?:_[1-4])?|quicktags_settings/', $filter_name
					) && ! empty( $filter ) && is_callable( $filter );
					if ( $is_valid_filter ) {
						add_filter( $filter_name, array( $this, $filter_name ), 10, 2 );
					}
				}
			}
		}

What’s the point behind this change?
Is there a new way to filter buttons in WP >= 4.8?

Thanks for this great PlugIn!

Cheers Jan

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Jan,

    Sorry about this! This is actually unintentional as we omitted the new filters by mistake. This will be fixed in the next update. Thank you for letting us know!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More