Making WordPress.org


Ignore:
Timestamp:
07/12/2017 04:42:08 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Only print Quicktags' button replacement script if Quicktags is enqueued.

See #2950.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r5661 r5662  
    125125     * before and after the tag.
    126126     */
    127     public function replace_quicktags_blockquote_button() { ?>
     127    public function replace_quicktags_blockquote_button() {
     128        if ( ! wp_script_is( 'quicktags' ) ) {
     129            return;
     130        }
     131        ?>
    128132        <script type="text/javascript">
    129133            if ( 'undefined' !== typeof edButtons && 'undefined' !== QTags ) {
Note: See TracChangeset for help on using the changeset viewer.