Changeset 30703
- Timestamp:
- 12/02/2014 04:42:17 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r30678 r30703 318 318 if ( isset($files[ $key ]) ){ 319 319 320 // Let s try that folder:320 // Let's try that folder: 321 321 $newdir = trailingslashit(path_join($base, $key)); 322 322 if ( $this->verbose ) -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r30648 r30703 708 708 709 709 $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit(WP_CONTENT_DIR), $source); 710 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let s not prevent installation.710 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation. 711 711 return $source; 712 712 … … 851 851 } 852 852 853 // We don't have the parent theme, let s install it853 // We don't have the parent theme, let's install it. 854 854 $api = themes_api('theme_information', array('slug' => $theme_info->get('Template'), 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth. 855 855 … … 1096 1096 // Check the folder contains a valid theme 1097 1097 $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit(WP_CONTENT_DIR), $source); 1098 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let s not prevent installation.1098 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation. 1099 1099 return $source; 1100 1100 … … 2102 2102 } 2103 2103 2104 // Core doesn't output this, so let s append it so we don't get confused.2104 // Core doesn't output this, so let's append it so we don't get confused. 2105 2105 if ( 'core' == $type ) { 2106 2106 if ( is_wp_error( $upgrade_result ) ) { -
trunk/src/wp-includes/class-wp.php
r30105 r30703 206 206 207 207 if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { 208 // this is a verbose page match, lets check to be sure about it208 // This is a verbose page match, let's check to be sure about it. 209 209 if ( ! get_page_by_path( $matches[ $varmatch[1] ] ) ) 210 210 continue; -
trunk/src/wp-includes/rewrite.php
r30669 r30703 364 364 365 365 if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { 366 // this is a verbose page match, lets check to be sure about it366 // This is a verbose page match, let's check to be sure about it. 367 367 if ( ! get_page_by_path( $matches[ $varmatch[1] ] ) ) 368 368 continue;
Note: See TracChangeset
for help on using the changeset viewer.