Skip to:
Content
Pages
Categories
Search
Top
Bottom

Why has my own plugin broken?


  • Chuckie
    Participant

    @ajtruckle

    I don’t get this.

    Look here:

    Create New Topic

    I am getting a message under the TinyMCE toolbar. My two icons are now showing either.

    My code is very basic:

    <?php
    /**
    * Plugin Name: Add AutoSave | Fullscreen to TinyMCE
    * Description: This will install the TinyMCE AutoSave | Fullscreen Plugins (version 4.9.11) and register them with TinyMCE.
    * Version: 2.1
    * Author: Andrew Truckle
    * Author URI: https://www.trucklesoft.co.uk/
    **/
    
    /**
     * Add the TinyMCE AutoSave and Fullscreen Plugins.
     *
     * @param array $plugins An array of all plugins.
     * @return array
     */
    function aaft_custom_plugins( $plugins ) {
         $plugins['autosave'] = plugins_url( 'mce/', __FILE__ ) . 'autosave/plugin.min.js';
         $plugins['fullscreen'] = plugins_url( 'mce/', __FILE__ ) . 'fullscreen/plugin.min.js';
         return $plugins;
    }
    add_filter( 'mce_external_plugins', 'aaft_custom_plugins' );
Viewing 5 replies - 1 through 5 (of 5 total)

  • Robin W
    Moderator

    @robin-w

    so is this a new plugin, or one that has stopped working ?


    Chuckie
    Participant

    @ajtruckle

    It is not new. It is mine. And TinyMCE has not changed for several versions in WP so all I had to do is change readme.

    If I deactivate mine then it just shows an error for EnlighterJS instead (which adds code buttons)


    Robin W
    Moderator

    @robin-w

    I suspect 6.1 will break lots of things – I’ve have updated my test site and wordpress doesn’t like the menus I have with a twenty ten theme 🙂

    I’d suggest you wait for 6.1.1 to see if they bug fix things.


    Chuckie
    Participant

    @ajtruckle

    True. For some reason these specific links are getting messed up:

    https://www_publictalksoftware_co_uk


    Chuckie
    Participant

    @ajtruckle

    If I deactivate the one.com CDN feature then it works.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar