Ticket #36335: 36335.4.diff
File 36335.4.diff, 72.1 KB (added by , 8 years ago) |
---|
-
composer.json
1 { 2 "name": "wordpress/wordpress", 3 "description": "WordPress is web software you can use to create a beautiful website or blog.", 4 "keywords": [ 5 "blog", 6 "cms" 7 ], 8 "type": "wordpress-core", 9 "homepage": "https://wordpress.org/", 10 "license": "GPL-2.0+", 11 "authors": [ 12 { 13 "name": "WordPress Community", 14 "homepage": "https://wordpress.org/about/" 15 } 16 ], 17 "support": { 18 "issues": "https://core.trac.wordpress.org/", 19 "forum": "https://wordpress.org/support/", 20 "wiki": "https://codex.wordpress.org/", 21 "irc": "irc://irc.freenode.net/wordpress", 22 "source": "https://core.trac.wordpress.org/browser" 23 }, 24 "require": { 25 "xrstf/composer-php52": "1.*" 26 }, 27 "scripts": { 28 "post-install-cmd": [ 29 "xrstf\\Composer52\\Generator::onPostInstallCmd" 30 ], 31 "post-update-cmd": [ 32 "xrstf\\Composer52\\Generator::onPostInstallCmd" 33 ], 34 "post-autoload-dump": [ 35 "xrstf\\Composer52\\Generator::onPostInstallCmd" 36 ] 37 }, 38 "autoload": { 39 "classmap": [ 40 "src/wp-includes/", 41 "src/wp-admin/" 42 ] 43 }, 44 "config": { 45 "vendor-dir": "src/vendor" 46 } 47 } 48 No newline at end of file -
src/wp-admin/includes/admin.php
50 50 require_once(ABSPATH . 'wp-admin/includes/post.php'); 51 51 52 52 /** WordPress Administration Screen API */ 53 require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');54 53 require_once(ABSPATH . 'wp-admin/includes/screen.php'); 55 54 56 55 /** WordPress Taxonomy Administration API */ … … 60 59 require_once(ABSPATH . 'wp-admin/includes/template.php'); 61 60 62 61 /** WordPress List Table Administration API and base class */ 63 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');64 62 require_once(ABSPATH . 'wp-admin/includes/list-table.php'); 65 63 66 64 /** WordPress Theme Administration API */ … … 69 67 /** WordPress User Administration API */ 70 68 require_once(ABSPATH . 'wp-admin/includes/user.php'); 71 69 72 /** WordPress Site Icon API */73 require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');74 75 70 /** WordPress Update Administration API */ 76 71 require_once(ABSPATH . 'wp-admin/includes/update.php'); 77 72 -
src/wp-admin/includes/ajax-actions.php
1507 1507 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 1513 1512 if ( ! isset( $results ) ) … … 3137 3136 */ 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');3139 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3141 3140 } 3142 3141 3143 3142 $GLOBALS['wp_press_this']->save_post(); … … 3152 3151 */ 3153 3152 function wp_ajax_press_this_add_category() { 3154 3153 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3155 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php');3154 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3156 3155 } 3157 3156 3158 3157 $GLOBALS['wp_press_this']->add_category(); … … 3183 3182 3184 3183 switch ( $context ) { 3185 3184 case 'site-icon': 3186 require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php'; 3187 global $wp_site_icon; 3185 $wp_site_icon = new WP_Site_Icon; 3188 3186 3189 3187 // Skip creating a new attachment if the attachment is a Site Icon. 3190 3188 if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) { … … 3332 3330 wp_send_json_error( $status ); 3333 3331 } 3334 3332 3335 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3336 3333 include_once( ABSPATH . 'wp-admin/includes/theme.php' ); 3337 3334 3338 3335 $api = themes_api( 'theme_information', array( … … 3439 3436 wp_send_json_error( $status ); 3440 3437 } 3441 3438 3442 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3443 3444 3439 $current = get_site_transient( 'update_themes' ); 3445 3440 if ( empty( $current ) ) { 3446 3441 wp_update_themes(); … … 3590 3585 wp_send_json_error( $status ); 3591 3586 } 3592 3587 3593 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3594 3588 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); 3595 3589 3596 3590 $api = plugins_api( 'plugin_information', array( … … 3698 3692 $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); 3699 3693 } 3700 3694 3701 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';3702 3703 3695 wp_update_plugins(); 3704 3696 3705 3697 $skin = new WP_Ajax_Upgrader_Skin(); -
src/wp-admin/includes/class-wp-press-this.php
479 479 // Embedded Daily Motion videos 480 480 $src = 'https://www.dailymotion.com/video/' . $src_matches[2]; 481 481 } else { 482 require_once( ABSPATH . WPINC . '/class-oembed.php' );483 482 $oembed = _wp_oembed_get_object(); 484 483 485 484 if ( ! $oembed->get_provider( $src, array( 'discover' => false ) ) ) { -
src/wp-admin/includes/class-wp-site-icon.php
240 240 return $value; 241 241 } 242 242 } 243 244 /**245 * @global WP_Site_Icon $wp_site_icon246 */247 $GLOBALS['wp_site_icon'] = new WP_Site_Icon; -
src/wp-admin/includes/class-wp-upgrader-skins.php
6 6 * @subpackage Upgrader 7 7 * @since 2.8.0 8 8 */ 9 10 /** WP_Upgrader_Skin class */11 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';12 13 /** Plugin_Upgrader_Skin class */14 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';15 16 /** Theme_Upgrader_Skin class */17 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';18 19 /** Bulk_Upgrader_Skin class */20 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';21 22 /** Bulk_Plugin_Upgrader_Skin class */23 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';24 25 /** Bulk_Theme_Upgrader_Skin class */26 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';27 28 /** Plugin_Installer_Skin class */29 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';30 31 /** Theme_Installer_Skin class */32 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';33 34 /** Language_Pack_Upgrader_Skin class */35 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';36 37 /** Automatic_Upgrader_Skin class */38 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';39 40 /** WP_Ajax_Upgrader_Skin class */41 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php'; -
src/wp-admin/includes/class-wp-upgrader.php
9 9 * @since 2.8.0 10 10 */ 11 11 12 /** WP_Upgrader_Skin class */13 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';14 15 /** Plugin_Upgrader_Skin class */16 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';17 18 /** Theme_Upgrader_Skin class */19 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';20 21 /** Bulk_Upgrader_Skin class */22 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';23 24 /** Bulk_Plugin_Upgrader_Skin class */25 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';26 27 /** Bulk_Theme_Upgrader_Skin class */28 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';29 30 /** Plugin_Installer_Skin class */31 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';32 33 /** Theme_Installer_Skin class */34 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';35 36 /** Language_Pack_Upgrader_Skin class */37 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';38 39 /** Automatic_Upgrader_Skin class */40 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';41 42 /** WP_Ajax_Upgrader_Skin class */43 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';44 45 12 /** 46 13 * Core class used for upgrading/installing a local set of files via 47 14 * the Filesystem Abstraction classes from a Zip file. … … 888 855 889 856 } 890 857 891 /** Plugin_Upgrader class */892 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';893 894 /** Theme_Upgrader class */895 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php';896 897 /** Language_Pack_Upgrader class */898 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php';899 900 /** Core_Upgrader class */901 require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php';902 903 /** File_Upload_Upgrader class */904 require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php';905 906 /** WP_Automatic_Updater class */907 require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php'; -
src/wp-admin/includes/deprecated.php
749 749 750 750 static $num = 1; 751 751 752 if ( ! class_exists( '_WP_Editors', false ) )753 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );754 755 752 $editor_id = 'content' . $num++; 756 753 757 754 $set = array( … … 1144 1141 if ( !empty($feedback) ) 1145 1142 add_filter('update_feedback', $feedback); 1146 1143 1147 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );1148 1144 $upgrader = new Core_Upgrader(); 1149 1145 return $upgrader->upgrade($current); 1150 1146 … … 1167 1163 if ( !empty($feedback) ) 1168 1164 add_filter('update_feedback', $feedback); 1169 1165 1170 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );1171 1166 $upgrader = new Plugin_Upgrader(); 1172 1167 return $upgrader->upgrade($plugin); 1173 1168 } … … 1189 1184 if ( !empty($feedback) ) 1190 1185 add_filter('update_feedback', $feedback); 1191 1186 1192 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );1193 1187 $upgrader = new Theme_Upgrader(); 1194 1188 return $upgrader->upgrade($theme); 1195 1189 } -
src/wp-admin/includes/file.php
737 737 738 738 mbstring_binary_safe_encoding(); 739 739 740 require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');741 742 740 $archive = new PclZip($file); 743 741 744 742 $archive_files = $archive->extract(PCLZIP_OPT_EXTRACT_AS_STRING); … … 886 884 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { 887 885 global $wp_filesystem; 888 886 889 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');890 891 887 $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership ); 892 888 893 889 if ( ! $method ) -
src/wp-admin/includes/list-table.php
40 40 ); 41 41 42 42 if ( isset( $core_classes[ $class ] ) ) { 43 foreach ( (array) $core_classes[ $class ] as $required )44 require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' );45 46 43 if ( isset( $args['screen'] ) ) 47 44 $args['screen'] = convert_to_screen( $args['screen'] ); 48 45 elseif ( isset( $GLOBALS['hook_suffix'] ) ) -
src/wp-admin/includes/media.php
3013 3013 define( 'GETID3_TEMP_DIR', get_temp_dir() ); 3014 3014 } 3015 3015 3016 if ( ! class_exists( 'getID3', false ) ) {3017 require( ABSPATH . WPINC . '/ID3/getid3.php' );3018 }3019 3016 $id3 = new getID3(); 3020 3017 $data = $id3->analyze( $file ); 3021 3018 … … 3074 3071 define( 'GETID3_TEMP_DIR', get_temp_dir() ); 3075 3072 } 3076 3073 3077 if ( ! class_exists( 'getID3', false ) ) {3078 require( ABSPATH . WPINC . '/ID3/getid3.php' );3079 }3080 3074 $id3 = new getID3(); 3081 3075 $data = $id3->analyze( $file ); 3082 3076 -
src/wp-admin/includes/nav-menu.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 /** Walker_Nav_Menu_Edit class */11 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );12 13 /** Walker_Nav_Menu_Checklist class */14 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' );15 16 10 /** 17 11 * Prints the appropriate response to a menu quick search. 18 12 * -
src/wp-admin/includes/template.php
8 8 * @subpackage Administration 9 9 */ 10 10 11 /** Walker_Category_Checklist class */12 require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' );13 14 /** WP_Internal_Pointers class */15 require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' );16 17 11 // 18 12 // Category Checklists 19 13 // -
src/wp-admin/includes/translation-install.php
202 202 } 203 203 $translation = (object) $translation; 204 204 205 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';206 205 $skin = new Automatic_Upgrader_Skin; 207 206 $upgrader = new Language_Pack_Upgrader( $skin ); 208 207 $translation->type = 'core'; … … 228 227 return false; 229 228 } 230 229 231 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';232 230 $skin = new Automatic_Upgrader_Skin; 233 231 $upgrader = new Language_Pack_Upgrader( $skin ); 234 232 $upgrader->init(); -
src/wp-admin/includes/update.php
74 74 if ( ! $updates || empty( $updates->updates ) ) 75 75 return false; 76 76 77 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );78 79 77 $auto_update = false; 80 78 $upgrader = new WP_Automatic_Updater; 81 79 foreach ( $updates->updates as $update ) { -
src/wp-admin/network/upgrade.php
13 13 if ( ! is_multisite() ) 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 15 16 require_once( ABSPATH . WPINC . '/http.php' );17 18 16 $title = __( 'Upgrade Network' ); 19 17 $parent_file = 'upgrade.php'; 20 18 -
src/wp-admin/press-this.php
23 23 * @global WP_Press_This $wp_press_this 24 24 */ 25 25 if ( empty( $GLOBALS['wp_press_this'] ) ) { 26 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php');26 $GLOBALS['wp_press_this'] = new WP_Press_This(); 27 27 } 28 28 29 29 $GLOBALS['wp_press_this']->html(); -
src/wp-admin/update-core.php
163 163 _e('You have the latest version of WordPress.'); 164 164 165 165 if ( wp_http_supports( array( 'ssl' ) ) ) { 166 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';167 166 $upgrader = new WP_Automatic_Updater; 168 167 $future_minor_update = (object) array( 169 168 'current' => $wp_version . '.1.next.minor', … … 187 186 } 188 187 189 188 if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) { 190 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';191 189 $upgrader = new WP_Automatic_Updater; 192 190 if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) { 193 191 echo '<div class="updated inline"><p>'; … … 438 436 function do_core_upgrade( $reinstall = false ) { 439 437 global $wp_filesystem; 440 438 441 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );442 443 439 if ( $reinstall ) 444 440 $url = 'update-core.php?action=do-core-reinstall'; 445 441 else … … 710 706 check_admin_referer( 'upgrade-translations' ); 711 707 712 708 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 713 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );714 709 715 710 $url = 'update-core.php?action=do-translation-upgrade'; 716 711 $nonce = 'upgrade-translations'; -
src/wp-admin/update.php
12 12 /** WordPress Administration Bootstrap */ 13 13 require_once( dirname( __FILE__ ) . '/admin.php' ); 14 14 15 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );16 17 15 if ( isset($_GET['action']) ) { 18 16 $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : ''; 19 17 $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : ''; … … 218 216 if ( ! current_user_can('install_themes') ) 219 217 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 220 218 221 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..222 223 219 check_admin_referer( 'install-theme_' . $theme ); 224 220 $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth. 225 221 -
src/wp-includes/Text/Diff/Renderer/inline.php
13 13 14 14 /** Text_Diff_Renderer */ 15 15 16 // WP #739117 require_once dirname(dirname(__FILE__)) . '/Renderer.php';18 19 16 /** 20 17 * "Inline" diff renderer. 21 18 * -
src/wp-includes/Text/Diff.php
47 47 $engine = basename($engine); 48 48 } 49 49 50 // WP #739151 require_once dirname(__FILE__).'/Diff/Engine/' . $engine . '.php';52 50 $class = 'Text_Diff_Engine_' . $engine; 53 51 $diff_engine = new $class(); 54 52 -
src/wp-includes/admin-bar.php
26 26 if ( ! is_admin_bar_showing() ) 27 27 return false; 28 28 29 /* Load the admin bar class code ready for instantiation */30 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );31 32 29 /* Instantiate the admin bar */ 33 30 34 31 /** … … 294 291 } 295 292 296 293 if ( is_network_admin() ) { 297 /* translators: %s: site name */ 294 /* translators: %s: site name */ 298 295 $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); 299 296 } elseif ( is_user_admin() ) { 300 /* translators: %s: site name */ 297 /* translators: %s: site name */ 301 298 $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); 302 299 } 303 300 -
src/wp-includes/class-feed.php
1 1 <?php 2 3 if ( ! class_exists( 'SimplePie', false ) )4 require_once( ABSPATH . WPINC . '/class-simplepie.php' );5 6 2 /** 7 3 * Core class used to implement a feed cache. 8 4 * -
src/wp-includes/class-oembed.php
678 678 } 679 679 } 680 680 681 /**682 * Returns the initialized WP_oEmbed object.683 *684 * @since 2.9.0685 * @access private686 *687 * @staticvar WP_oEmbed $wp_oembed688 *689 * @return WP_oEmbed object.690 */691 function _wp_oembed_get_object() {692 static $wp_oembed = null;693 694 if ( is_null( $wp_oembed ) ) {695 $wp_oembed = new WP_oEmbed();696 }697 return $wp_oembed;698 } -
src/wp-includes/class-phpmailer.php
1385 1385 public function getSMTPInstance() 1386 1386 { 1387 1387 if (!is_object($this->smtp)) { 1388 require_once( 'class-smtp.php' );1389 1388 $this->smtp = new SMTP; 1390 1389 } 1391 1390 return $this->smtp; -
src/wp-includes/class-simplepie.php
1 1 <?php 2 2 if ( ! class_exists( 'SimplePie', false ) ) : 3 3 4 // Load classes we will need.5 require ABSPATH . WPINC . '/SimplePie/Misc.php';6 require ABSPATH . WPINC . '/SimplePie/Cache.php';7 require ABSPATH . WPINC . '/SimplePie/File.php';8 require ABSPATH . WPINC . '/SimplePie/Sanitize.php';9 require ABSPATH . WPINC . '/SimplePie/Registry.php';10 require ABSPATH . WPINC . '/SimplePie/IRI.php';11 require ABSPATH . WPINC . '/SimplePie/Locator.php';12 require ABSPATH . WPINC . '/SimplePie/Content/Type/Sniffer.php';13 require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php';14 require ABSPATH . WPINC . '/SimplePie/Parser.php';15 require ABSPATH . WPINC . '/SimplePie/Item.php';16 require ABSPATH . WPINC . '/SimplePie/Parse/Date.php';17 require ABSPATH . WPINC . '/SimplePie/Author.php';18 19 4 /** 20 5 * WordPress autoloader for SimplePie. 21 6 * -
src/wp-includes/class-wp-customize-control.php
599 599 600 600 } 601 601 602 /** WP_Customize_Color_Control class */603 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );604 605 /** WP_Customize_Media_Control class */606 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );607 608 /** WP_Customize_Upload_Control class */609 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );610 611 /** WP_Customize_Image_Control class */612 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );613 614 /** WP_Customize_Background_Image_Control class */615 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );616 617 /** WP_Customize_Cropped_Image_Control class */618 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );619 620 /** WP_Customize_Site_Icon_Control class */621 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );622 623 /** WP_Customize_Header_Image_Control class */624 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );625 626 /** WP_Customize_Theme_Control class */627 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );628 629 /** WP_Widget_Area_Customize_Control class */630 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );631 632 /** WP_Widget_Form_Customize_Control class */633 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );634 635 /** WP_Customize_Nav_Menu_Control class */636 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );637 638 /** WP_Customize_Nav_Menu_Item_Control class */639 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );640 641 /** WP_Customize_Nav_Menu_Location_Control class */642 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );643 644 /** WP_Customize_Nav_Menu_Name_Control class */645 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );646 647 /** WP_Customize_Nav_Menu_Auto_Add_Control class */648 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );649 650 /** WP_Customize_New_Menu_Control class */651 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' ); -
src/wp-includes/class-wp-customize-manager.php
205 205 * @since 3.4.0 206 206 */ 207 207 public function __construct() { 208 require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' );209 require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' );210 require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' );211 require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' );212 213 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );214 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );215 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );216 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );217 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );218 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );219 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );220 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );221 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );222 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );223 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );224 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );225 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );226 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );227 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );228 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );229 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' );230 231 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );232 233 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );234 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );235 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );236 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );237 238 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );239 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );240 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );241 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );242 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );243 244 208 /** 245 209 * Filters the core Customizer components to load. 246 210 * … … 258 222 */ 259 223 $components = apply_filters( 'customize_loaded_components', $this->components, $this ); 260 224 261 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );262 225 $this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); 263 226 264 227 if ( in_array( 'widgets', $components, true ) ) { 265 require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );266 228 $this->widgets = new WP_Customize_Widgets( $this ); 267 229 } 268 230 269 231 if ( in_array( 'nav_menus', $components, true ) ) { 270 require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );271 232 $this->nav_menus = new WP_Customize_Nav_Menus( $this ); 272 233 } 273 234 -
src/wp-includes/class-wp-customize-panel.php
384 384 <?php 385 385 } 386 386 } 387 388 /** WP_Customize_Nav_Menus_Panel class */389 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' ); -
src/wp-includes/class-wp-customize-section.php
373 373 <?php 374 374 } 375 375 } 376 377 /** WP_Customize_Themes_Section class */378 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );379 380 /** WP_Customize_Sidebar_Section class */381 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );382 383 /** WP_Customize_Nav_Menu_Section class */384 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );385 386 /** WP_Customize_New_Menu_Section class */387 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' ); -
src/wp-includes/class-wp-customize-setting.php
893 893 return isset( $result ); 894 894 } 895 895 } 896 897 /** WP_Customize_Filter_Setting class */898 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );899 900 /** WP_Customize_Header_Image_Setting class */901 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );902 903 /** WP_Customize_Background_Image_Setting class */904 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );905 906 /** WP_Customize_Nav_Menu_Item_Setting class */907 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );908 909 /** WP_Customize_Nav_Menu_Setting class */910 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' ); -
src/wp-includes/class-wp-error.php
202 202 unset( $this->error_data[ $code ] ); 203 203 } 204 204 } 205 206 /**207 * Check whether variable is a WordPress Error.208 *209 * Returns true if $thing is an object of the WP_Error class.210 *211 * @since 2.1.0212 *213 * @param mixed $thing Check if unknown variable is a WP_Error object.214 * @return bool True, if WP_Error. False, if not WP_Error.215 */216 function is_wp_error( $thing ) {217 return ( $thing instanceof WP_Error );218 } -
src/wp-includes/comment.php
2369 2369 */ 2370 2370 function pingback($content, $post_ID) { 2371 2371 global $wp_version; 2372 include_once(ABSPATH . WPINC . '/class-IXR.php');2373 include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');2374 2372 2375 2373 // original code by Mort (http://mort.mine.nu:8080) 2376 2374 $post_links = array(); … … 2513 2511 */ 2514 2512 function weblog_ping($server = '', $path = '') { 2515 2513 global $wp_version; 2516 include_once(ABSPATH . WPINC . '/class-IXR.php');2517 include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');2518 2514 2519 2515 // using a timeout of 3 seconds should be enough to cover slow servers 2520 2516 $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); -
src/wp-includes/compat.php
280 280 global $wp_json; 281 281 282 282 if ( ! ( $wp_json instanceof Services_JSON ) ) { 283 require_once( ABSPATH . WPINC . '/class-json.php' );284 283 $wp_json = new Services_JSON(); 285 284 } 286 285 … … 299 298 global $wp_json; 300 299 301 300 if ( ! ($wp_json instanceof Services_JSON ) ) { 302 require_once( ABSPATH . WPINC . '/class-json.php' );303 301 $wp_json = new Services_JSON(); 304 302 } 305 303 -
src/wp-includes/customize/class-wp-customize-selective-refresh.php
67 67 */ 68 68 public function __construct( WP_Customize_Manager $manager ) { 69 69 $this->manager = $manager; 70 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-partial.php' );71 70 72 71 add_action( 'customize_preview_init', array( $this, 'init_preview' ) ); 73 72 } -
src/wp-includes/default-widgets.php
1 <?php2 /**3 * Widget API: Default core widgets4 *5 * @package WordPress6 * @subpackage Widgets7 * @since 2.8.08 */9 10 /** WP_Widget_Pages class */11 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-pages.php' );12 13 /** WP_Widget_Links class */14 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-links.php' );15 16 /** WP_Widget_Search class */17 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-search.php' );18 19 /** WP_Widget_Archives class */20 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php' );21 22 /** WP_Widget_Meta class */23 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php' );24 25 /** WP_Widget_Calendar class */26 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-calendar.php' );27 28 /** WP_Widget_Text class */29 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-text.php' );30 31 /** WP_Widget_Categories class */32 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-categories.php' );33 34 /** WP_Widget_Recent_Posts class */35 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-posts.php' );36 37 /** WP_Widget_Recent_Comments class */38 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-comments.php' );39 40 /** WP_Widget_RSS class */41 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-rss.php' );42 43 /** WP_Widget_Tag_Cloud class */44 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-tag-cloud.php' );45 46 /** WP_Nav_Menu_Widget class */47 require_once( ABSPATH . WPINC . '/widgets/class-wp-nav-menu-widget.php' ); -
src/wp-includes/embed.php
Property changes on: src/wp-includes/default-widgets.php ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property
94 94 * @return false|string False on failure or the embed HTML on success. 95 95 */ 96 96 function wp_oembed_get( $url, $args = '' ) { 97 require_once( ABSPATH . WPINC . '/class-oembed.php' );98 97 $oembed = _wp_oembed_get_object(); 99 98 return $oembed->get_html( $url, $args ); 100 99 } … … 112 111 * @param boolean $regex Optional. Whether the `$format` parameter is in a RegEx format. Default false. 113 112 */ 114 113 function wp_oembed_add_provider( $format, $provider, $regex = false ) { 115 require_once( ABSPATH . WPINC . '/class-oembed.php' );116 117 114 if ( did_action( 'plugins_loaded' ) ) { 118 115 $oembed = _wp_oembed_get_object(); 119 116 $oembed->providers[$format] = array( $provider, $regex ); … … 133 130 * @return bool Was the provider removed successfully? 134 131 */ 135 132 function wp_oembed_remove_provider( $format ) { 136 require_once( ABSPATH . WPINC . '/class-oembed.php' );137 138 133 if ( did_action( 'plugins_loaded' ) ) { 139 134 $oembed = _wp_oembed_get_object(); 140 135 … … 706 701 return $result; 707 702 } 708 703 709 require_once( ABSPATH . WPINC . '/class-oembed.php' );710 704 $wp_oembed = _wp_oembed_get_object(); 711 705 712 706 // Don't modify the HTML for trusted providers. … … 1072 1066 1073 1067 return $data; 1074 1068 } 1069 1070 /** 1071 * Returns the initialized WP_oEmbed object. 1072 * 1073 * @since 2.9.0 1074 * @access private 1075 * 1076 * @staticvar WP_oEmbed $wp_oembed 1077 * 1078 * @return WP_oEmbed object. 1079 */ 1080 function _wp_oembed_get_object() { 1081 static $wp_oembed = null; 1082 1083 if ( is_null( $wp_oembed ) ) { 1084 $wp_oembed = new WP_oEmbed(); 1085 } 1086 return $wp_oembed; 1087 } -
src/wp-includes/feed.php
663 663 * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success 664 664 */ 665 665 function fetch_feed( $url ) { 666 require_once( ABSPATH . WPINC . '/class-feed.php' );667 668 666 $feed = new SimplePie(); 669 667 670 668 $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' ); -
src/wp-includes/functions.php
563 563 global $wpdb; 564 564 565 565 //TODO: Tidy this ghetto code up and make the debug code optional 566 include_once( ABSPATH . WPINC . '/class-IXR.php' );567 568 566 $post_links = array(); 569 567 570 568 $pung = get_enclosed( $post_ID ); … … 3592 3590 return; 3593 3591 } 3594 3592 3595 require_once( ABSPATH . WPINC . '/default-widgets.php' );3596 3597 3593 add_action( '_admin_menu', 'wp_widgets_add_menu' ); 3598 3594 } 3599 3595 -
src/wp-includes/general-template.php
2980 2980 * @param array $settings See _WP_Editors::editor(). 2981 2981 */ 2982 2982 function wp_editor( $content, $editor_id, $settings = array() ) { 2983 if ( ! class_exists( '_WP_Editors', false ) )2984 require( ABSPATH . WPINC . '/class-wp-editor.php' );2985 2986 2983 _WP_Editors::editor($content, $editor_id, $settings); 2987 2984 } 2988 2985 -
src/wp-includes/l10n.php
1139 1139 1140 1140 return $output; 1141 1141 } 1142 1143 /** 1144 * Checks if current locale is RTL. 1145 * 1146 * @since 3.0.0 1147 * 1148 * @global WP_Locale $wp_locale 1149 * 1150 * @return bool Whether locale is RTL. 1151 */ 1152 function is_rtl() { 1153 global $wp_locale; 1154 return $wp_locale->is_rtl(); 1155 } 1156 No newline at end of file -
src/wp-includes/load.php
865 865 require ABSPATH . WPINC . '/version.php'; 866 866 867 867 // Translation and localization 868 require_once ABSPATH . WPINC . '/pomo/mo.php';869 868 require_once ABSPATH . WPINC . '/l10n.php'; 870 require_once ABSPATH . WPINC . '/locale.php';871 869 872 870 // General libraries 873 871 require_once ABSPATH . WPINC . '/plugin.php'; … … 1045 1043 */ 1046 1044 return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX ); 1047 1045 } 1046 1047 /** 1048 * Check whether variable is a WordPress Error. 1049 * 1050 * Returns true if $thing is an object of the WP_Error class. 1051 * 1052 * @since 2.1.0 1053 * 1054 * @param mixed $thing Check if unknown variable is a WP_Error object. 1055 * @return bool True, if WP_Error. False, if not WP_Error. 1056 */ 1057 function is_wp_error( $thing ) { 1058 return ( $thing instanceof WP_Error ); 1059 } 1060 No newline at end of file -
src/wp-includes/locale.php
7 7 * @since 1.2.0 8 8 */ 9 9 10 /** WP_Locale class */11 require_once ABSPATH . WPINC . '/class-wp-locale.php';12 13 10 /** 14 11 * Checks if current locale is RTL. 15 12 * -
src/wp-includes/media.php
2909 2909 * editor claims to support the request. 2910 2910 */ 2911 2911 function _wp_image_editor_choose( $args = array() ) { 2912 require_once ABSPATH . WPINC . '/class-wp-image-editor.php';2913 require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php';2914 require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';2915 2916 2912 /** 2917 2913 * Filters the list of image editing library classes. 2918 2914 * -
src/wp-includes/ms-settings.php
22 22 */ 23 23 global $current_site, $current_blog; 24 24 25 /** WP_Network class */26 require_once( ABSPATH . WPINC . '/class-wp-network.php' );27 28 /** WP_Site class */29 require_once( ABSPATH . WPINC . '/class-wp-site.php' );30 31 25 /** Multisite loader */ 32 26 require_once( ABSPATH . WPINC . '/ms-load.php' ); 33 27 -
src/wp-includes/nav-menu-template.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 /** Walker_Nav_Menu class */11 require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';12 13 10 /** 14 11 * Displays a navigation menu. 15 12 * -
src/wp-includes/pluggable.php
210 210 211 211 // (Re)create it, if it's gone missing 212 212 if ( ! ( $phpmailer instanceof PHPMailer ) ) { 213 require_once ABSPATH . WPINC . '/class-phpmailer.php';214 require_once ABSPATH . WPINC . '/class-smtp.php';215 213 $phpmailer = new PHPMailer( true ); 216 214 } 217 215 … … 1739 1737 1740 1738 // Now insert the key, hashed, into the DB. 1741 1739 if ( empty( $wp_hasher ) ) { 1742 require_once ABSPATH . WPINC . '/class-phpass.php';1743 1740 $wp_hasher = new PasswordHash( 8, true ); 1744 1741 } 1745 1742 $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); … … 2014 2011 global $wp_hasher; 2015 2012 2016 2013 if ( empty($wp_hasher) ) { 2017 require_once( ABSPATH . WPINC . '/class-phpass.php');2018 2014 // By default, use the portable hash from phpass 2019 2015 $wp_hasher = new PasswordHash(8, true); 2020 2016 } … … 2074 2070 // If the stored hash is longer than an MD5, presume the 2075 2071 // new style phpass portable hash. 2076 2072 if ( empty($wp_hasher) ) { 2077 require_once( ABSPATH . WPINC . '/class-phpass.php');2078 2073 // By default, use the portable hash from phpass 2079 2074 $wp_hasher = new PasswordHash(8, true); 2080 2075 } … … 2409 2404 $defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' ); 2410 2405 $args = wp_parse_args( $args, $defaults ); 2411 2406 2412 if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) )2413 require( ABSPATH . WPINC . '/wp-diff.php' );2414 2415 2407 $left_string = normalize_whitespace($left_string); 2416 2408 $right_string = normalize_whitespace($right_string); 2417 2409 -
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';12 13 10 if ( ! class_exists( 'MO', false ) ): 14 11 class MO extends Gettext_Translations { 15 12 -
src/wp-includes/pomo/po.php
7 7 * @subpackage po 8 8 */ 9 9 10 require_once dirname(__FILE__) . '/translations.php';11 12 10 if ( ! defined( 'PO_MAX_LINE_LEN' ) ) { 13 11 define('PO_MAX_LINE_LEN', 79); 14 12 } -
src/wp-includes/pomo/translations.php
7 7 * @subpackage translations 8 8 */ 9 9 10 require_once dirname(__FILE__) . '/entry.php';11 12 10 if ( ! class_exists( 'Translations', false ) ): 13 11 class Translations { 14 12 var $entries = array(); -
src/wp-includes/post-template.php
785 785 if ( ! isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) ) 786 786 return true; 787 787 788 require_once ABSPATH . WPINC . '/class-phpass.php';789 788 $hasher = new PasswordHash( 8, true ); 790 789 791 790 $hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ); -
src/wp-includes/script-loader.php
16 16 * @package WordPress 17 17 */ 18 18 19 /** WordPress Dependencies Class */20 require( ABSPATH . WPINC . '/class.wp-dependencies.php' );21 22 /** WordPress Scripts Class */23 require( ABSPATH . WPINC . '/class.wp-scripts.php' );24 25 19 /** WordPress Scripts Functions */ 26 20 require( ABSPATH . WPINC . '/functions.wp-scripts.php' ); 27 21 28 /** WordPress Styles Class */29 require( ABSPATH . WPINC . '/class.wp-styles.php' );30 31 22 /** WordPress Styles Functions */ 32 23 require( ABSPATH . WPINC . '/functions.wp-styles.php' ); 33 24 -
src/wp-includes/theme.php
1756 1756 add_action( 'wp_head', $args[0]['wp-head-callback'] ); 1757 1757 1758 1758 if ( is_admin() ) { 1759 require_once( ABSPATH . 'wp-admin/custom-header.php' );1760 1759 $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1761 1760 } 1762 1761 } … … 1769 1768 add_action( 'wp_head', $args[0]['wp-head-callback'] ); 1770 1769 1771 1770 if ( is_admin() ) { 1772 require_once( ABSPATH . 'wp-admin/custom-background.php' );1773 1771 $custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1774 1772 } 1775 1773 } … … 2082 2080 return; 2083 2081 } 2084 2082 2085 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';2086 2083 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 2087 2084 } 2088 2085 -
src/wp-includes/update.php
505 505 */ 506 506 function wp_maybe_auto_update() { 507 507 include_once( ABSPATH . '/wp-admin/includes/admin.php' ); 508 include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );509 508 510 509 $upgrader = new WP_Automatic_Updater; 511 510 $upgrader->run(); -
src/wp-includes/user.php
2095 2095 2096 2096 // Now insert the key, hashed, into the DB. 2097 2097 if ( empty( $wp_hasher ) ) { 2098 require_once ABSPATH . WPINC . '/class-phpass.php';2099 2098 $wp_hasher = new PasswordHash( 8, true ); 2100 2099 } 2101 2100 $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); … … 2140 2139 return new WP_Error('invalid_key', __('Invalid key')); 2141 2140 2142 2141 if ( empty( $wp_hasher ) ) { 2143 require_once ABSPATH . WPINC . '/class-phpass.php';2144 2142 $wp_hasher = new PasswordHash( 8, true ); 2145 2143 } 2146 2144 -
src/wp-includes/wp-diff.php
8 8 * @subpackage Diff 9 9 */ 10 10 11 if ( ! class_exists( 'Text_Diff', false ) ) {12 /** Text_Diff class */13 require( dirname(__FILE__).'/Text/Diff.php' );14 /** Text_Diff_Renderer class */15 require( dirname(__FILE__).'/Text/Diff/Renderer.php' );16 /** Text_Diff_Renderer_inline class */17 require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' );18 }19 20 11 /** 21 12 * Table renderer to display the diff lines. 22 13 * -
src/wp-load.php
25 25 26 26 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 ); 27 27 28 // Load the PHP 5.2 compatible autoloader. 29 if ( ! file_exists( ABSPATH . '/vendor/autoload_52.php' ) ) { 30 die( 'Autoloader was not found, aborting.' ); 31 } 32 33 require_once( ABSPATH . '/vendor/autoload_52.php' ); 34 28 35 /* 29 36 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php 30 37 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit -
src/wp-login.php
439 439 exit(); 440 440 } 441 441 442 require_once ABSPATH . WPINC . '/class-phpass.php';443 442 $hasher = new PasswordHash( 8, true ); 444 443 445 444 /** -
src/wp-mail.php
21 21 */ 22 22 do_action( 'wp-mail.php' ); 23 23 24 /** Get the POP3 class with which to access the mailbox. */25 require_once( ABSPATH . WPINC . '/class-pop3.php' );26 27 24 /** Only check at this interval for new messages. */ 28 25 if ( !defined('WP_MAIL_INTERVAL') ) 29 26 define('WP_MAIL_INTERVAL', 300); // 5 minutes -
src/wp-settings.php
92 92 // Load early WordPress files. 93 93 require( ABSPATH . WPINC . '/compat.php' ); 94 94 require( ABSPATH . WPINC . '/functions.php' ); 95 require( ABSPATH . WPINC . '/class-wp.php' );96 require( ABSPATH . WPINC . '/class-wp-error.php' );97 require( ABSPATH . WPINC . '/pomo/mo.php' );98 95 99 96 // Include the wpdb class and, if present, a db.php database drop-in. 100 97 global $wpdb; … … 112 109 113 110 // Initialize multisite if enabled. 114 111 if ( is_multisite() ) { 115 require( ABSPATH . WPINC . '/class-wp-site-query.php' );116 require( ABSPATH . WPINC . '/class-wp-network-query.php' );117 112 require( ABSPATH . WPINC . '/ms-blogs.php' ); 118 113 require( ABSPATH . WPINC . '/ms-settings.php' ); 119 114 } elseif ( ! defined( 'MULTISITE' ) ) { … … 133 128 wp_not_installed(); 134 129 135 130 // Load most of WordPress. 136 require( ABSPATH . WPINC . '/class-wp-walker.php' );137 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );138 131 require( ABSPATH . WPINC . '/formatting.php' ); 139 132 require( ABSPATH . WPINC . '/capabilities.php' ); 140 require( ABSPATH . WPINC . '/class-wp-roles.php' );141 require( ABSPATH . WPINC . '/class-wp-role.php' );142 require( ABSPATH . WPINC . '/class-wp-user.php' );143 133 require( ABSPATH . WPINC . '/query.php' ); 144 134 require( ABSPATH . WPINC . '/date.php' ); 145 135 require( ABSPATH . WPINC . '/theme.php' ); 146 require( ABSPATH . WPINC . '/class-wp-theme.php' );147 136 require( ABSPATH . WPINC . '/template.php' ); 148 137 require( ABSPATH . WPINC . '/user.php' ); 149 require( ABSPATH . WPINC . '/class-wp-user-query.php' );150 138 require( ABSPATH . WPINC . '/session.php' ); 151 139 require( ABSPATH . WPINC . '/meta.php' ); 152 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );153 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );154 140 require( ABSPATH . WPINC . '/general-template.php' ); 155 141 require( ABSPATH . WPINC . '/link-template.php' ); 156 142 require( ABSPATH . WPINC . '/author-template.php' ); 157 143 require( ABSPATH . WPINC . '/post.php' ); 158 require( ABSPATH . WPINC . '/class-walker-page.php' );159 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );160 require( ABSPATH . WPINC . '/class-wp-post-type.php' );161 require( ABSPATH . WPINC . '/class-wp-post.php' );162 144 require( ABSPATH . WPINC . '/post-template.php' ); 163 145 require( ABSPATH . WPINC . '/revision.php' ); 164 146 require( ABSPATH . WPINC . '/post-formats.php' ); 165 147 require( ABSPATH . WPINC . '/post-thumbnail-template.php' ); 166 148 require( ABSPATH . WPINC . '/category.php' ); 167 require( ABSPATH . WPINC . '/class-walker-category.php' );168 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );169 149 require( ABSPATH . WPINC . '/category-template.php' ); 170 150 require( ABSPATH . WPINC . '/comment.php' ); 171 require( ABSPATH . WPINC . '/class-wp-comment.php' );172 require( ABSPATH . WPINC . '/class-wp-comment-query.php' );173 require( ABSPATH . WPINC . '/class-walker-comment.php' );174 151 require( ABSPATH . WPINC . '/comment-template.php' ); 175 152 require( ABSPATH . WPINC . '/rewrite.php' ); 176 require( ABSPATH . WPINC . '/class-wp-rewrite.php' );177 153 require( ABSPATH . WPINC . '/feed.php' ); 178 154 require( ABSPATH . WPINC . '/bookmark.php' ); 179 155 require( ABSPATH . WPINC . '/bookmark-template.php' ); … … 182 158 require( ABSPATH . WPINC . '/deprecated.php' ); 183 159 require( ABSPATH . WPINC . '/script-loader.php' ); 184 160 require( ABSPATH . WPINC . '/taxonomy.php' ); 185 require( ABSPATH . WPINC . '/class-wp-term.php' );186 require( ABSPATH . WPINC . '/class-wp-term-query.php' );187 require( ABSPATH . WPINC . '/class-wp-tax-query.php' );188 161 require( ABSPATH . WPINC . '/update.php' ); 189 162 require( ABSPATH . WPINC . '/canonical.php' ); 190 163 require( ABSPATH . WPINC . '/shortcodes.php' ); 191 164 require( ABSPATH . WPINC . '/embed.php' ); 192 require( ABSPATH . WPINC . '/class-wp-embed.php' );193 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );194 165 require( ABSPATH . WPINC . '/media.php' ); 195 166 require( ABSPATH . WPINC . '/http.php' ); 196 require( ABSPATH . WPINC . '/class-http.php' );197 require( ABSPATH . WPINC . '/class-wp-http-streams.php' );198 require( ABSPATH . WPINC . '/class-wp-http-curl.php' );199 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );200 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );201 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );202 require( ABSPATH . WPINC . '/class-wp-http-response.php' );203 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );204 167 require( ABSPATH . WPINC . '/widgets.php' ); 205 require( ABSPATH . WPINC . '/class-wp-widget.php' );206 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );207 168 require( ABSPATH . WPINC . '/nav-menu.php' ); 208 169 require( ABSPATH . WPINC . '/nav-menu-template.php' ); 209 170 require( ABSPATH . WPINC . '/admin-bar.php' ); 210 171 require( ABSPATH . WPINC . '/rest-api.php' ); 211 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );212 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );213 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );214 172 173 $GLOBALS['wp_embed'] = new WP_Embed(); 174 215 175 // Load multisite-specific files. 216 176 if ( is_multisite() ) { 217 177 require( ABSPATH . WPINC . '/ms-functions.php' ); … … 369 329 require( $locale_file ); 370 330 unset( $locale_file ); 371 331 372 // Pull in locale data after loading text domain.373 require_once( ABSPATH . WPINC . '/locale.php' );374 375 332 /** 376 333 * WordPress Locale object for loading locale domain date and various strings. 377 334 * @global WP_Locale $wp_locale -
src/xmlrpc.php
60 60 } 61 61 62 62 include_once(ABSPATH . 'wp-admin/includes/admin.php'); 63 include_once(ABSPATH . WPINC . '/class-IXR.php');64 include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');65 63 66 64 /** 67 65 * Posts submitted via the XML-RPC interface get that title -
tests/phpunit/includes/bootstrap.php
3 3 * Installs WordPress for running the tests and loads WordPress and the test libraries 4 4 */ 5 5 6 7 6 $config_file_path = dirname( dirname( __FILE__ ) ); 8 7 if ( ! file_exists( $config_file_path . '/wp-tests-config.php' ) ) { 9 8 // Support the config file from the root of the develop repository. … … 24 23 require_once $config_file_path; 25 24 require_once dirname( __FILE__ ) . '/functions.php'; 26 25 26 // Load the PHP 5.2 compatible autoloader. 27 if ( ! file_exists( ABSPATH . '/vendor/autoload_52.php' ) ) { 28 die( 'Autoloader was not found, aborting.' ); 29 } 30 31 require_once( ABSPATH . '/vendor/autoload_52.php' ); 32 27 33 tests_reset__SERVER(); 28 34 29 35 define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); -
tests/phpunit/includes/install.php
13 13 require_once $config_file_path; 14 14 require_once dirname( __FILE__ ) . '/functions.php'; 15 15 16 // Load the PHP 5.2 compatible autoloader. 17 if ( ! file_exists( ABSPATH . '/vendor/autoload_52.php' ) ) { 18 die( 'Autoloader was not found, aborting.' ); 19 } 20 21 require_once( ABSPATH . '/vendor/autoload_52.php' ); 22 16 23 tests_reset__SERVER(); 17 24 18 25 $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php'; -
tests/phpunit/tests/adminbar.php
14 14 15 15 protected static $user_ids = array(); 16 16 17 public static function setUpBeforeClass() {18 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );19 20 parent::setUpBeforeClass();21 }22 23 17 public static function wpSetUpBeforeClass( $factory ) { 24 18 self::$user_ids[] = self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) ); 25 19 self::$user_ids[] = self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) ); -
tests/phpunit/tests/ajax/CustomizeMenus.php
21 21 */ 22 22 public function setUp() { 23 23 parent::setUp(); 24 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 24 25 25 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 26 26 global $wp_customize; 27 27 $this->wp_customize = new WP_Customize_Manager(); -
tests/phpunit/tests/auth.php
22 22 23 23 self::$user_id = self::$_user->ID; 24 24 25 require_once( ABSPATH . WPINC . '/class-phpass.php' );26 25 self::$wp_hasher = new PasswordHash( 8, true ); 27 26 } 28 27 -
tests/phpunit/tests/customize/manager.php
31 31 */ 32 32 function setUp() { 33 33 parent::setUp(); 34 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 34 35 35 $this->manager = $this->instantiate(); 36 36 $this->undefined = new stdClass(); 37 37 } … … 977 977 } 978 978 } 979 979 980 require_once ABSPATH . WPINC . '/class-wp-customize-setting.php';981 982 980 /** 983 981 * Class Test_Dynamic_Customize_Setting 984 982 * -
tests/phpunit/tests/customize/nav-menu-item-setting.php
20 20 */ 21 21 function setUp() { 22 22 parent::setUp(); 23 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 23 24 24 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 25 25 26 26 global $wp_customize; -
tests/phpunit/tests/customize/nav-menu-setting.php
21 21 */ 22 22 function setUp() { 23 23 parent::setUp(); 24 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 24 25 25 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 26 26 27 27 global $wp_customize; -
tests/phpunit/tests/customize/nav-menus.php
21 21 */ 22 22 function setUp() { 23 23 parent::setUp(); 24 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 24 25 25 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 26 26 global $wp_customize; 27 27 $this->wp_customize = new WP_Customize_Manager(); -
tests/phpunit/tests/customize/panel.php
14 14 15 15 function setUp() { 16 16 parent::setUp(); 17 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 17 18 18 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 19 19 $this->manager = $GLOBALS['wp_customize']; 20 20 $this->undefined = new stdClass(); … … 211 211 } 212 212 } 213 213 214 require_once ABSPATH . WPINC . '/class-wp-customize-panel.php';215 214 class Custom_Panel_Test extends WP_Customize_Panel { 216 215 public $type = 'titleless'; 217 216 -
tests/phpunit/tests/customize/partial.php
31 31 */ 32 32 function setUp() { 33 33 parent::setUp(); 34 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 34 35 35 // @codingStandardsIgnoreStart 36 36 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 37 37 // @codingStandardsIgnoreEnd -
tests/phpunit/tests/customize/section.php
26 26 27 27 function setUp() { 28 28 parent::setUp(); 29 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 29 30 30 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 31 31 $this->manager = $GLOBALS['wp_customize']; 32 32 $this->undefined = new stdClass(); … … 224 224 } 225 225 } 226 226 227 require_once ABSPATH . WPINC . '/class-wp-customize-section.php';228 227 class Custom_Section_Test extends WP_Customize_Section { 229 228 public $type = 'titleless'; 230 229 -
tests/phpunit/tests/customize/selective-refresh-ajax.php
43 43 } 44 44 add_filter( 'wp_die_ajax_handler', array( $this, 'get_wp_die_handler' ), 1, 1 ); 45 45 46 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );47 46 // @codingStandardsIgnoreStart 48 47 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 49 48 // @codingStandardsIgnoreEnd -
tests/phpunit/tests/customize/selective-refresh.php
31 31 */ 32 32 function setUp() { 33 33 parent::setUp(); 34 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 34 35 35 // @codingStandardsIgnoreStart 36 36 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 37 37 // @codingStandardsIgnoreEnd … … 256 256 } 257 257 } 258 258 259 require_once ABSPATH . WPINC . '/customize/class-wp-customize-partial.php';260 261 259 /** 262 260 * Class Tested_Custom_Partial 263 261 */ -
tests/phpunit/tests/customize/setting.php
19 19 20 20 function setUp() { 21 21 parent::setUp(); 22 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 22 23 23 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 24 24 $this->manager = $GLOBALS['wp_customize']; 25 25 $this->undefined = new stdClass(); -
tests/phpunit/tests/customize/widgets.php
22 22 23 23 function setUp() { 24 24 parent::setUp(); 25 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );26 25 27 26 add_theme_support( 'customize-selective-refresh-widgets' ); 28 27 $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); -
tests/phpunit/tests/general/template.php
17 17 function setUp() { 18 18 parent::setUp(); 19 19 20 require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; 21 $this->wp_site_icon = $GLOBALS['wp_site_icon']; 20 $this->wp_site_icon = new WP_Site_Icon; 22 21 } 23 22 24 23 function tearDown() { -
tests/phpunit/tests/image/editor.php
14 14 * Setup test fixture 15 15 */ 16 16 public function setup() { 17 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );18 19 17 include_once( DIR_TESTDATA . '/../includes/mock-image-editor.php' ); 20 18 21 19 parent::setUp(); -
tests/phpunit/tests/image/editor_gd.php
12 12 13 13 public $editor_engine = 'WP_Image_Editor_GD'; 14 14 15 public function setUp() {16 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );17 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );18 19 parent::setUp();20 }21 22 15 public function tearDown() { 23 16 $folder = DIR_TESTDATA . '/images/waffles-*.jpg'; 24 17 -
tests/phpunit/tests/image/editor_imagick.php
12 12 13 13 public $editor_engine = 'WP_Image_Editor_Imagick'; 14 14 15 public function setUp() {16 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );17 require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );18 19 parent::setUp();20 }21 22 15 public function tearDown() { 23 16 $folder = DIR_TESTDATA . '/images/waffles-*.jpg'; 24 17 … … 465 458 $editor = new WP_Image_Editor_Imagick( $file ); 466 459 467 460 $this->assertNotInstanceOf( 'WP_Error', $editor ); 468 461 469 462 $editor->load(); 470 463 $editor->resize( 5, 5 ); 471 464 $save_to_file = tempnam( get_temp_dir(), '' ) . '.png'; -
tests/phpunit/tests/image/functions.php
11 11 * Setup test fixture 12 12 */ 13 13 public function setUp() { 14 parent::setUp();15 16 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );17 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );18 require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );19 20 14 include_once( DIR_TESTDATA . '/../includes/mock-image-editor.php' ); 21 15 } 22 16 -
tests/phpunit/tests/image/resize_gd.php
16 16 */ 17 17 public $editor_engine = 'WP_Image_Editor_GD'; 18 18 19 public function setUp() {20 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );21 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );22 23 parent::setUp();24 }25 26 19 /** 27 20 * Try resizing a php file (bad image) 28 21 * @ticket 6821 -
tests/phpunit/tests/image/resize_imagick.php
15 15 * @var string 16 16 */ 17 17 public $editor_engine = 'WP_Image_Editor_Imagick'; 18 19 public function setUp() {20 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );21 require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );22 23 parent::setUp();24 }25 18 } 26 No newline at end of file -
tests/phpunit/tests/image/site_icon.php
12 12 function setUp() { 13 13 parent::setUp(); 14 14 15 require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; 16 $this->wp_site_icon = $GLOBALS['wp_site_icon']; 15 $this->wp_site_icon = new WP_Site_Icon; 17 16 } 18 17 19 18 function tearDown() { -
tests/phpunit/tests/menu/walker-nav-menu-edit.php
12 12 13 13 parent::setUp(); 14 14 15 /** Walker_Nav_Menu_Edit class */16 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );17 18 15 $this->walker = new Walker_Nav_Menu_Edit(); 19 16 20 17 $this->_wp_nav_menu_max_depth = $_wp_nav_menu_max_depth; -
tests/phpunit/tests/oembed/wpOembed.php
14 14 public function setUp() { 15 15 parent::setUp(); 16 16 17 require_once ABSPATH . WPINC . '/class-oembed.php';18 17 $this->oembed = _wp_oembed_get_object(); 19 18 20 19 $this->pre_oembed_result_filtered = false; -
tests/phpunit/tests/widgets.php
509 509 $this->assertFalse( $widget->is_preview() ); 510 510 511 511 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 512 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';513 512 $wp_customize = new WP_Customize_Manager(); 514 513 $wp_customize->start_previewing_theme(); 515 514 -
tests/phpunit/tests/xmlrpc/basic.php
1 1 <?php 2 3 2 require_once ABSPATH . 'wp-admin/includes/admin.php'; 4 require_once ABSPATH . WPINC . '/class-IXR.php';5 require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';6 3 7 4 /** 8 5 * @group xmlrpc -
tests/phpunit/tests/xmlrpc/client.php
1 1 <?php 2 require_once ABSPATH . WPINC . '/class-IXR.php';3 require_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';4 5 2 /** 6 3 * @group xmlrpc 7 4 */