Changes in branches/3.7/src [25914:25987]
- Location:
- branches/3.7/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-admin/about.php
r25914 r25987 22 22 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 23 23 24 <div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ), $display_version); ?></div>24 <div class="about-text"><?php echo str_replace( '3.7', $display_version, __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ) ); ?></div> 25 25 26 26 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> … … 35 35 </a> 36 36 </h2> 37 38 <div class="changelog point-releases"> 39 <h3><?php echo _n( 'Maintenance Release', 'Maintenance Releases', 1 ); ?></h3> 40 <p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.', 41 '<strong>Version %1$s</strong> addressed %2$s bugs.', 11 ), '3.7.1', number_format_i18n( 11 ) ); ?> 42 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.7.1' ); ?> 43 </p> 44 </div> 37 45 38 46 <div class="changelog"> … … 62 70 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 63 71 $updater = new WP_Automatic_Updater; 64 $can_auto_update = wp_http_supports( 'ssl') && $updater->should_update( 'core', $future_minor_update, ABSPATH );72 $can_auto_update = wp_http_supports( array( 'ssl' ) ) && $updater->should_update( 'core', $future_minor_update, ABSPATH ); 65 73 66 74 if ( $can_auto_update ) { -
branches/3.7/src/wp-admin/credits.php
r25914 r25987 82 82 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 83 83 84 <div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ), $display_version); ?></div>84 <div class="about-text"><?php echo str_replace( '3.7', $display_version, __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ) ); ?></div> 85 85 86 86 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> -
branches/3.7/src/wp-admin/freedoms.php
r25914 r25987 20 20 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 21 21 22 <div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ), $display_version); ?></div>22 <div class="about-text"><?php echo str_replace( '3.7', $display_version, __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ) ); ?></div> 23 23 24 24 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> -
branches/3.7/src/wp-admin/includes/class-wp-upgrader.php
r25914 r25987 2136 2136 if ( ! $next_user_core_update ) 2137 2137 $next_user_core_update = $core_update; 2138 $newer_version_available = ( 'upgrade' == $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update , '>' ) );2138 $newer_version_available = ( 'upgrade' == $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update->version, '>' ) ); 2139 2139 2140 2140 /** -
branches/3.7/src/wp-admin/includes/plugin-install.php
r25914 r25987 61 61 62 62 if ( false === $res ) { 63 $url = 'http://api.wordpress.org/plugins/info/1.0/';64 if ( wp_http_supports( array( 'ssl' ) ) )63 $url = $http_url = 'http://api.wordpress.org/plugins/info/1.0/'; 64 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 65 65 $url = set_url_scheme( $url, 'https' ); 66 66 67 $ request = wp_remote_post( $url,array(67 $args = array( 68 68 'timeout' => 15, 69 69 'body' => array( … … 71 71 'request' => serialize( $args ) 72 72 ) 73 ) ); 73 ); 74 $request = wp_remote_post( $url, $args ); 75 76 if ( $ssl && is_wp_error( $request ) ) { 77 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 78 $request = wp_remote_post( $http_url, $args ); 79 } 74 80 75 81 if ( is_wp_error($request) ) { -
branches/3.7/src/wp-admin/includes/theme.php
r25914 r25987 283 283 284 284 if ( ! $res ) { 285 $url = 'http://api.wordpress.org/themes/info/1.0/';286 if ( wp_http_supports( array( 'ssl' ) ) )285 $url = $http_url = 'http://api.wordpress.org/themes/info/1.0/'; 286 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 287 287 $url = set_url_scheme( $url, 'https' ); 288 288 289 $ request = wp_remote_post( $url,array(289 $args = array( 290 290 'body' => array( 291 291 'action' => $action, 292 292 'request' => serialize( $args ) 293 293 ) 294 ) ); 294 ); 295 $request = wp_remote_post( $url, $args ); 296 297 if ( $ssl && is_wp_error( $request ) ) { 298 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 299 $request = wp_remote_post( $http_url, $args ); 300 } 295 301 296 302 if ( is_wp_error($request) ) { -
branches/3.7/src/wp-admin/includes/update-core.php
r25914 r25987 751 751 $skip = array( 'wp-content' ); 752 752 $failed = array(); 753 if ( is _array( $checksums ) ) {753 if ( isset( $checksums ) && is_array( $checksums ) ) { 754 754 foreach ( $checksums as $file => $checksum ) { 755 755 if ( 0 === strpos( $file, 'wp-content' ) ) -
branches/3.7/src/wp-admin/includes/update.php
r25914 r25987 104 104 $return = array(); 105 105 106 $url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' );107 108 if ( wp_http_supports( array( 'ssl' ) ) )106 $url = $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' ); 107 108 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 109 109 $url = set_url_scheme( $url, 'https' ); 110 110 … … 114 114 115 115 $response = wp_remote_get( $url, $options ); 116 if ( $ssl && is_wp_error( $response ) ) { 117 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 118 $response = wp_remote_get( $http_url, $options ); 119 } 116 120 117 121 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) -
branches/3.7/src/wp-admin/update-core.php
r25914 r25987 147 147 _e('You have the latest version of WordPress.'); 148 148 149 if ( wp_http_supports( 'ssl') ) {149 if ( wp_http_supports( array( 'ssl' ) ) ) { 150 150 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 151 151 $upgrader = new WP_Automatic_Updater; -
branches/3.7/src/wp-includes/category-template.php
r25914 r25987 233 233 */ 234 234 function in_category( $category, $post = null ) { 235 if ( empty( $category ) ) 236 return false; 237 235 238 return has_category( $category, $post ); 236 239 } -
branches/3.7/src/wp-includes/default-constants.php
r25914 r25987 43 43 $current_limit = @ini_get( 'memory_limit' ); 44 44 $current_limit_int = intval( $current_limit ); 45 if ( false !== str ipos( $current_limit, 'G' ) )45 if ( false !== strpos( $current_limit, 'G' ) ) 46 46 $current_limit_int *= 1024; 47 47 $wp_limit_int = intval( WP_MEMORY_LIMIT ); 48 if ( false !== str ipos( WP_MEMORY_LIMIT, 'G' ) )48 if ( false !== strpos( WP_MEMORY_LIMIT, 'G' ) ) 49 49 $wp_limit_int *= 1024; 50 50 -
branches/3.7/src/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js
r25914 r25987 161 161 div_cls += ' mceIEcenter'; 162 162 163 return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption '+cls+'" style="width: '+( 10 + parseInt(w) )+ 163 w = parseInt( w, 10 ) + 10; 164 return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption '+cls+'" style="width: '+w+ 164 165 'px"><dt class="wp-caption-dt">'+img+'</dt><dd class="wp-caption-dd">'+cap+'</dd></dl></div>'; 165 166 }); -
branches/3.7/src/wp-includes/l10n.php
r25914 r25987 798 798 'X-Generator' => '"X-Generator', 799 799 ) ); 800 foreach ( $headers as &$header) {800 foreach ( $headers as $header => $value ) { 801 801 // Remove possible contextual '\n' and closing double quote. 802 $header = preg_replace( '~(\\\n)?"$~', '', $header);802 $headers[ $header ] = preg_replace( '~(\\\n)?"$~', '', $value ); 803 803 } 804 804 return $headers; -
branches/3.7/src/wp-includes/option.php
r25914 r25987 237 237 $serialized_value = maybe_serialize( $value ); 238 238 239 do_action( 'update_option', $option, $old_value, $value ); 239 240 $result = $wpdb->update( $wpdb->options, array( 'option_value' => $serialized_value ), array( 'option_name' => $option ) ); 240 241 if ( ! $result ) … … 247 248 } 248 249 249 do_action( 'update_option', $option, $old_value, $value );250 250 if ( ! defined( 'WP_INSTALLING' ) ) { 251 251 $alloptions = wp_load_alloptions(); -
branches/3.7/src/wp-includes/post.php
r25914 r25987 3707 3707 return $pages; 3708 3708 3709 if ( $parent && ! $child_of )3709 if ( $parent > 0 && ! $child_of ) 3710 3710 $hierarchical = false; 3711 3711 -
branches/3.7/src/wp-includes/query.php
r25914 r25987 1987 1987 $term = trim( $term, "\"' " ); 1988 1988 1989 // \p{L} matches a single letter that is not a Chinese, Japanese, etc. char1990 if ( ! $term || preg_match( '/^\p{L}$/u', $term) )1989 // Avoid single A-Z. 1990 if ( ! $term || ( 1 === strlen( $term ) && preg_match( '/^[a-z]$/i', $term ) ) ) 1991 1991 continue; 1992 1992 -
branches/3.7/src/wp-includes/taxonomy.php
r25914 r25987 1363 1363 if ( ! empty( $exclude_tree ) ) { 1364 1364 $exclude_tree = wp_parse_id_list( $exclude_tree ); 1365 $excluded_children = array();1365 $excluded_children = $exclude_tree; 1366 1366 foreach ( $exclude_tree as $extrunk ) { 1367 1367 $excluded_children = array_merge( -
branches/3.7/src/wp-includes/update.php
r25914 r25987 94 94 $post_body = array_merge( $post_body, $extra_stats ); 95 95 96 $url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' );97 if ( wp_http_supports( array( 'ssl' ) ) )96 $url = $http_url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' ); 97 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 98 98 $url = set_url_scheme( $url, 'https' ); 99 99 … … 109 109 110 110 $response = wp_remote_post( $url, $options ); 111 if ( $ssl && is_wp_error( $response ) ) { 112 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 113 $response = wp_remote_post( $http_url, $options ); 114 } 111 115 112 116 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) … … 247 251 ); 248 252 249 $url = 'http://api.wordpress.org/plugins/update-check/1.1/';250 if ( wp_http_supports( array( 'ssl' ) ) )253 $url = $http_url = 'http://api.wordpress.org/plugins/update-check/1.1/'; 254 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 251 255 $url = set_url_scheme( $url, 'https' ); 252 256 253 257 $raw_response = wp_remote_post( $url, $options ); 258 if ( $ssl && is_wp_error( $raw_response ) ) { 259 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 260 $raw_response = wp_remote_post( $http_url, $options ); 261 } 254 262 255 263 if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) … … 383 391 ); 384 392 385 $url = 'http://api.wordpress.org/themes/update-check/1.1/';386 if ( wp_http_supports( array( 'ssl' ) ) )393 $url = $http_url = 'http://api.wordpress.org/themes/update-check/1.1/'; 394 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 387 395 $url = set_url_scheme( $url, 'https' ); 388 396 389 397 $raw_response = wp_remote_post( $url, $options ); 398 if ( $ssl && is_wp_error( $raw_response ) ) { 399 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 400 $raw_response = wp_remote_post( $http_url, $options ); 401 } 390 402 391 403 if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) -
branches/3.7/src/wp-includes/user.php
r25914 r25987 213 213 */ 214 214 function get_current_user_id() { 215 if ( ! function_exists( 'wp_get_current_user' ) ) 216 return 0; 215 217 $user = wp_get_current_user(); 216 218 return ( isset( $user->ID ) ? (int) $user->ID : 0 ); -
branches/3.7/src/wp-includes/version.php
r25914 r25987 5 5 * @global string $wp_version 6 6 */ 7 $wp_version = '3.7.1- alpha-src';7 $wp_version = '3.7.1-src'; 8 8 9 9 /** … … 19 19 * @global string $tinymce_version 20 20 */ 21 $tinymce_version = '359-201310 18';21 $tinymce_version = '359-20131026'; 22 22 23 23 /**
Note: See TracChangeset
for help on using the changeset viewer.