Changeset 41289
- Timestamp:
- 08/22/2017 11:51:11 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r41270 r41289 3457 3457 /* 3458 3458 * See WP_Theme_Install_List_Table::_get_theme_status() if we wanted to check 3459 * on post-install status.3459 * on post-installation status. 3460 3460 */ 3461 3461 wp_send_json_success( $status ); … … 3702 3702 $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : ''; 3703 3703 3704 // If install request is coming from import page, do not return network activation link.3704 // If installation request is coming from import page, do not return network activation link. 3705 3705 $plugins_url = ( 'import' === $pagenow ) ? admin_url( 'plugins.php' ) : network_admin_url( 'plugins.php' ); 3706 3706 -
trunk/src/wp-admin/includes/class-core-upgrader.php
r41161 r41289 96 96 /* 97 97 * If partial update is returned from the API, use that, unless we're doing 98 * a reinstall . If we cross the new_bundled version number, then use98 * a reinstallation. If we cross the new_bundled version number, then use 99 99 * the new_bundled zip. Don't though if the constant is set to skip bundled items. 100 100 * If the API returns a no_content zip, go with it. Finally, default to the full zip. -
trunk/src/wp-admin/includes/class-file-upload-upgrader.php
r41161 r41289 80 80 $this->id = wp_insert_attachment( $object, $file['file'] ); 81 81 82 // Schedule a cleanup for 2 hours from now in case of failed install .82 // Schedule a cleanup for 2 hours from now in case of failed installation. 83 83 wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) ); 84 84 -
trunk/src/wp-admin/includes/class-language-pack-upgrader.php
r41161 r41289 29 29 30 30 /** 31 * Whether a bulk upgrade/install is being performed.31 * Whether a bulk upgrade/installation is being performed. 32 32 * 33 33 * @since 3.7.0 … … 61 61 62 62 /* 63 * Avoid messing with VCS install s, at least for now.63 * Avoid messing with VCS installations, at least for now. 64 64 * Noted: this is not the ideal way to accomplish this. 65 65 */ -
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r41161 r41289 32 32 33 33 /** 34 * Whether a bulk upgrade/install is being performed.34 * Whether a bulk upgrade/installation is being performed. 35 35 * 36 36 * @since 2.9.0 … … 57 57 58 58 /** 59 * Initialize the install strings.59 * Initialize the installation strings. 60 60 * 61 61 * @since 2.8.0 62 62 */ 63 63 public function install_strings() { 64 $this->strings['no_package'] = __('Install package not available.');65 $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>…');64 $this->strings['no_package'] = __('Installation package not available.'); 65 $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>…'); 66 66 $this->strings['unpack_package'] = __('Unpacking the package…'); 67 67 $this->strings['installing_package'] = __('Installing the plugin…'); 68 68 $this->strings['no_files'] = __('The plugin contains no files.'); 69 $this->strings['process_failed'] = __('Plugin install failed.');69 $this->strings['process_failed'] = __('Plugin installation failed.'); 70 70 $this->strings['process_success'] = __('Plugin installed successfully.'); 71 71 } … … 84 84 * Default true. 85 85 * } 86 * @return bool|WP_Error True if the install was successful, false or a WP_Error otherwise.86 * @return bool|WP_Error True if the installation was successful, false or a WP_Error otherwise. 87 87 */ 88 88 public function install( $package, $args = array() ) { -
trunk/src/wp-admin/includes/class-theme-upgrader.php
r41161 r41289 55 55 56 56 /** 57 * Initialize the install strings.57 * Initialize the installation strings. 58 58 * 59 59 * @since 2.8.0 60 60 */ 61 61 public function install_strings() { 62 $this->strings['no_package'] = __('Install package not available.');63 $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>…');62 $this->strings['no_package'] = __('Installation package not available.'); 63 $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>…'); 64 64 $this->strings['unpack_package'] = __('Unpacking the package…'); 65 65 $this->strings['installing_package'] = __('Installing the theme…'); 66 66 $this->strings['no_files'] = __('The theme contains no files.'); 67 $this->strings['process_failed'] = __('Theme install failed.');67 $this->strings['process_failed'] = __('Theme installation failed.'); 68 68 $this->strings['process_success'] = __('Theme installed successfully.'); 69 69 /* translators: 1: theme name, 2: version */ … … 111 111 if ( ! $api || is_wp_error($api) ) { 112 112 $this->skin->feedback( 'parent_theme_not_found', $theme_info->get('Template') ); 113 // Don't show activate or preview actions after install 113 // Don't show activate or preview actions after installation 114 114 add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') ); 115 115 return $install_result; … … 181 181 * } 182 182 * 183 * @return bool|WP_Error True if the install was successful, false or a WP_Error object otherwise.183 * @return bool|WP_Error True if the installation was successful, false or a WP_Error object otherwise. 184 184 */ 185 185 public function install( $package, $args = array() ) { -
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r41161 r41289 444 444 } 445 445 446 // Send debugging email to a ll development installs.446 // Send debugging email to admin for all development installations. 447 447 if ( ! empty( $this->update_results ) ) { 448 448 $development_version = false !== strpos( get_bloginfo( 'version' ), '-' ); -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r41200 r41289 552 552 * @param int $blog_id The site ID. 553 553 * @param string $blogname Site path, formatted depending on whether it is a sub-domain 554 * or subdirectory multisite install .554 * or subdirectory multisite installation. 555 555 */ 556 556 $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname ); -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r41161 r41289 560 560 <?php 561 561 if ( $plugin['active_installs'] >= 1000000 ) { 562 $active_installs_text = _x( '1+ Million', 'Active plugin install s' );562 $active_installs_text = _x( '1+ Million', 'Active plugin installations' ); 563 563 } elseif ( 0 == $plugin['active_installs'] ) { 564 $active_installs_text = _x( 'Less Than 10', 'Active plugin install s' );564 $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' ); 565 565 } else { 566 566 $active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+'; 567 567 } 568 printf( __( '%s Active Install s' ), $active_installs_text );568 printf( __( '%s Active Installations' ), $active_installs_text ); 569 569 ?> 570 570 </div> -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r41168 r41289 80 80 * @type string $source The full path to the source the files were installed from. 81 81 * @type string $source_files List of all the files in the source directory. 82 * @type string $destination The full path to the install destination folder.82 * @type string $destination The full path to the installation destination folder. 83 83 * @type string $destination_name The name of the destination folder, or empty if `$destination` 84 84 * and `$local_destination` are the same. … … 571 571 572 572 /** 573 * Filters the install response after the installation has finished.573 * Filters the installation response after the installation has finished. 574 574 * 575 575 * @since 2.8.0 576 576 * 577 * @param bool $response Install response.577 * @param bool $response Installation response. 578 578 * @param array $hook_extra Extra arguments passed to hooked filters. 579 579 * @param array $result Installation result data. … … 591 591 592 592 /** 593 * Run an upgrade/install .593 * Run an upgrade/installation. 594 594 * 595 595 * Attempts to download the package (if it is not a local file), unpack it, and … … 613 613 * folder already exists. When true, `$clear_destination` 614 614 * should be false. Default true. 615 * @type bool $is_multi Whether this run is one of multiple upgrade/install 615 * @type bool $is_multi Whether this run is one of multiple upgrade/installation 616 616 * actions being performed in bulk. When true, the skin 617 617 * WP_Upgrader::header() and WP_Upgrader::footer() … … 736 736 $this->skin->feedback('process_failed'); 737 737 } else { 738 // Install succeeded.738 // Installation succeeded. 739 739 $this->skin->feedback('process_success'); 740 740 } -
trunk/src/wp-admin/includes/ms.php
r41254 r41289 629 629 * Avoids a collision between a site slug and a permalink slug. 630 630 * 631 * In a subdirectory install this will make sure that a site and a post do not use the631 * In a subdirectory installation this will make sure that a site and a post do not use the 632 632 * same subdirectory by checking for a site with the same name as a new post. 633 633 * -
trunk/src/wp-admin/includes/network.php
r38323 r41289 28 28 29 29 /** 30 * Allow subdomain install 30 * Allow subdomain installation 31 31 * 32 32 * @since 3.0.0 33 * @return bool Whether subdomain install is allowed33 * @return bool Whether subdomain installation is allowed 34 34 */ 35 35 function allow_subdomain_install() { … … 42 42 43 43 /** 44 * Allow subdirectory install .44 * Allow subdirectory installation. 45 45 * 46 46 * @since 3.0.0 … … 48 48 * @global wpdb $wpdb WordPress database abstraction object. 49 49 * 50 * @return bool Whether subdirectory install is allowed50 * @return bool Whether subdirectory installation is allowed 51 51 */ 52 52 function allow_subdirectory_install() { 53 53 global $wpdb; 54 54 /** 55 * Filters whether to enable the subdirectory install feature in Multisite.55 * Filters whether to enable the subdirectory installation feature in Multisite. 56 56 * 57 57 * @since 3.0.0 58 58 * 59 * @param bool $allow Whether to enable the subdirectory install feature in Multisite. Default is false.59 * @param bool $allow Whether to enable the subdirectory installation feature in Multisite. Default is false. 60 60 */ 61 61 if ( apply_filters( 'allow_subdirectory_install', false ) ) … … 258 258 <?php if ( 'localhost' == $hostname ) : ?> 259 259 <tr> 260 <th scope="row"><?php esc_html_e( 'Sub-directory Install ' ); ?></th>260 <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th> 261 261 <td><?php 262 262 printf( … … 268 268 // Uh oh: 269 269 if ( !allow_subdirectory_install() ) 270 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';270 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 271 271 ?></td> 272 272 </tr> 273 273 <?php elseif ( !allow_subdomain_install() ) : ?> 274 274 <tr> 275 <th scope="row"><?php esc_html_e( 'Sub-directory Install ' ); ?></th>275 <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th> 276 276 <td><?php 277 _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' );277 _e( 'Because your installation is in a directory, the sites in your WordPress network must use sub-directories.' ); 278 278 // Uh oh: 279 279 if ( !allow_subdirectory_install() ) 280 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';280 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 281 281 ?></td> 282 282 </tr> 283 283 <?php elseif ( !allow_subdirectory_install() ) : ?> 284 284 <tr> 285 <th scope="row"><?php esc_html_e( 'Sub-domain Install ' ); ?></th>286 <td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );287 echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';285 <th scope="row"><?php esc_html_e( 'Sub-domain Installation' ); ?></th> 286 <td><?php _e( 'Because your installation is not new, the sites in your WordPress network must use sub-domains.' ); 287 echo ' <strong>' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 288 288 ?></td> 289 289 </tr> -
trunk/src/wp-admin/includes/plugin-install.php
r40633 r41289 20 20 * 21 21 * The second filter, {@see 'plugins_api'}, allows a plugin to override the WordPress.org 22 * Plugin Install API entirely. If `$action` is 'query_plugins' or 'plugin_information',22 * Plugin Installation API entirely. If `$action` is 'query_plugins' or 'plugin_information', 23 23 * an object MUST be passed. If `$action` is 'hot_tags' or 'hot_categories', an array MUST 24 24 * be passed. … … 90 90 * @type bool $banners Whether to return the banner images links. Default false. 91 91 * @type bool $icons Whether to return the icon links. Default false. 92 * @type bool $active_installs Whether to return the number of active install s. Default false.92 * @type bool $active_installs Whether to return the number of active installations. Default false. 93 93 * @type bool $group Whether to return the assigned group. Default false. 94 94 * @type bool $contributors Whether to return the list of contributors. Default false. … … 114 114 115 115 /** 116 * Filters the WordPress.org Plugin Install API arguments.116 * Filters the WordPress.org Plugin Installation API arguments. 117 117 * 118 118 * Important: An object MUST be returned to this filter. … … 121 121 * 122 122 * @param object $args Plugin API arguments. 123 * @param string $action The type of information being requested from the Plugin Install API.123 * @param string $action The type of information being requested from the Plugin Installation API. 124 124 */ 125 125 $args = apply_filters( 'plugins_api_args', $args, $action ); 126 126 127 127 /** 128 * Filters the response for the current WordPress.org Plugin Install API request.128 * Filters the response for the current WordPress.org Plugin Installation API request. 129 129 * 130 130 * Passing a non-false value will effectively short-circuit the WordPress.org API request. … … 136 136 * 137 137 * @param false|object|array $result The result object or array. Default false. 138 * @param string $action The type of information being requested from the Plugin Install API.138 * @param string $action The type of information being requested from the Plugin Installation API. 139 139 * @param object $args Plugin API arguments. 140 140 */ … … 194 194 195 195 /** 196 * Filters the Plugin Install API response results.196 * Filters the Plugin Installation API response results. 197 197 * 198 198 * @since 2.7.0 199 199 * 200 200 * @param object|WP_Error $res Response object or WP_Error. 201 * @param string $action The type of information being requested from the Plugin Install API.201 * @param string $action The type of information being requested from the Plugin Installation API. 202 202 * @param object $args Plugin API arguments. 203 203 */ … … 516 516 } 517 517 518 iframe_header( __( 'Plugin Install ' ) );518 iframe_header( __( 'Plugin Installation' ) ); 519 519 520 520 $_with_banner = ''; … … 588 588 <li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li> 589 589 <?php } if ( isset( $api->active_installs ) ) { ?> 590 <li><strong><?php _e( 'Active Install s:' ); ?></strong> <?php590 <li><strong><?php _e( 'Active Installations:' ); ?></strong> <?php 591 591 if ( $api->active_installs >= 1000000 ) { 592 _ex( '1+ Million', 'Active plugin install s' );592 _ex( '1+ Million', 'Active plugin installations' ); 593 593 } elseif ( 0 == $api->active_installs ) { 594 _ex( 'Less Than 10', 'Active plugin install s' );594 _ex( 'Less Than 10', 'Active plugin installations' ); 595 595 } else { 596 596 echo number_format_i18n( $api->active_installs ) . '+'; -
trunk/src/wp-admin/includes/plugin.php
r40967 r41289 420 420 'db.php' => array( __( 'Custom database class.' ), true ), // auto on load 421 421 'db-error.php' => array( __( 'Custom database error message.' ), true ), // auto on error 422 'install.php' => array( __( 'Custom install script.' ), true ), // auto on install422 'install.php' => array( __( 'Custom installation script.' ), true ), // auto on installation 423 423 'maintenance.php' => array( __( 'Custom maintenance message.' ), true ), // auto on maintenance 424 424 'object-cache.php' => array( __( 'External object cache.' ), true ), // auto on load -
trunk/src/wp-admin/includes/schema.php
r40406 r41289 891 891 * @param string $site_name The name of the network. 892 892 * @param string $path Optional. The path to append to the network's domain name. Default '/'. 893 * @param bool $subdomain_install Optional. Whether the network is a subdomain install or a subdirectory install.894 * Default false, meaning the network is a subdirectory install .895 * @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful,893 * @param bool $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation. 894 * Default false, meaning the network is a subdirectory installation. 895 * @return bool|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful, 896 896 * so the error code must be checked) or failure. 897 897 */ -
trunk/src/wp-admin/includes/theme-install.php
r38672 r41289 1 1 <?php 2 2 /** 3 * WordPress Theme Install Administration API3 * WordPress Theme Installation Administration API 4 4 * 5 5 * @package WordPress … … 203 203 wp_die( $theme ); 204 204 205 iframe_header( __('Theme Install ') );205 iframe_header( __('Theme Installation') ); 206 206 if ( ! isset( $wp_list_table ) ) { 207 207 $wp_list_table = _get_list_table('WP_Theme_Install_List_Table'); -
trunk/src/wp-admin/includes/translation-install.php
r40638 r41289 1 1 <?php 2 2 /** 3 * WordPress Translation Install Administration API3 * WordPress Translation Installation Administration API 4 4 * 5 5 * @package WordPress … … 25 25 26 26 /** 27 * Allows a plugin to override the WordPress.org Translation Install API entirely.27 * Allows a plugin to override the WordPress.org Translation Installation API entirely. 28 28 * 29 29 * @since 4.0.0 … … 94 94 95 95 /** 96 * Filters the Translation Install API response results.96 * Filters the Translation Installation API response results. 97 97 * 98 98 * @since 4.0.0 -
trunk/src/wp-admin/includes/update-core.php
r40879 r41289 1198 1198 * Redirect to the About WordPress page after a successful upgrade. 1199 1199 * 1200 * This function is only needed when the existing install is older than 3.4.0.1200 * This function is only needed when the existing installation is older than 3.4.0. 1201 1201 * 1202 1202 * @since 3.3.0 -
trunk/src/wp-admin/includes/update.php
r40575 r41289 64 64 * Gets the best available (and enabled) Auto-Update for WordPress Core. 65 65 * 66 * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the install allows it, else, 1.2.366 * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the installation allows it, else, 1.2.3 67 67 * 68 68 * @since 3.7.0 … … 597 597 /* 598 598 * If an update failed critically, we may have copied over version.php but not other files. 599 * In that case, if the install claims we're running the version we attempted, nag.599 * In that case, if the installation claims we're running the version we attempted, nag. 600 600 * This is serious enough to err on the side of nagging. 601 601 * -
trunk/src/wp-admin/includes/upgrade.php
r40864 r41289 9 9 */ 10 10 11 /** Include user install customizescript. */11 /** Include user installation customization script. */ 12 12 if ( file_exists(WP_CONTENT_DIR . '/install.php') ) 13 13 require (WP_CONTENT_DIR . '/install.php'); … … 96 96 flush_rewrite_rules(); 97 97 98 wp_new_blog_notification($blog_title, $guessurl, $user_id, ($email_password ? $user_password : __('The password you chose during the install.') ) );98 wp_new_blog_notification($blog_title, $guessurl, $user_id, ($email_password ? $user_password : __('The password you chose during installation.') ) ); 99 99 100 100 wp_cache_flush(); … … 286 286 287 287 /** 288 * Maybe enable pretty permalinks on install .288 * Maybe enable pretty permalinks on installation. 289 289 * 290 290 * If after enabling pretty permalinks don't work, fallback to query-string permalinks. … … 453 453 454 454 /** 455 * Functions to be called in install and upgrade scripts.455 * Functions to be called in installation and upgrade scripts. 456 456 * 457 457 * Contains conditional checks to determine which upgrade scripts to run, … … 2061 2061 2062 2062 /** 2063 * Utility version of get_option that is private to install /upgrade.2063 * Utility version of get_option that is private to installation/upgrade. 2064 2064 * 2065 2065 * @ignore -
trunk/src/wp-admin/install.php
r41030 r41289 50 50 51 51 /** 52 * Display install header.52 * Display installation header. 53 53 * 54 54 * @since 2.5.0 -
trunk/src/wp-admin/network.php
r40390 r41289 58 58 59 59 $network_help = '<p>' . __('This screen allows you to configure a network as having subdomains (<code>site1.example.com</code>) or subdirectories (<code>example.com/site1</code>). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.') . '</p>' . 60 '<p>' . __('Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your install . Fill out the network details, and click install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '</p>' .60 '<p>' . __('Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your installation. Fill out the network details, and click Install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '</p>' . 61 61 '<p>' . __('The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.') . '</p>' . 62 62 '<p>' . __('Add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).') . '</p>' . -
trunk/src/wp-admin/network/settings.php
r41268 r41289 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 /** WordPress Translation Install API */13 /** WordPress Translation Installation API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 15 15 … … 63 63 ); 64 64 65 // Handle translation install .65 // Handle translation installation. 66 66 if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) ) { 67 67 $language = wp_download_language_pack( $_POST['WPLANG'] ); -
trunk/src/wp-admin/network/site-new.php
r41268 r41289 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 /** WordPress Translation Install API */13 /** WordPress Translation Installation API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 15 15 … … 43 43 $domain = strtolower( $blog['domain'] ); 44 44 45 // If not a subdomain install , make sure the domain isn't a reserved word45 // If not a subdomain installation, make sure the domain isn't a reserved word 46 46 if ( ! is_subdomain_install() ) { 47 47 $subdirectory_reserved_names = get_subdirectory_reserved_names(); … … 63 63 ); 64 64 65 // Handle translation install for the new site.65 // Handle translation installation for the new site. 66 66 if ( isset( $_POST['WPLANG'] ) ) { 67 67 if ( '' === $_POST['WPLANG'] ) { -
trunk/src/wp-admin/options-general.php
r41268 r41289 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 /** WordPress Translation Install API */12 /** WordPress Translation Installation API */ 13 13 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 14 14 -
trunk/src/wp-admin/options-writing.php
r38720 r41289 28 28 'id' => 'options-postemail', 29 29 'title' => __( 'Post Via Email' ), 30 'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '</p>',30 'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress installation an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '</p>', 31 31 ) ); 32 32 } -
trunk/src/wp-admin/options.php
r41268 r41289 177 177 } 178 178 179 // Handle translation install .179 // Handle translation installation. 180 180 if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) ) { 181 181 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); -
trunk/src/wp-admin/plugin-install.php
r39536 r41289 68 68 69 69 /* 70 * Call the pre upload action on every non-upload plugin install screen70 * Call the pre upload action on every non-upload plugin installation screen 71 71 * because the form is always displayed on these screens. 72 72 */ … … 130 130 <?php 131 131 /* 132 * Output the upload plugin form on every non-upload plugin install screen, so it can be132 * Output the upload plugin form on every non-upload plugin installation screen, so it can be 133 133 * displayed via JavaScript rather then opening up the devoted upload plugin page. 134 134 */ -
trunk/src/wp-admin/setup-config.php
r38899 r41289 36 36 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 37 37 38 /** Load WordPress Translation Install API */38 /** Load WordPress Translation Installation API */ 39 39 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 40 40 … … 58 58 ); 59 59 60 // Check if wp-config.php exists above the root directory but is not part of another install 60 // Check if wp-config.php exists above the root directory but is not part of another installation 61 61 if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) { 62 62 wp_die( '<p>' . sprintf( … … 369 369 } 370 370 ?></textarea> 371 <p><?php _e( 'After you’ve done that, click “Run the install .”' ); ?></p>372 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install ' ); ?></a></p>371 <p><?php _e( 'After you’ve done that, click “Run the installation.”' ); ?></p> 372 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p> 373 373 <script> 374 374 (function(){ … … 402 402 <p><?php _e( 'All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…' ); ?></p> 403 403 404 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install ' ); ?></a></p>404 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p> 405 405 <?php 406 406 endif; -
trunk/src/wp-admin/theme-install.php
r40636 r41289 77 77 * 78 78 * The dynamic portion of the hook name, `$tab`, refers to the current 79 * theme install tab. Possible values are 'dashboard', 'search', 'upload',79 * theme installation tab. Possible values are 'dashboard', 'search', 'upload', 80 80 * 'featured', 'new', or 'updated'. 81 81 * … … 237 237 * 238 238 * The dynamic portion of the hook name, `$tab`, refers to the current 239 * theme install tab. Possible values are 'dashboard', 'search', 'upload',239 * theme installation tab. Possible values are 'dashboard', 'search', 'upload', 240 240 * 'featured', 'new', or 'updated'. 241 241 * -
trunk/src/wp-admin/update.php
r38470 r41289 121 121 } 122 122 123 $title = __('Plugin Install ');123 $title = __('Plugin Installation'); 124 124 $parent_file = 'plugins.php'; 125 125 $submenu_file = 'plugin-install.php'; -
trunk/src/wp-includes/class-wp-customize-manager.php
r41243 r41289 536 536 537 537 /* 538 * Import theme starter content for fresh install s when landing in the customizer.538 * Import theme starter content for fresh installations when landing in the customizer. 539 539 * Import starter content at after_setup_theme:100 so that any 540 540 * add_theme_support( 'starter-content' ) calls will have been made. … … 1761 1761 $exported_setting_validities = array_map( array( $this, 'prepare_setting_validity_for_js' ), $setting_validities ); 1762 1762 1763 // Note that the REQUEST_URI is not passed into home_url() since this breaks subdirectory install s.1763 // Note that the REQUEST_URI is not passed into home_url() since this breaks subdirectory installations. 1764 1764 $self_url = empty( $_SERVER['REQUEST_URI'] ) ? home_url( '/' ) : esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 1765 1765 $state_query_params = array( -
trunk/src/wp-includes/class-wp-locale-switcher.php
r41162 r41289 159 159 160 160 /** 161 * Filters the WordPress install's locale.162 * 163 * @since 4.7.0 164 * 165 * @param string $locale The WordPress install's locale.161 * Filters the locale of the WordPress installation. 162 * 163 * @since 4.7.0 164 * 165 * @param string $locale The locale of the WordPress installation. 166 166 * @return string The locale currently being switched to. 167 167 */ -
trunk/src/wp-includes/class-wp-network.php
r41162 r41289 274 274 * 275 275 * This is a very basic optimization; anything further could have 276 * drawbacks depending on the setup, so this is best done per-install .276 * drawbacks depending on the setup, so this is best done per-installation. 277 277 */ 278 278 $using_paths = true; -
trunk/src/wp-includes/default-constants.php
r40320 r41289 350 350 351 351 /** 352 * Slug of the default theme for this install .352 * Slug of the default theme for this installation. 353 353 * Used as the default theme when installing new sites. 354 354 * It will be used as the fallback if the current theme doesn't exist. -
trunk/src/wp-includes/deprecated.php
r41216 r41289 3373 3373 * 3374 3374 * Checks to see if the user has deleted the tinymce files to slim down 3375 * their WordPress install .3375 * their WordPress installation. 3376 3376 * 3377 3377 * @since 2.1.0 -
trunk/src/wp-includes/functions.php
r41244 r41289 1389 1389 1390 1390 /* 1391 * Loop over the WP tables. If none exist, then scratch install is allowed.1391 * Loop over the WP tables. If none exist, then scratch installation is allowed. 1392 1392 * If one or more exist, suggest table repair since we got here because the 1393 1393 * options table could not be accessed. … … 1395 1395 $wp_tables = $wpdb->tables(); 1396 1396 foreach ( $wp_tables as $table ) { 1397 // The existence of custom user tables shouldn't suggest an insane state or prevent a clean install .1397 // The existence of custom user tables shouldn't suggest an insane state or prevent a clean installation. 1398 1398 if ( defined( 'CUSTOM_USER_TABLE' ) && CUSTOM_USER_TABLE == $table ) 1399 1399 continue; … … 4327 4327 // Request is hitting a file above ABSPATH 4328 4328 $subdirectory = substr( $abspath_fix, strpos( $abspath_fix, $script_filename_dir ) + strlen( $script_filename_dir ) ); 4329 // Strip off any file/query params from the path, appending the sub directory to the install 4329 // Strip off any file/query params from the path, appending the sub directory to the installation 4330 4330 $path = preg_replace( '#/[^/]*$#i', '' , $_SERVER['REQUEST_URI'] ) . $subdirectory; 4331 4331 } else { … … 4409 4409 4410 4410 /** 4411 * Determine whether a network is the main network of the Multisite install .4411 * Determine whether a network is the main network of the Multisite installation. 4412 4412 * 4413 4413 * @since 3.7.0 -
trunk/src/wp-includes/l10n.php
r40932 r41289 33 33 if ( isset( $locale ) ) { 34 34 /** 35 * Filters WordPress install's locale ID.35 * Filters the locale ID of the WordPress installation. 36 36 * 37 37 * @since 1.5.0 … … 980 980 * properly translates them back. 981 981 * 982 * The before_last_bar() call is needed, because older install s keep the roles982 * The before_last_bar() call is needed, because older installations keep the roles 983 983 * using the old context format: 'Role name|User role' and just skipping the 984 * content after the last bar is easier than fixing them in the DB. New install s984 * content after the last bar is easier than fixing them in the DB. New installations 985 985 * won't suffer from that problem. 986 986 * -
trunk/src/wp-includes/ms-deprecated.php
r41242 r41289 461 461 * @type int $offset Exclude the first x sites. Used in combination with the $limit parameter. Default 0. 462 462 * } 463 * @return array An empty array if the install is considered "large" via wp_is_large_network(). Otherwise,463 * @return array An empty array if the installation is considered "large" via wp_is_large_network(). Otherwise, 464 464 * an associative array of site data arrays, each containing the site (network) ID, blog ID, 465 465 * site domain and path, dates registered and modified, and the language ID. Also, boolean -
trunk/src/wp-includes/ms-functions.php
r41242 r41289 587 587 588 588 /* 589 * On sub dir install s, some names are so illegal, only a filter can589 * On sub dir installations, some names are so illegal, only a filter can 590 590 * spring them from jail. 591 591 */ … … 681 681 * 682 682 * @type string $domain Domain for the site. 683 * @type string $path Path for the site. Used in subdirectory install s.683 * @type string $path Path for the site. Used in subdirectory installations. 684 684 * @type string $blogname The unique site name (slug). 685 685 * @type string $blog_title Blog title. … … 1165 1165 * for events that should affect all new sites. 1166 1166 * 1167 * On subdirectory install s, $domain is the same as the main site's1167 * On subdirectory installations, $domain is the same as the main site's 1168 1168 * domain, and the path is the subdirectory name (eg 'example.com' 1169 * and '/blog1/'). On subdomain install s, $domain is the new subdomain +1169 * and '/blog1/'). On subdomain installations, $domain is the new subdomain + 1170 1170 * root domain (eg 'blog1.example.com'), and $path is '/'. 1171 1171 * … … 1181 1181 * updated. Otherwise, keys and values will be used to set options for 1182 1182 * the new site. Default empty array. 1183 * @param int $network_id Optional. Network ID. Only relevant on multi-network install s.1183 * @param int $network_id Optional. Network ID. Only relevant on multi-network installations. 1184 1184 * @return int|WP_Error Returns WP_Error object on failure, the new site ID on success. 1185 1185 */ … … 1241 1241 * @param string $domain Site domain. 1242 1242 * @param string $path Site path. 1243 * @param int $network_id Network ID. Only relevant on multi-network install s.1243 * @param int $network_id Network ID. Only relevant on multi-network installations. 1244 1244 * @param array $meta Meta data. Used to set initial site options. 1245 1245 */ … … 1353 1353 * @param string $domain The domain to be checked. 1354 1354 * @param string $path The path to be checked. 1355 * @param int $network_id Optional. Network ID. Relevant only on multi-network install s.1355 * @param int $network_id Optional. Network ID. Relevant only on multi-network installations. 1356 1356 * @return int 1357 1357 */ … … 1375 1375 * @param string $domain Domain to be checked. 1376 1376 * @param string $path Path to be checked. 1377 * @param int $network_id Network ID. Relevant only on multi-network install s.1377 * @param int $network_id Network ID. Relevant only on multi-network installations. 1378 1378 */ 1379 1379 return apply_filters( 'domain_exists', $result, $domain, $path, $network_id ); … … 1392 1392 * @param string $domain The domain of the new site. 1393 1393 * @param string $path The path of the new site. 1394 * @param int $network_id Unless you're running a multi-network install , be sure to set this value to 1.1394 * @param int $network_id Unless you're running a multi-network installation, be sure to set this value to 1. 1395 1395 * @return int|false The ID of the new row 1396 1396 */ … … 2571 2571 2572 2572 /** 2573 * Retrieves a list of reserved site on a sub-directory Multisite install .2573 * Retrieves a list of reserved site on a sub-directory Multisite installation. 2574 2574 * 2575 2575 * @since 4.4.0 … … 2584 2584 2585 2585 /** 2586 * Filters reserved site names on a sub-directory Multisite install .2586 * Filters reserved site names on a sub-directory Multisite installation. 2587 2587 * 2588 2588 * @since 3.0.0 -
trunk/src/wp-includes/ms-load.php
r38943 r41289 309 309 } elseif ( ! $subdomain ) { 310 310 /* 311 * A "subdomain" install can be re-interpreted to mean "can support any domain".312 * If we're not dealing with one of these install s, then the important part is determining311 * A "subdomain" installation can be re-interpreted to mean "can support any domain". 312 * If we're not dealing with one of these installations, then the important part is determining 313 313 * the network first, because we need the network's path to identify any sites. 314 314 */ … … 402 402 403 403 if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) { 404 // For a "subdomain" install , redirect to the signup form specifically.404 // For a "subdomain" installation, redirect to the signup form specifically. 405 405 $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain ); 406 406 } elseif ( $subdomain ) { 407 // For a "subdomain" install , the NOBLOGREDIRECT constant407 // For a "subdomain" installation, the NOBLOGREDIRECT constant 408 408 // can be used to avoid a redirect to the signup form. 409 409 // Using the ms_site_not_found action is preferred to the constant. -
trunk/src/wp-includes/plugin.php
r38589 r41289 781 781 * registering the uninstall hook. In order to run using the hook, the plugin 782 782 * will have to be included, which means that any code laying outside of a 783 * function will be run during the uninstall process. The plugin should not784 * hinder the uninstall process.783 * function will be run during the uninstallation process. The plugin should not 784 * hinder the uninstallation process. 785 785 * 786 786 * If the plugin can not be written without running code within the plugin, then 787 787 * the plugin should create a file named 'uninstall.php' in the base plugin 788 * folder. This file will be called, if it exists, during the uninstall process788 * folder. This file will be called, if it exists, during the uninstallation process 789 789 * bypassing the uninstall hook. The plugin, when using the 'uninstall.php' 790 790 * should always check for the 'WP_UNINSTALL_PLUGIN' constant, before -
trunk/src/wp-includes/script-loader.php
r41240 r41289 744 744 'pluginInstalled' => _x( 'Installed!', 'plugin' ), 745 745 'themeInstalled' => _x( 'Installed!', 'theme' ), 746 'installFailedShort' => __( 'Install Failed!' ),746 'installFailedShort' => __( 'Installation Failed!' ), 747 747 /* translators: %s: Error string for a failed installation */ 748 748 'installFailed' => __( 'Installation failed: %s' ), -
trunk/src/wp-includes/user.php
r41272 r41289 1384 1384 * @since 2.0.0 1385 1385 * @since 3.6.0 The `aim`, `jabber`, and `yim` fields were removed as default user contact 1386 * methods for new install s. See wp_get_user_contact_methods().1386 * methods for new installations. See wp_get_user_contact_methods(). 1387 1387 * @since 4.7.0 The user's locale can be passed to `$userdata`. 1388 1388 * -
trunk/src/wp-load.php
r38899 r41289 39 39 } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) { 40 40 41 /** The config file resides one level above ABSPATH but is not part of another install */41 /** The config file resides one level above ABSPATH but is not part of another installation */ 42 42 require_once( dirname( ABSPATH ) . '/wp-config.php' ); 43 43 -
trunk/src/wp-settings.php
r40387 r41289 23 23 /* 24 24 * These can't be directly globalized in version.php. When updating, 25 * we're including version.php from another install and don't want25 * we're including version.php from another installation and don't want 26 26 * these values to be overridden if already set. 27 27 */ -
trunk/tests/phpunit/includes/mock-fs.php
r26246 r41289 26 26 $folder = $this->find_folder( $path ); 27 27 28 // Perhaps the FTP folder is rooted at the WordPress install , Check for wp-includes folder in root, Could have some false positives, but rare.28 // Perhaps the FTP folder is rooted at the WordPress installation, Check for wp-includes folder in root, Could have some false positives, but rare. 29 29 if ( ! $folder && $this->is_dir('/wp-includes') ) 30 30 $folder = '/'; -
trunk/tests/phpunit/includes/object-cache.php
r40561 r41289 836 836 /** 837 837 * This approach is borrowed from Sivel and Boren. Use the salt for easy cache invalidation and for 838 * multi single WP install s on the same server.838 * multi single WP installations on the same server. 839 839 */ 840 840 if ( ! defined( 'WP_CACHE_KEY_SALT' ) ) -
trunk/tests/phpunit/includes/trac.php
r27168 r41289 3 3 class TracTickets { 4 4 /** 5 * When open tickets for a Trac install is requested, the results are stored here.5 * When open tickets for a Trac installation is requested, the results are stored here. 6 6 * 7 7 * @var array -
trunk/tests/phpunit/includes/utils.php
r40555 r41289 140 140 141 141 // convert valid xml to an array tree structure 142 // kinda lame but it works with a default php 4 install 142 // kinda lame but it works with a default php 4 installation 143 143 class testXMLParser { 144 144 var $xml; -
trunk/tests/phpunit/tests/filesystem/findFolder.php
r41261 r41289 49 49 50 50 /** 51 * Two WordPress install s, with one contained within the other51 * Two WordPress installations, with one contained within the other 52 52 * FTP / = /var/www/example.com/ on Disk 53 53 * example.com at / -
trunk/tests/phpunit/tests/http/base.php
r40524 r41289 385 385 function test_ssl() { 386 386 if ( ! wp_http_supports( array( 'ssl' ) ) ) 387 $this->fail( 'This install of PHP does not support SSL' );387 $this->fail( 'This installation of PHP does not support SSL' ); 388 388 389 389 $res = wp_remote_get( 'https://wordpress.org/' ); -
trunk/wp-tests-config-sample.php
r38858 r41289 8 8 * 9 9 * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into 10 * the themes directory of the WordPress install defined above.10 * the themes directory of the WordPress installation defined above. 11 11 */ 12 12 define( 'WP_DEFAULT_THEME', 'default' );
Note: See TracChangeset
for help on using the changeset viewer.