Ticket #48082: 48082.diff
File 48082.diff, 80.2 KB (added by , 5 years ago) |
---|
-
src/_index.php
14 14 define( 'WP_USE_THEMES', true ); 15 15 16 16 /** Loads the WordPress Environment and Template */ 17 require( dirname( __FILE__ ). '/wp-blog-header.php' );17 require( __DIR__ . '/wp-blog-header.php' ); -
src/index.php
8 8 9 9 /** Define ABSPATH as this file's directory */ 10 10 if ( ! defined( 'ABSPATH' ) ) { 11 define( 'ABSPATH', dirname( __FILE__ ). '/' );11 define( 'ABSPATH', __DIR__ . '/' ); 12 12 } 13 13 14 14 if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) { -
src/js/_enqueues/vendor/tinymce/wp-tinymce.php
11 11 */ 12 12 error_reporting( 0 ); 13 13 14 $basepath = dirname( __FILE__ );14 $basepath = __DIR__; 15 15 16 16 function get_file( $path ) { 17 17 -
src/wp-activate.php
9 9 define( 'WP_INSTALLING', true ); 10 10 11 11 /** Sets up the WordPress Environment. */ 12 require( dirname( __FILE__ ). '/wp-load.php' );12 require( __DIR__ . '/wp-load.php' ); 13 13 14 require( dirname( __FILE__ ). '/wp-blog-header.php' );14 require( __DIR__ . '/wp-blog-header.php' ); 15 15 16 16 if ( ! is_multisite() ) { 17 17 wp_redirect( wp_registration_url() ); -
src/wp-admin/_index.php
7 7 */ 8 8 9 9 /** Load WordPress Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 /** Load WordPress dashboard API */ 13 13 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); -
src/wp-admin/about.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 /* translators: Page title of the About WordPress page in the admin. */ 13 13 $title = _x( 'About', 'page title' ); -
src/wp-admin/admin-ajax.php
19 19 } 20 20 21 21 /** Load WordPress Bootstrap */ 22 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );22 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 23 23 24 24 /** Allow for cross-domain requests (from the front end). */ 25 25 send_origin_headers(); -
src/wp-admin/admin-header.php
8 8 9 9 header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); 10 10 if ( ! defined( 'WP_ADMIN' ) ) { 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 } 13 13 14 14 /** -
src/wp-admin/admin-post.php
16 16 if ( defined( 'ABSPATH' ) ) { 17 17 require_once( ABSPATH . 'wp-load.php' ); 18 18 } else { 19 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );19 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 20 20 } 21 21 22 22 /** Allow for cross-domain requests (from the front end). */ -
src/wp-admin/admin.php
31 31 define( 'WP_LOAD_IMPORTERS', true ); 32 32 } 33 33 34 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );34 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 35 35 36 36 nocache_headers(); 37 37 -
src/wp-admin/async-upload.php
17 17 if ( defined( 'ABSPATH' ) ) { 18 18 require_once( ABSPATH . 'wp-load.php' ); 19 19 } else { 20 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );20 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 21 21 } 22 22 23 23 require_once( ABSPATH . 'wp-admin/admin.php' ); -
src/wp-admin/comment.php
7 7 */ 8 8 9 9 /** Load WordPress Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 $parent_file = 'edit-comments.php'; 13 13 $submenu_file = 'edit-comments.php'; -
src/wp-admin/credits.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( dirname( __FILE__ ). '/includes/credits.php' );10 require_once( __DIR__ . '/admin.php' ); 11 require_once( __DIR__ . '/includes/credits.php' ); 12 12 13 13 $title = __( 'Credits' ); 14 14 -
src/wp-admin/customize.php
10 10 define( 'IFRAME_REQUEST', true ); 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once( dirname( __FILE__ ). '/admin.php' );13 require_once( __DIR__ . '/admin.php' ); 14 14 15 15 if ( ! current_user_can( 'customize' ) ) { 16 16 wp_die( -
src/wp-admin/edit-comments.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 if ( ! current_user_can( 'edit_posts' ) ) { 12 12 wp_die( 13 13 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . -
src/wp-admin/edit-tags.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! $taxnow ) { 13 13 wp_die( __( 'Invalid taxonomy.' ) ); -
src/wp-admin/edit.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! $typenow ) { 13 13 wp_die( __( 'Invalid post type.' ) ); -
src/wp-admin/erase-personal-data.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) ); -
src/wp-admin/export-personal-data.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'export_others_personal_data' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) ); -
src/wp-admin/export.php
7 7 */ 8 8 9 9 /** Load WordPress Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'export' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) ); -
src/wp-admin/freedoms.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 // This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0. 13 13 if ( isset( $_GET['privacy-notice'] ) ) { -
src/wp-admin/import.php
9 9 define( 'WP_LOAD_IMPORTERS', true ); 10 10 11 11 /** Load WordPress Bootstrap */ 12 require_once( dirname( __FILE__ ). '/admin.php' );12 require_once( __DIR__ . '/admin.php' ); 13 13 14 14 if ( ! current_user_can( 'import' ) ) { 15 15 wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) ); -
src/wp-admin/includes/class-ftp.php
903 903 $mod_sockets = extension_loaded( 'sockets' ); 904 904 } 905 905 906 require_once dirname( __FILE__ ). "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";906 require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; 907 907 908 908 if ( $mod_sockets ) { 909 909 class ftp extends ftp_sockets {} -
src/wp-admin/index.php
6 6 * please refer to wp-admin/_index.php. 7 7 */ 8 8 9 if ( file_exists( dirname( __FILE__ ). '/../wp-includes/js/dist/edit-post.js' ) ) {10 require_once dirname( __FILE__ ). '/_index.php';9 if ( file_exists( __DIR__ . '/../wp-includes/js/dist/edit-post.js' ) ) { 10 require_once __DIR__ . '/_index.php'; 11 11 return; 12 12 } 13 13 14 require_once dirname( dirname( __FILE__ )) . '/index.php';14 require_once dirname( __DIR__ ) . '/index.php'; -
src/wp-admin/install-helper.php
35 35 */ 36 36 37 37 /** Load WordPress Bootstrap */ 38 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );38 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 39 39 40 40 if ( ! function_exists( 'maybe_create_table' ) ) : 41 41 /** -
src/wp-admin/install.php
33 33 define( 'WP_INSTALLING', true ); 34 34 35 35 /** Load WordPress Bootstrap */ 36 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );36 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 37 37 38 38 /** Load WordPress Administration Upgrade API */ 39 39 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); -
src/wp-admin/link-add.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_links' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) ); -
src/wp-admin/link-manager.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 if ( ! current_user_can( 'manage_links' ) ) { 12 12 wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); 13 13 } -
src/wp-admin/link.php
10 10 */ 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once( dirname( __FILE__ ). '/admin.php' );13 require_once( __DIR__ . '/admin.php' ); 14 14 15 15 wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) ); 16 16 -
src/wp-admin/load-scripts.php
9 9 10 10 /** Set ABSPATH for execution */ 11 11 if ( ! defined( 'ABSPATH' ) ) { 12 define( 'ABSPATH', dirname( dirname( __FILE__ )) . '/' );12 define( 'ABSPATH', dirname( __DIR__ ) . '/' ); 13 13 } 14 14 15 15 define( 'WPINC', 'wp-includes' ); -
src/wp-admin/load-styles.php
9 9 10 10 /** Set ABSPATH for execution */ 11 11 if ( ! defined( 'ABSPATH' ) ) { 12 define( 'ABSPATH', dirname( dirname( __FILE__ )) . '/' );12 define( 'ABSPATH', dirname( __DIR__ ) . '/' ); 13 13 } 14 14 15 15 define( 'WPINC', 'wp-includes' ); -
src/wp-admin/maint/repair.php
7 7 */ 8 8 define( 'WP_REPAIRING', true ); 9 9 10 require_once( dirname( dirname( dirname( __FILE__ )) ) . '/wp-load.php' );10 require_once( dirname( dirname( __DIR__ ) ) . '/wp-load.php' ); 11 11 12 12 header( 'Content-Type: text/html; charset=utf-8' ); 13 13 ?> -
src/wp-admin/media-new.php
10 10 */ 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once( dirname( __FILE__ ). '/admin.php' );13 require_once( __DIR__ . '/admin.php' ); 14 14 15 15 if ( ! current_user_can( 'upload_files' ) ) { 16 16 wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); -
src/wp-admin/media-upload.php
14 14 } 15 15 16 16 /** Load WordPress Administration Bootstrap */ 17 require_once( dirname( __FILE__ ). '/admin.php' );17 require_once( __DIR__ . '/admin.php' ); 18 18 19 19 if ( ! current_user_can( 'upload_files' ) ) { 20 20 wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 ); -
src/wp-admin/media.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 $parent_file = 'upload.php'; 13 13 $submenu_file = 'upload.php'; -
src/wp-admin/moderation.php
7 7 * @package WordPress 8 8 * @subpackage Administration 9 9 */ 10 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );10 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 11 11 wp_redirect( admin_url( 'edit-comments.php?comment_status=moderated' ) ); 12 12 exit; -
src/wp-admin/ms-admin.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url() ); 13 13 exit; -
src/wp-admin/ms-delete-site.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! is_multisite() ) { 13 13 wp_die( __( 'Multisite support is not enabled.' ) ); -
src/wp-admin/ms-edit.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url() ); 13 13 exit; -
src/wp-admin/ms-options.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url( 'settings.php' ) ); -
src/wp-admin/ms-sites.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url( 'sites.php' ) ); 13 13 exit; -
src/wp-admin/ms-themes.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url( 'themes.php' ) ); 13 13 exit; -
src/wp-admin/ms-upgrade-network.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url( 'upgrade.php' ) ); 13 13 exit; -
src/wp-admin/ms-users.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_redirect( network_admin_url( 'users.php' ) ); 13 13 exit; -
src/wp-admin/my-sites.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! is_multisite() ) { 13 13 wp_die( __( 'Multisite support is not enabled.' ) ); -
src/wp-admin/nav-menus.php
10 10 */ 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once( dirname( __FILE__ ). '/admin.php' );13 require_once( __DIR__ . '/admin.php' ); 14 14 15 15 // Load all the nav menu interface functions 16 16 require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); -
src/wp-admin/network/about.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/about.php' ); -
src/wp-admin/network/admin.php
10 10 define( 'WP_NETWORK_ADMIN', true ); 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once( dirname( dirname( __FILE__ )) . '/admin.php' );13 require_once( dirname( __DIR__ ) . '/admin.php' ); 14 14 15 15 // Do not remove this check. It is required by individual network admin pages. 16 16 if ( ! is_multisite() ) { -
src/wp-admin/network/credits.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/credits.php' ); -
src/wp-admin/network/edit.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : ''; 14 14 -
src/wp-admin/network/freedoms.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/freedoms.php' ); -
src/wp-admin/network/index.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 /** Load WordPress dashboard API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); -
src/wp-admin/network/plugin-editor.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/plugin-editor.php' ); -
src/wp-admin/network/plugin-install.php
12 12 } 13 13 14 14 /** Load WordPress Administration Bootstrap */ 15 require_once( dirname( __FILE__ ). '/admin.php' );15 require_once( __DIR__ . '/admin.php' ); 16 16 17 17 require( ABSPATH . 'wp-admin/plugin-install.php' ); -
src/wp-admin/network/plugins.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/plugins.php' ); -
src/wp-admin/network/privacy.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/privacy.php' ); -
src/wp-admin/network/profile.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/profile.php' ); -
src/wp-admin/network/settings.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 /** WordPress Translation Installation API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); -
src/wp-admin/network/setup.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/network.php' ); -
src/wp-admin/network/site-info.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_sites' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); -
src/wp-admin/network/site-new.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 /** WordPress Translation Installation API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); -
src/wp-admin/network/site-settings.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_sites' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); -
src/wp-admin/network/site-themes.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_sites' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) ); -
src/wp-admin/network/site-users.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_sites' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to edit this site.' ), 403 ); -
src/wp-admin/network/sites.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_sites' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); -
src/wp-admin/network/theme-editor.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/theme-editor.php' ); -
src/wp-admin/network/theme-install.php
12 12 } 13 13 14 14 /** Load WordPress Administration Bootstrap */ 15 require_once( dirname( __FILE__ ). '/admin.php' );15 require_once( __DIR__ . '/admin.php' ); 16 16 17 17 require( ABSPATH . 'wp-admin/theme-install.php' ); -
src/wp-admin/network/themes.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_network_themes' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) ); -
src/wp-admin/network/update-core.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/update-core.php' ); -
src/wp-admin/network/update.php
12 12 } 13 13 14 14 /** Load WordPress Administration Bootstrap */ 15 require_once( dirname( __FILE__ ). '/admin.php' );15 require_once( __DIR__ . '/admin.php' ); 16 16 17 17 require( ABSPATH . 'wp-admin/update.php' ); -
src/wp-admin/network/upgrade.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require_once( ABSPATH . WPINC . '/http.php' ); 14 14 -
src/wp-admin/network/user-edit.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/user-edit.php' ); -
src/wp-admin/network/user-new.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'create_users' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to add users to this network.' ) ); -
src/wp-admin/network/users.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'manage_network_users' ) ) { 14 14 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); -
src/wp-admin/network.php
13 13 define( 'WP_INSTALLING_NETWORK', true ); 14 14 15 15 /** WordPress Administration Bootstrap */ 16 require_once( dirname( __FILE__ ). '/admin.php' );16 require_once( __DIR__ . '/admin.php' ); 17 17 18 18 if ( ! current_user_can( 'setup_network' ) ) { 19 19 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); … … 30 30 } 31 31 } 32 32 33 require_once( dirname( __FILE__ ). '/includes/network.php' );33 require_once( __DIR__ . '/includes/network.php' ); 34 34 35 35 // We need to create references to ms global tables to enable Network. 36 36 foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) { -
src/wp-admin/options-discussion.php
6 6 * @subpackage Administration 7 7 */ 8 8 /** WordPress Administration Bootstrap */ 9 require_once( dirname( __FILE__ ). '/admin.php' );9 require_once( __DIR__ . '/admin.php' ); 10 10 11 11 if ( ! current_user_can( 'manage_options' ) ) { 12 12 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); -
src/wp-admin/options-general.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 /** WordPress Translation Installation API */ 13 13 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); -
src/wp-admin/options-media.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); -
src/wp-admin/options-permalink.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); -
src/wp-admin/options-privacy.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_privacy_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) ); -
src/wp-admin/options-reading.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); -
src/wp-admin/options-writing.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); -
src/wp-admin/options.php
16 16 */ 17 17 18 18 /** WordPress Administration Bootstrap */ 19 require_once( dirname( __FILE__ ). '/admin.php' );19 require_once( __DIR__ . '/admin.php' ); 20 20 21 21 $title = __( 'Settings' ); 22 22 $this_file = 'options.php'; -
src/wp-admin/plugin-editor.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( is_multisite() && ! is_network_admin() ) { 13 13 wp_redirect( network_admin_url( 'plugin-editor.php' ) ); -
src/wp-admin/plugin-install.php
13 13 /** 14 14 * WordPress Administration Bootstrap. 15 15 */ 16 require_once( dirname( __FILE__ ). '/admin.php' );16 require_once( __DIR__ . '/admin.php' ); 17 17 18 18 if ( ! current_user_can( 'install_plugins' ) ) { 19 19 wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); -
src/wp-admin/plugins.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'activate_plugins' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) ); -
src/wp-admin/post-new.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 /** 13 13 * @global string $post_type -
src/wp-admin/post.php
9 9 */ 10 10 11 11 /** WordPress Administration Bootstrap */ 12 require_once( dirname( __FILE__ ). '/admin.php' );12 require_once( __DIR__ . '/admin.php' ); 13 13 14 14 $parent_file = 'edit.php'; 15 15 $submenu_file = 'edit.php'; -
src/wp-admin/press-this.php
9 9 define( 'IFRAME_REQUEST', true ); 10 10 11 11 /** WordPress Administration Bootstrap */ 12 require_once( dirname( __FILE__ ). '/admin.php' );12 require_once( __DIR__ . '/admin.php' ); 13 13 14 14 function wp_load_press_this() { 15 15 $plugin_slug = 'press-this'; -
src/wp-admin/privacy-policy-guide.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_privacy_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) ); -
src/wp-admin/privacy.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 $title = __( 'Privacy' ); 13 13 -
src/wp-admin/profile.php
15 15 define( 'IS_PROFILE_PAGE', true ); 16 16 17 17 /** Load User Editing Page */ 18 require_once( dirname( __FILE__ ). '/user-edit.php' );18 require_once( __DIR__ . '/user-edit.php' ); -
src/wp-admin/revision.php
10 10 */ 11 11 12 12 /** WordPress Administration Bootstrap */ 13 require_once( dirname( __FILE__ ). '/admin.php' );13 require_once( __DIR__ . '/admin.php' ); 14 14 15 15 require ABSPATH . 'wp-admin/includes/revision.php'; 16 16 -
src/wp-admin/setup-config.php
27 27 error_reporting( 0 ); 28 28 29 29 if ( ! defined( 'ABSPATH' ) ) { 30 define( 'ABSPATH', dirname( dirname( __FILE__ )) . '/' );30 define( 'ABSPATH', dirname( __DIR__ ) . '/' ); 31 31 } 32 32 33 33 require( ABSPATH . 'wp-settings.php' ); -
src/wp-admin/site-health-info.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 $title = __( 'Site Health Info' ); 13 13 -
src/wp-admin/site-health.php
7 7 */ 8 8 9 9 if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) { 10 require_once( dirname( __FILE__ ). '/site-health-info.php' );10 require_once( __DIR__ . '/site-health-info.php' ); 11 11 return; 12 12 } 13 13 14 14 /** WordPress Administration Bootstrap */ 15 require_once( dirname( __FILE__ ). '/admin.php' );15 require_once( __DIR__ . '/admin.php' ); 16 16 17 17 $title = __( 'Site Health Status' ); 18 18 -
src/wp-admin/term.php
8 8 */ 9 9 10 10 /** WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( empty( $_REQUEST['tag_ID'] ) ) { 14 14 $sendback = admin_url( 'edit-tags.php' ); -
src/wp-admin/theme-editor.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( is_multisite() && ! is_network_admin() ) { 13 13 wp_redirect( network_admin_url( 'theme-editor.php' ) ); -
src/wp-admin/theme-install.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 require( ABSPATH . 'wp-admin/includes/theme-install.php' ); 12 12 13 13 wp_reset_vars( array( 'tab' ) ); -
src/wp-admin/themes.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { 13 13 wp_die( -
src/wp-admin/tools.php
19 19 } 20 20 21 21 /** WordPress Administration Bootstrap */ 22 require_once( dirname( __FILE__ ). '/admin.php' );22 require_once( __DIR__ . '/admin.php' ); 23 23 24 24 // The privacy policy guide used to be outputted from here. Since WP 5.3 it is in wp-admin/privacy-policy-guide.php. 25 25 if ( isset( $_GET['wp-privacy-policy-guide'] ) ) { -
src/wp-admin/update-core.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_enqueue_style( 'plugin-install' ); 13 13 wp_enqueue_script( 'plugin-install' ); -
src/wp-admin/update.php
11 11 } 12 12 13 13 /** WordPress Administration Bootstrap */ 14 require_once( dirname( __FILE__ ). '/admin.php' );14 require_once( __DIR__ . '/admin.php' ); 15 15 16 16 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 17 17 -
src/wp-admin/upgrade.php
15 15 define( 'WP_INSTALLING', true ); 16 16 17 17 /** Load WordPress Bootstrap */ 18 require( dirname( dirname( __FILE__ )) . '/wp-load.php' );18 require( dirname( __DIR__ ) . '/wp-load.php' ); 19 19 20 20 nocache_headers(); 21 21 -
src/wp-admin/upload.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'upload_files' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); -
src/wp-admin/user/about.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/about.php' ); -
src/wp-admin/user/admin.php
9 9 10 10 define( 'WP_USER_ADMIN', true ); 11 11 12 require_once( dirname( dirname( __FILE__ )) . '/admin.php' );12 require_once( dirname( __DIR__ ) . '/admin.php' ); 13 13 14 14 if ( ! is_multisite() ) { 15 15 wp_redirect( admin_url() ); -
src/wp-admin/user/credits.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/credits.php' ); -
src/wp-admin/user/freedoms.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/freedoms.php' ); -
src/wp-admin/user/index.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/index.php' ); -
src/wp-admin/user/privacy.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/privacy.php' ); -
src/wp-admin/user/profile.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/profile.php' ); -
src/wp-admin/user/user-edit.php
8 8 */ 9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 require( ABSPATH . 'wp-admin/user-edit.php' ); -
src/wp-admin/user-edit.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) ); 13 13 -
src/wp-admin/user-new.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 if ( is_multisite() ) { 13 13 if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) { -
src/wp-admin/users.php
8 8 */ 9 9 10 10 /** WordPress Administration Bootstrap */ 11 require_once( dirname( __FILE__ ). '/admin.php' );11 require_once( __DIR__ . '/admin.php' ); 12 12 13 13 if ( ! current_user_can( 'list_users' ) ) { 14 14 wp_die( -
src/wp-admin/widgets.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( dirname( __FILE__ ). '/admin.php' );10 require_once( __DIR__ . '/admin.php' ); 11 11 12 12 /** WordPress Administration Widgets API */ 13 13 require_once( ABSPATH . 'wp-admin/includes/widgets.php' ); -
src/wp-blog-header.php
10 10 $wp_did_header = true; 11 11 12 12 // Load the WordPress library. 13 require_once( dirname( __FILE__ ). '/wp-load.php' );13 require_once( __DIR__ . '/wp-load.php' ); 14 14 15 15 // Set up the WordPress query. 16 16 wp(); -
src/wp-comments-post.php
18 18 } 19 19 20 20 /** Sets up the WordPress Environment. */ 21 require( dirname( __FILE__ ). '/wp-load.php' );21 require( __DIR__ . '/wp-load.php' ); 22 22 23 23 nocache_headers(); 24 24 -
src/wp-cron.php
38 38 39 39 if ( ! defined( 'ABSPATH' ) ) { 40 40 /** Set up WordPress environment */ 41 require_once( dirname( __FILE__ ). '/wp-load.php' );41 require_once( __DIR__ . '/wp-load.php' ); 42 42 } 43 43 44 44 /** -
src/wp-includes/ms-files.php
9 9 */ 10 10 11 11 define( 'SHORTINIT', true ); 12 require_once( dirname( dirname( __FILE__ )) . '/wp-load.php' );12 require_once( dirname( __DIR__ ) . '/wp-load.php' ); 13 13 14 14 if ( ! is_multisite() ) { 15 15 die( 'Multisite support not enabled' ); -
src/wp-includes/plugin.php
22 22 */ 23 23 24 24 // Initialize the filter globals. 25 require( dirname( __FILE__ ). '/class-wp-hook.php' );25 require( __DIR__ . '/class-wp-hook.php' ); 26 26 27 27 /** @var WP_Hook[] $wp_filter */ 28 28 global $wp_filter, $wp_actions, $wp_current_filter; -
src/wp-includes/pomo/mo.php
7 7 * @subpackage mo 8 8 */ 9 9 10 require_once dirname( __FILE__ ). '/translations.php';11 require_once dirname( __FILE__ ). '/streams.php';10 require_once __DIR__ . '/translations.php'; 11 require_once __DIR__ . '/streams.php'; 12 12 13 13 if ( ! class_exists( 'MO', false ) ) : 14 14 class MO extends Gettext_Translations { -
src/wp-includes/pomo/po.php
7 7 * @subpackage po 8 8 */ 9 9 10 require_once dirname( __FILE__ ). '/translations.php';10 require_once __DIR__ . '/translations.php'; 11 11 12 12 if ( ! defined( 'PO_MAX_LINE_LEN' ) ) { 13 13 define( 'PO_MAX_LINE_LEN', 79 ); -
src/wp-includes/pomo/translations.php
7 7 * @subpackage translations 8 8 */ 9 9 10 require_once dirname( __FILE__ ). '/plural-forms.php';11 require_once dirname( __FILE__ ). '/entry.php';10 require_once __DIR__ . '/plural-forms.php'; 11 require_once __DIR__ . '/entry.php'; 12 12 13 13 if ( ! class_exists( 'Translations', false ) ) : 14 14 class Translations { -
src/wp-includes/widgets/class-wp-widget-text.php
417 417 * @since 4.9.3 418 418 */ 419 419 public function enqueue_preview_scripts() { 420 require_once dirname( dirname( __FILE__ )) . '/media.php';420 require_once dirname( __DIR__ ) . '/media.php'; 421 421 422 422 wp_playlist_scripts( 'audio' ); 423 423 wp_playlist_scripts( 'video' ); -
src/wp-links-opml.php
12 12 * @package WordPress 13 13 */ 14 14 15 require_once( dirname( __FILE__ ). '/wp-load.php' );15 require_once( __DIR__ . '/wp-load.php' ); 16 16 17 17 header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); 18 18 $link_cat = ''; -
src/wp-load.php
18 18 19 19 /** Define ABSPATH as this file's directory */ 20 20 if ( ! defined( 'ABSPATH' ) ) { 21 define( 'ABSPATH', dirname( __FILE__ ). '/' );21 define( 'ABSPATH', __DIR__ . '/' ); 22 22 } 23 23 24 24 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); -
src/wp-login.php
9 9 */ 10 10 11 11 /** Make sure that the WordPress bootstrap has run before continuing. */ 12 require( dirname( __FILE__ ). '/wp-load.php' );12 require( __DIR__ . '/wp-load.php' ); 13 13 14 14 // Redirect to HTTPS login if forced to use SSL. 15 15 if ( force_ssl_admin() && ! is_ssl() ) { -
src/wp-mail.php
8 8 */ 9 9 10 10 /** Make sure that the WordPress bootstrap has run before continuing. */ 11 require( dirname( __FILE__ ). '/wp-load.php' );11 require( __DIR__ . '/wp-load.php' ); 12 12 13 13 /** This filter is documented in wp-admin/options.php */ 14 14 if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) { -
src/wp-signup.php
1 1 <?php 2 2 3 3 /** Sets up the WordPress Environment. */ 4 require( dirname( __FILE__ ). '/wp-load.php' );4 require( __DIR__ . '/wp-load.php' ); 5 5 6 6 add_action( 'wp_head', 'wp_no_robots' ); 7 7 8 require( dirname( __FILE__ ). '/wp-blog-header.php' );8 require( __DIR__ . '/wp-blog-header.php' ); 9 9 10 10 nocache_headers(); 11 11 -
src/wp-trackback.php
9 9 */ 10 10 11 11 if ( empty( $wp ) ) { 12 require_once( dirname( __FILE__ ). '/wp-load.php' );12 require_once( __DIR__ . '/wp-load.php' ); 13 13 wp( array( 'tb' => '1' ) ); 14 14 } 15 15 -
src/xmlrpc.php
27 27 } 28 28 29 29 /** Include the bootstrap for setting up WordPress environment */ 30 include( dirname( __FILE__ ). '/wp-load.php' );30 include( __DIR__ . '/wp-load.php' ); 31 31 32 32 if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html 33 33 header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); -
tests/phpunit/data/themedir1/camelCase/index.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); -
tests/phpunit/data/themedir1/sandbox/functions.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); 6 6 7 7 ?> -
tests/phpunit/data/themedir1/sandbox/index.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); 6 6 7 7 ?> -
tests/phpunit/data/themedir1/theme1/functions.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); 6 6 7 7 ?> -
tests/phpunit/data/themedir1/theme1/index.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); 6 6 7 7 ?> -
tests/phpunit/data/themedir1/theme1-dupe/functions.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); 6 6 7 7 ?> -
tests/phpunit/data/themedir1/theme1-dupe/index.php
2 2 3 3 // dummy theme 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__);5 echo __DIR__ . '/' . basename(__FILE__); 6 6 7 7 ?> -
tests/phpunit/includes/abstract-testcase.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/factory.php';4 require_once dirname( __FILE__ ). '/trac.php';3 require_once __DIR__ . '/factory.php'; 4 require_once __DIR__ . '/trac.php'; 5 5 6 6 /** 7 7 * Defines a basic fixture to run multiple tests. -
tests/phpunit/includes/bootstrap.php
7 7 * Compatibility with PHPUnit 6+ 8 8 */ 9 9 if ( class_exists( 'PHPUnit\Runner\Version' ) ) { 10 require_once dirname( __FILE__ ). '/phpunit6/compat.php';10 require_once __DIR__ . '/phpunit6/compat.php'; 11 11 } 12 12 13 13 if ( defined( 'WP_TESTS_CONFIG_FILE_PATH' ) ) { 14 14 $config_file_path = WP_TESTS_CONFIG_FILE_PATH; 15 15 } else { 16 $config_file_path = dirname( dirname( __FILE__ ));16 $config_file_path = dirname( __DIR__ ); 17 17 if ( ! file_exists( $config_file_path . '/wp-tests-config.php' ) ) { 18 18 // Support the config file from the root of the develop repository. 19 19 if ( basename( $config_file_path ) === 'phpunit' && basename( dirname( $config_file_path ) ) === 'tests' ) { … … 35 35 } 36 36 37 37 require_once $config_file_path; 38 require_once dirname( __FILE__ ). '/functions.php';38 require_once __DIR__ . '/functions.php'; 39 39 40 40 if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) { 41 41 printf( … … 54 54 tests_reset__SERVER(); 55 55 56 56 define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); 57 define( 'DIR_TESTDATA', dirname( __FILE__ ). '/../data' );58 define( 'DIR_TESTROOT', realpath( dirname( dirname( __FILE__ )) ) );57 define( 'DIR_TESTDATA', __DIR__ . '/../data' ); 58 define( 'DIR_TESTROOT', realpath( dirname( __DIR__ ) ) ); 59 59 60 60 define( 'WP_LANG_DIR', DIR_TESTDATA . '/languages' ); 61 61 … … 81 81 $multisite = $multisite || ( defined( 'MULTISITE' ) && MULTISITE ); 82 82 83 83 // Override the PHPMailer 84 require_once( dirname( __FILE__ ). '/mock-mailer.php' );84 require_once( __DIR__ . '/mock-mailer.php' ); 85 85 $phpmailer = new MockPHPMailer( true ); 86 86 87 87 if ( ! defined( 'WP_DEFAULT_THEME' ) ) { … … 94 94 } 95 95 96 96 if ( '1' !== getenv( 'WP_TESTS_SKIP_INSTALL' ) ) { 97 system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ). '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );97 system( WP_PHP_BINARY . ' ' . escapeshellarg( __DIR__ . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval ); 98 98 if ( 0 !== $retval ) { 99 99 exit( $retval ); 100 100 } … … 136 136 _delete_all_posts(); 137 137 138 138 if ( version_compare( tests_get_phpunit_version(), '7.0', '>=' ) ) { 139 require dirname( __FILE__ ). '/phpunit7/testcase.php';139 require __DIR__ . '/phpunit7/testcase.php'; 140 140 } else { 141 require dirname( __FILE__ ). '/testcase.php';141 require __DIR__ . '/testcase.php'; 142 142 } 143 143 144 require dirname( __FILE__ ). '/testcase-rest-api.php';145 require dirname( __FILE__ ). '/testcase-rest-controller.php';146 require dirname( __FILE__ ). '/testcase-rest-post-type-controller.php';147 require dirname( __FILE__ ). '/testcase-xmlrpc.php';148 require dirname( __FILE__ ). '/testcase-ajax.php';149 require dirname( __FILE__ ). '/testcase-canonical.php';150 require dirname( __FILE__ ). '/exceptions.php';151 require dirname( __FILE__ ). '/utils.php';152 require dirname( __FILE__ ). '/spy-rest-server.php';153 require dirname( __FILE__ ). '/class-wp-rest-test-search-handler.php';154 require dirname( __FILE__ ). '/class-wp-fake-block-type.php';144 require __DIR__ . '/testcase-rest-api.php'; 145 require __DIR__ . '/testcase-rest-controller.php'; 146 require __DIR__ . '/testcase-rest-post-type-controller.php'; 147 require __DIR__ . '/testcase-xmlrpc.php'; 148 require __DIR__ . '/testcase-ajax.php'; 149 require __DIR__ . '/testcase-canonical.php'; 150 require __DIR__ . '/exceptions.php'; 151 require __DIR__ . '/utils.php'; 152 require __DIR__ . '/spy-rest-server.php'; 153 require __DIR__ . '/class-wp-rest-test-search-handler.php'; 154 require __DIR__ . '/class-wp-fake-block-type.php'; 155 155 156 156 /** 157 157 * A class to handle additional command line arguments passed to the script. -
tests/phpunit/includes/factory.php
1 1 <?php 2 2 3 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-thing.php' );4 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-post.php' );5 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-bookmark.php' );6 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-attachment.php' );7 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-user.php' );8 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-comment.php' );9 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-blog.php' );10 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-network.php' );11 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-for-term.php' );12 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-generator-sequence.php' );13 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory-callback-after-create.php' );14 require_once( dirname( __FILE__ ). '/factory/class-wp-unittest-factory.php' );3 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-thing.php' ); 4 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-post.php' ); 5 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-bookmark.php' ); 6 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-attachment.php' ); 7 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-user.php' ); 8 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-comment.php' ); 9 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-blog.php' ); 10 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-network.php' ); 11 require_once( __DIR__ . '/factory/class-wp-unittest-factory-for-term.php' ); 12 require_once( __DIR__ . '/factory/class-wp-unittest-generator-sequence.php' ); 13 require_once( __DIR__ . '/factory/class-wp-unittest-factory-callback-after-create.php' ); 14 require_once( __DIR__ . '/factory/class-wp-unittest-factory.php' ); -
tests/phpunit/includes/install.php
11 11 12 12 define( 'WP_INSTALLING', true ); 13 13 require_once $config_file_path; 14 require_once dirname( __FILE__ ). '/functions.php';14 require_once __DIR__ . '/functions.php'; 15 15 16 16 // Set the theme to our special empty theme, to avoid interference from the current Twenty* theme. 17 17 if ( ! defined( 'WP_DEFAULT_THEME' ) ) { … … 33 33 34 34 // Override the PHPMailer 35 35 global $phpmailer; 36 require_once( dirname( __FILE__ ). '/mock-mailer.php' );36 require_once( __DIR__ . '/mock-mailer.php' ); 37 37 $phpmailer = new MockPHPMailer(); 38 38 39 register_theme_directory( dirname( __FILE__ ). '/../data/themedir1' );39 register_theme_directory( __DIR__ . '/../data/themedir1' ); 40 40 41 41 /* 42 42 * default_storage_engine and storage_engine are the same option, but storage_engine -
tests/phpunit/includes/listener-loader.php
1 1 <?php 2 2 3 3 if ( version_compare( tests_get_phpunit_version(), '7.0', '>=' ) ) { 4 require dirname( __FILE__ ). '/phpunit7/speed-trap-listener.php';4 require __DIR__ . '/phpunit7/speed-trap-listener.php'; 5 5 } else { 6 require dirname( __FILE__ ). '/speed-trap-listener.php';6 require __DIR__ . '/speed-trap-listener.php'; 7 7 } -
tests/phpunit/includes/phpunit7/testcase.php
1 1 <?php 2 2 3 require_once dirname( dirname( __FILE__ )) . '/abstract-testcase.php';3 require_once dirname( __DIR__ ) . '/abstract-testcase.php'; 4 4 5 5 /** 6 6 * Defines a basic fixture to run multiple tests. -
tests/phpunit/includes/testcase.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/abstract-testcase.php';3 require_once __DIR__ . '/abstract-testcase.php'; 4 4 5 5 /** 6 6 * Defines a basic fixture to run multiple tests. -
tests/phpunit/tests/canonical/noRewrite.php
1 1 <?php 2 2 3 require_once dirname( dirname( __FILE__ )) . '/canonical.php';3 require_once dirname( __DIR__ ) . '/canonical.php'; 4 4 5 5 /** 6 6 * @group canonical -
tests/phpunit/tests/db/charset.php
25 25 public static function setUpBeforeClass() { 26 26 parent::setUpBeforeClass(); 27 27 28 require_once( dirname( dirname( __FILE__ )) . '/db.php' );28 require_once( dirname( __DIR__ ) . '/db.php' ); 29 29 30 30 self::$_wpdb = new WpdbExposedMethodsForTesting(); 31 31 -
tests/phpunit/tests/filesystem/base.php
24 24 return 'MockFS'; 25 25 } 26 26 function filter_abstraction_file( $file ) { 27 return dirname( dirname( dirname( __FILE__ )) ) . '/includes/mock-fs.php';27 return dirname( dirname( __DIR__ ) ) . '/includes/mock-fs.php'; 28 28 } 29 29 30 30 function test_is_MockFS_sane() { -
tests/phpunit/tests/filesystem/findFolder.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * @group filesystem -
tests/phpunit/tests/http/curl.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * @group http -
tests/phpunit/tests/http/streams.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * @group http -
tests/phpunit/tests/image/editor.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * Test the WP_Image_Editor base class -
tests/phpunit/tests/image/editorGd.php
7 7 * @group media 8 8 * @group wp-image-editor-gd 9 9 */ 10 require_once( dirname( __FILE__ ). '/base.php' );10 require_once( __DIR__ . '/base.php' ); 11 11 12 12 class Tests_Image_Editor_GD extends WP_Image_UnitTestCase { 13 13 -
tests/phpunit/tests/image/editorImagick.php
7 7 * @group media 8 8 * @group wp-image-editor-imagick 9 9 */ 10 require_once( dirname( __FILE__ ). '/base.php' );10 require_once( __DIR__ . '/base.php' ); 11 11 12 12 class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { 13 13 -
tests/phpunit/tests/image/resize.php
6 6 * @group upload 7 7 * @group resize 8 8 */ 9 require_once( dirname( __FILE__ ). '/base.php' );9 require_once( __DIR__ . '/base.php' ); 10 10 11 11 abstract class WP_Tests_Image_Resize_UnitTestCase extends WP_Image_UnitTestCase { 12 12 -
tests/phpunit/tests/image/resizeGd.php
6 6 * @group upload 7 7 * @group resize 8 8 */ 9 require_once( dirname( __FILE__ ). '/resize.php' );9 require_once( __DIR__ . '/resize.php' ); 10 10 11 11 class Test_Image_Resize_GD extends WP_Tests_Image_Resize_UnitTestCase { 12 12 -
tests/phpunit/tests/image/resizeImagick.php
6 6 * @group upload 7 7 * @group resize 8 8 */ 9 require_once( dirname( __FILE__ ). '/resize.php' );9 require_once( __DIR__ . '/resize.php' ); 10 10 11 11 class Test_Image_Resize_Imagick extends WP_Tests_Image_Resize_UnitTestCase { 12 12 -
tests/phpunit/tests/import/import.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * @group import -
tests/phpunit/tests/import/parser.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * @group import -
tests/phpunit/tests/import/postmeta.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/base.php';3 require_once __DIR__ . '/base.php'; 4 4 5 5 /** 6 6 * @group import -
tests/phpunit/tests/pomo/pluralForms.php
78 78 $this->markTestSkipped( 'Lambda functions are deprecated in PHP 7.2' ); 79 79 } 80 80 81 require_once dirname( dirname( dirname( __FILE__ )) ) . '/includes/plural-form-function.php';81 require_once dirname( dirname( __DIR__ ) ) . '/includes/plural-form-function.php'; 82 82 83 83 $parenthesized = self::parenthesize_plural_expression( $expression ); 84 84 $old_style = tests_make_plural_form_function( $nplurals, $parenthesized ); -
tests/phpunit/tests/query/verboseRewriteRules.php
1 1 <?php 2 2 3 require_once dirname( __FILE__ ). '/conditionals.php';3 require_once __DIR__ . '/conditionals.php'; 4 4 5 5 /** 6 6 * @group query -
tests/phpunit/wp-mail-real-test.php
10 10 if ( is_callable( 'getopt' ) ) { 11 11 $opts = getopt( $options ); 12 12 } else { 13 include( dirname( __FILE__ ). '/wp-testlib/getopt.php' );13 include( __DIR__ . '/wp-testlib/getopt.php' ); 14 14 $opts = getoptParser::getopt( $options ); 15 15 } 16 16 17 define( 'DIR_TESTROOT', realpath( dirname( __FILE__ )) );17 define( 'DIR_TESTROOT', realpath( __DIR__ ) ); 18 18 19 19 define( 'TEST_WP', true ); 20 20 define( 'WP_DEBUG', array_key_exists( 'd', $opts ) ); -
wp-config-sample.php
83 83 84 84 /** Absolute path to the WordPress directory. */ 85 85 if ( ! defined( 'ABSPATH' ) ) { 86 define( 'ABSPATH', dirname( __FILE__ ). '/' );86 define( 'ABSPATH', __DIR__ . '/' ); 87 87 } 88 88 89 89 /** Sets up WordPress vars and included files. */ -
wp-tests-config-sample.php
2 2 3 3 /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ 4 4 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 5 define( 'ABSPATH', dirname( __FILE__ ). '/build/' );5 define( 'ABSPATH', __DIR__ . '/build/' ); 6 6 } else { 7 define( 'ABSPATH', dirname( __FILE__ ). '/src/' );7 define( 'ABSPATH', __DIR__ . '/src/' ); 8 8 } 9 9 10 10 /*