Make WordPress Core


Ignore:
Timestamp:
04/19/2017 02:37:29 AM (9 years ago)
Author:
azaozz
Message:

Editor: Provide API for the editor to be dynamically instantiated via JS. First run.

See: #35760

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r40307 r40476  
    14981498    $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    14991499
    1500     require(ABSPATH . WPINC . '/class-wp-editor.php');
     1500    if ( ! class_exists( '_WP_Editors', false ) ) {
     1501        require( ABSPATH . WPINC . '/class-wp-editor.php' );
     1502    }
     1503
    15011504    $results = _WP_Editors::wp_link_query( $args );
    15021505
Note: See TracChangeset for help on using the changeset viewer.