Changeset 38399 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 08/27/2016 09:15:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r38397 r38399 1508 1508 $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; 1509 1509 1510 require(ABSPATH . WPINC . '/class-wp-editor.php');1511 1510 $results = _WP_Editors::wp_link_query( $args ); 1512 1511 … … 3138 3137 function wp_ajax_press_this_save_post() { 3139 3138 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3140 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );3141 3139 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3142 3140 } … … 3154 3152 function wp_ajax_press_this_add_category() { 3155 3153 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3156 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );3157 3154 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3158 3155 } … … 3184 3181 switch ( $context ) { 3185 3182 case 'site-icon': 3186 require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php';3187 3183 $wp_site_icon = new WP_Site_Icon(); 3188 3184 … … 3333 3329 } 3334 3330 3335 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3336 3331 include_once( ABSPATH . 'wp-admin/includes/theme.php' ); 3337 3332 … … 3440 3435 } 3441 3436 3442 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3443 3444 3437 $current = get_site_transient( 'update_themes' ); 3445 3438 if ( empty( $current ) ) { … … 3591 3584 } 3592 3585 3593 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3594 3586 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); 3595 3587 … … 3699 3691 } 3700 3692 3701 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';3702 3703 3693 wp_update_plugins(); 3704 3694
Note: See TracChangeset
for help on using the changeset viewer.