Conflict with themes that define " wp_editor_fontsize_filter "

Home Forums Use Any Fonts Conflict with themes that define " wp_editor_fontsize_filter "

This topic contains 2 replies, has 2 voices, and was last updated by  Dinesh 6 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6355

    Cy

    WordPress 4.5.3
    use-any-font 4.5.1

    Trying to activate this plugin “use-any-font”, I get this error:

    Fatal error: Cannot redeclare wp_editor_fontsize_filter() (previously declared in ***/wp-content/themes/***/functions.php:6317) in ***/wp-content/plugins/use-any-font/includes/uaf_editor_setup.php on line 16

    So I just comment it out the following from the theme and everything seems to be working, but this is just a notice that this plugin can conflict with themes.

    code edit on theme:

    /*
    function wp_editor_fontsize_filter( $options ) {
    array_shift( $options );
    array_unshift( $options, ‘fontselect’);
    array_unshift( $options, ‘fontsizeselect’);
    array_unshift( $options, ‘formatselect’);
    return $options;
    }*/

    #6362

    Dinesh
    Keymaster

    Hi Cy,

    Thanks for letting me know about this issue. I will send this fixes in next release.

    Thanks

    #6363

    Dinesh
    Keymaster

    Hi Cy,

    Thanks for letting me know about this issue. I will send this fixes in next release.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Conflict with themes that define " wp_editor_fontsize_filter "’ is closed to new replies.