WordPress.org

Ready to get started?Download WordPress

Forums

Why does WP Super Edit ALWAYS do 3 db calls? (3 posts)

  1. knightnet
    Member
    Posted 4 years ago #

    Looking at WP Tuner, I can see that this plugin is ALWAYS performing 3 db calls even though WP is only showing a page - not in the admin section. Surely, this plugin should only actually do anything when it is on an edit page in the admin section.

    At the very least, it should only do anything in the admin section.

    if( !is_admin()){ .... }

    Regards, Julian Knight
    http://it.knightnet.org.uk

    http://wordpress.org/extend/plugins/wp-super-edit/

  2. Jess Planck
    Member
    Posted 4 years ago #

    Yes, WP Super Edit will make some database calls outside of the editor.

    WP Super Edit is designed to include files that may be related to the tinymce plugins that you may have installed or created. WP Super Edit has to find out what tinymce plugins you have activated to execute any function that may be related to that tinymce plugin.

    I use this myself to produce things like a home grown TinyMCE button that inserts shortcode for some internal functions on a client site. The WP Smilies WP Super Edit tinyMCE plugin is an example. Once that TinyMCE plugin is activated in WP Super Edit, the shortcode functions to make WordPress smilies IMG tags will get activated.

    So the database has to be queried, the plugin shortcode functions have to be loaded or your visitors would not see the smiley image on the published document. This is just an example, I could bore you more with some of the custom things I've had to create for people :).

    I'm working on a few other things with WP Super Edit at the moment, and I am rethinking some of this functionality. I may just trash some of the includes functionality and move to setting up hooks instead. It may be more appropriate to move the custom work to separate dependent plugins.

  3. Jess Planck
    Member
    Posted 3 years ago #

    WP Super Edit 2.3.3 should no longer perform SQL queries on the front end of a website unless a developer modifies the wp_super_edit_run_mode filter.

Topic Closed

This topic has been closed to new replies.

About this Topic