WordPress.org

Make WordPress Core

Changeset 48714


Ignore:
Timestamp:
08/03/2020 12:09:34 PM (8 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct placement for wp_editor_expand filter DocBlock.

See #50768.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r48194 r48714  
    5454 * @param string $post_type Post type.
    5555 */
    56 if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() &&
    57     ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
    58     apply_filters( 'wp_editor_expand', true, $post_type ) ) {
     56$_wp_editor_expand_enabled = apply_filters( 'wp_editor_expand', true, $post_type );
     57
     58if ( post_type_supports( $post_type, 'editor' )
     59    && ! wp_is_mobile()
     60    && ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) )
     61    && $_wp_editor_expand_enabled
     62) {
    5963
    6064    wp_enqueue_script( 'editor-expand' );
Note: See TracChangeset for help on using the changeset viewer.