diff --git src/index.php src/index.php
index b7a223b..c76c36d 100644
|
|
|
if ( ! defined( 'ABSPATH' ) ) { |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) { |
| 15 | | require_once ABSPATH . '/_index.php'; |
| | 15 | require_once ABSPATH . '_index.php'; |
| 16 | 16 | return; |
| 17 | 17 | } |
| 18 | 18 | |
diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index 206fa18..2adeb46 100644
|
|
|
function wp_ajax_crop_image() { |
| 3620 | 3620 | |
| 3621 | 3621 | switch ( $context ) { |
| 3622 | 3622 | case 'site-icon': |
| 3623 | | require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php'; |
| | 3623 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; |
| 3624 | 3624 | $wp_site_icon = new WP_Site_Icon(); |
| 3625 | 3625 | |
| 3626 | 3626 | // Skip creating a new attachment if the attachment is a Site Icon. |
diff --git src/wp-admin/includes/class-wp-debug-data.php src/wp-admin/includes/class-wp-debug-data.php
index 4884de2..abcc1fa 100644
|
|
|
class WP_Debug_Data { |
| 593 | 593 | ); |
| 594 | 594 | |
| 595 | 595 | // Check if a .htaccess file exists. |
| 596 | | if ( is_file( ABSPATH . '/.htaccess' ) ) { |
| | 596 | if ( is_file( ABSPATH . '.htaccess' ) ) { |
| 597 | 597 | // If the file exists, grab the content of it. |
| 598 | | $htaccess_content = file_get_contents( ABSPATH . '/.htaccess' ); |
| | 598 | $htaccess_content = file_get_contents( ABSPATH . '.htaccess' ); |
| 599 | 599 | |
| 600 | 600 | // Filter away the core WordPress rules. |
| 601 | 601 | $filtered_htaccess_content = trim( preg_replace( '/\# BEGIN WordPress[\s\S]+?# END WordPress/si', '', $htaccess_content ) ); |
diff --git src/wp-admin/includes/class-wp-site-health-auto-updates.php src/wp-admin/includes/class-wp-site-health-auto-updates.php
index 90046ee..8321370 100644
|
|
|
class WP_Site_Health_Auto_Updates { |
| 350 | 350 | if ( 'wp-content' == substr( $file, 0, 10 ) ) { |
| 351 | 351 | continue; |
| 352 | 352 | } |
| 353 | | if ( ! file_exists( ABSPATH . '/' . $file ) ) { |
| | 353 | if ( ! file_exists( ABSPATH . $file ) ) { |
| 354 | 354 | continue; |
| 355 | 355 | } |
| 356 | | if ( ! is_writable( ABSPATH . '/' . $file ) ) { |
| | 356 | if ( ! is_writable( ABSPATH . $file ) ) { |
| 357 | 357 | $unwritable_files[] = $file; |
| 358 | 358 | } |
| 359 | 359 | } |
diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index e4e6dfa..1700259 100644
|
|
|
final class WP_Customize_Manager { |
| 402 | 402 | |
| 403 | 403 | // Add theme update notices. |
| 404 | 404 | if ( current_user_can( 'install_themes' ) || current_user_can( 'update_themes' ) ) { |
| 405 | | require_once ABSPATH . '/wp-admin/includes/update.php'; |
| | 405 | require_once ABSPATH . 'wp-admin/includes/update.php'; |
| 406 | 406 | add_action( 'customize_controls_print_footer_scripts', 'wp_print_admin_notice_templates' ); |
| 407 | 407 | } |
| 408 | 408 | } |
diff --git src/wp-includes/class-wp-customize-widgets.php src/wp-includes/class-wp-customize-widgets.php
index 47f7db1..e5e5445 100644
|
|
|
final class WP_Customize_Widgets { |
| 949 | 949 | } |
| 950 | 950 | |
| 951 | 951 | global $wp_registered_widgets, $wp_registered_widget_controls; |
| 952 | | require_once ABSPATH . '/wp-admin/includes/widgets.php'; // for next_widget_id_number() |
| | 952 | require_once ABSPATH . 'wp-admin/includes/widgets.php'; // for next_widget_id_number() |
| 953 | 953 | |
| 954 | 954 | $sort = $wp_registered_widgets; |
| 955 | 955 | usort( $sort, array( $this, '_sort_name_callback' ) ); |
diff --git src/wp-includes/customize/class-wp-widget-form-customize-control.php src/wp-includes/customize/class-wp-widget-form-customize-control.php
index 260b417..cfab188 100644
|
|
|
class WP_Widget_Form_Customize_Control extends WP_Customize_Control { |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | // Get the widget_control and widget_content. |
| 99 | | require_once ABSPATH . '/wp-admin/includes/widgets.php'; |
| | 99 | require_once ABSPATH . 'wp-admin/includes/widgets.php'; |
| 100 | 100 | |
| 101 | 101 | $widget = $wp_registered_widgets[ $this->widget_id ]; |
| 102 | 102 | if ( ! isset( $widget['params'][0] ) ) { |
diff --git src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
index bc0a179..0e3489c 100644
|
|
|
class WP_REST_Posts_Controller extends WP_REST_Controller { |
| 1614 | 1614 | if ( is_post_type_viewable( $post_type_obj ) && $post_type_obj->public ) { |
| 1615 | 1615 | |
| 1616 | 1616 | if ( ! function_exists( 'get_sample_permalink' ) ) { |
| 1617 | | require_once ABSPATH . '/wp-admin/includes/post.php'; |
| | 1617 | require_once ABSPATH . 'wp-admin/includes/post.php'; |
| 1618 | 1618 | } |
| 1619 | 1619 | |
| 1620 | 1620 | $sample_permalink = get_sample_permalink( $post->ID, $post->post_title, '' ); |
diff --git src/wp-includes/update.php src/wp-includes/update.php
index c815d15..8245750 100644
|
|
|
function wp_update_themes( $extra_stats = array() ) { |
| 595 | 595 | * @since 3.7.0 |
| 596 | 596 | */ |
| 597 | 597 | function wp_maybe_auto_update() { |
| 598 | | include_once( ABSPATH . '/wp-admin/includes/admin.php' ); |
| 599 | | include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' ); |
| | 598 | include_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
| | 599 | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 600 | 600 | |
| 601 | 601 | $upgrader = new WP_Automatic_Updater; |
| 602 | 602 | $upgrader->run(); |