This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

8 years ago · Last reply by Alex S 8 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread