Ticket #37699: 37699-version.4.diff
File 37699-version.4.diff, 27.2 KB (added by , 8 years ago) |
---|
-
src/wp-admin/about.php
42 42 43 43 $title = __( 'About' ); 44 44 45 list( $display_version ) = explode( '-', $wp_version);45 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); 46 46 47 47 include( ABSPATH . 'wp-admin/admin-header.php' ); 48 48 ?> -
src/wp-admin/admin-header.php
18 18 * @global WP_Screen $current_screen 19 19 * @global WP_Locale $wp_locale 20 20 * @global string $pagenow 21 * @global string $wp_version22 21 * @global string $update_title 23 22 * @global int $total_update_count 24 23 * @global string $parent_file 25 24 */ 26 global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,25 global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, 27 26 $update_title, $total_update_count, $parent_file; 28 27 29 28 // Catch plugins that include admin-header.php before admin.php completes. … … 154 153 if ( $current_screen->taxonomy ) 155 154 $admin_body_class .= ' taxonomy-' . $current_screen->taxonomy; 156 155 157 $admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version) );158 $admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version) );156 $admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( get_bloginfo( 'version' ) ) ); 157 $admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', get_bloginfo( 'version' ) ) ); 159 158 $admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' ); 160 159 $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); 161 160 -
src/wp-admin/credits.php
12 12 13 13 $title = __( 'Credits' ); 14 14 15 list( $display_version ) = explode( '-', $wp_version);15 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); 16 16 17 17 include( ABSPATH . 'wp-admin/admin-header.php' ); 18 18 ?> -
src/wp-admin/freedoms.php
11 11 12 12 $title = __( 'Freedoms' ); 13 13 14 list( $display_version ) = explode( '-', $wp_version);14 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); 15 15 16 16 include( ABSPATH . 'wp-admin/admin-header.php' ); 17 17 ?> -
src/wp-admin/includes/class-wp-automatic-updater.php
371 371 * 372 372 * @since 3.7.0 373 373 * @access public 374 *375 * @global wpdb $wpdb376 * @global string $wp_version377 374 */ 378 375 public function run() { 379 global $wpdb, $wp_version;380 381 376 if ( $this->is_disabled() ) 382 377 return; 383 378 … … 457 452 458 453 // Send debugging email to all development installs. 459 454 if ( ! empty( $this->update_results ) ) { 460 $development_version = false !== strpos( $wp_version, '-' );455 $development_version = false !== strpos( get_bloginfo( 'version' ), '-' ); 461 456 462 457 /** 463 458 * Filters whether to send a debugging email for each automatic background update. … … 494 489 * @since Unknown 495 490 * @access protected 496 491 * 497 * @global string $wp_version498 *499 492 * @param object $update_result The result of the core update. Includes the update offer and result. 500 493 */ 501 494 protected function after_core_update( $update_result ) { 502 global $wp_version;495 $wp_version = get_bloginfo( 'version' ); 503 496 504 497 $core_update = $update_result->item; 505 498 $result = $update_result->result; … … 584 577 * @since 3.7.0 585 578 * @access protected 586 579 * 587 * @global string $wp_version588 *589 580 * @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'. 590 581 * @param object $core_update The update offer that was attempted. 591 582 * @param mixed $result Optional. The result for the core update. Can be WP_Error. … … 722 713 723 714 if ( 'critical' == $type && is_wp_error( $result ) ) { 724 715 $body .= "\n***\n\n"; 725 $body .= sprintf( __( 'Your site was running version %s.' ), $GLOBALS['wp_version']);716 $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); 726 717 $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); 727 718 $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); 728 719 -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
69 69 * @global int $paged 70 70 * @global string $type 71 71 * @global string $term 72 * @global string $wp_version73 72 */ 74 73 public function prepare_items() { 75 74 include( ABSPATH . 'wp-admin/includes/plugin-install.php' ); … … 88 87 if ( 'search' === $tab ) { 89 88 $tabs['search'] = __( 'Search Results' ); 90 89 } 91 if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {90 if ( $tab === 'beta' || false !== strpos( get_bloginfo( 'version' ), '-' ) ) { 92 91 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); 93 92 } 94 93 $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); … … 391 390 } 392 391 } 393 392 394 /**395 * @global string $wp_version396 */397 393 public function display_rows() { 398 394 $plugins_allowedtags = array( 399 395 'a' => array( 'href' => array(),'title' => array(), 'target' => array() ), … … 574 570 </div> 575 571 <div class="column-compatibility"> 576 572 <?php 577 if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) { 573 $wp_version = get_bloginfo( 'version' ); 574 575 if ( ! empty( $plugin['tested'] ) && version_compare( substr( $wp_version, 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) { 578 576 echo '<span class="compatibility-untested">' . __( 'Untested with your version of WordPress' ) . '</span>'; 579 } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $ GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) {577 } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $wp_version, 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) { 580 578 echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) . '</span>'; 581 579 } else { 582 580 echo '<span class="compatibility-compatible">' . __( '<strong>Compatible</strong> with your version of WordPress' ) . '</span>'; -
src/wp-admin/includes/class-wp-press-this.php
267 267 * @return string Source's HTML sanitized markup 268 268 */ 269 269 public function fetch_source_html( $url ) { 270 global $wp_version;271 272 270 if ( empty( $url ) ) { 273 271 return new WP_Error( 'invalid-url', __( 'A valid URL was not provided.' ) ); 274 272 } … … 276 274 $remote_url = wp_safe_remote_get( $url, array( 277 275 'timeout' => 30, 278 276 // Use an explicit user-agent for Press This 279 'user-agent' => 'Press This (WordPress/' . $wp_version. '); ' . get_bloginfo( 'url' )277 'user-agent' => 'Press This (WordPress/' . get_bloginfo( 'version' ) . '); ' . get_bloginfo( 'url' ) 280 278 ) ); 281 279 282 280 if ( is_wp_error( $remote_url ) ) { … … 1189 1187 * @access public 1190 1188 * 1191 1189 * @global WP_Locale $wp_locale 1192 * @global string $wp_version1193 1190 * @global bool $is_IE 1194 1191 */ 1195 1192 public function html() { 1196 global $wp_locale , $wp_version;1193 global $wp_locale; 1197 1194 1195 $wp_version = get_bloginfo( 'version' ); 1196 1198 1197 // Get data, new (POST) and old (GET). 1199 1198 $data = $this->merge_or_fetch_data(); 1200 1199 -
src/wp-admin/includes/credits.php
10 10 /** 11 11 * Retrieve the contributor credits. 12 12 * 13 * @global string $wp_version The current WordPress version.14 *15 13 * @since 3.2.0 16 14 * 17 15 * @return array|false A list of all of the contributors, or false on error. 18 16 */ 19 17 function wp_credits() { 20 global $wp_version;18 $wp_version = get_bloginfo( 'version' ); 21 19 $locale = get_locale(); 22 20 23 21 $results = get_site_transient( 'wordpress_credits_' . $locale ); … … 26 24 || false !== strpos( $wp_version, '-' ) 27 25 || ( isset( $results['data']['version'] ) && strpos( $wp_version, $results['data']['version'] ) !== 0 ) 28 26 ) { 29 $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.1/?version= $wp_version&locale=$locale" );27 $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.1/?version={$wp_version}&locale={$locale}" ); 30 28 31 29 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) 32 30 return false; -
src/wp-admin/includes/dashboard.php
1393 1393 * 1394 1394 * @since 3.2.0 1395 1395 * 1396 * @global string $wp_version1397 *1398 1396 * @return array|bool False on failure, array of browser data on success. 1399 1397 */ 1400 1398 function wp_check_browser_version() { … … 1404 1402 $key = md5( $_SERVER['HTTP_USER_AGENT'] ); 1405 1403 1406 1404 if ( false === ($response = get_site_transient('browser_' . $key) ) ) { 1407 global $wp_version;1408 1409 1405 $options = array( 1410 1406 'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ), 1411 'user-agent' => 'WordPress/' . $wp_version. '; ' . home_url()1407 'user-agent' => 'WordPress/' . get_bloginfo( 'version' ) . '; ' . home_url() 1412 1408 ); 1413 1409 1414 1410 $response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.1/', $options ); -
src/wp-admin/includes/plugin-install.php
423 423 * @since 2.7.0 424 424 * 425 425 * @global string $tab 426 * @global string $wp_version427 426 */ 428 427 function install_plugin_information() { 429 428 global $tab; … … 630 629 </div> 631 630 <div id="section-holder" class="wrap"> 632 631 <?php 633 if ( ! empty( $api->tested ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $api->tested ) ), $api->tested, '>' ) ) { 632 $wp_version = get_bloginfo( 'version' ); 633 634 if ( ! empty( $api->tested ) && version_compare( substr( $wp_version, 0, strlen( $api->tested ) ), $api->tested, '>' ) ) { 634 635 echo '<div class="notice notice-warning notice-alt"><p>' . __( '<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.' ) . '</p></div>'; 635 } elseif ( ! empty( $api->requires ) && version_compare( substr( $ GLOBALS['wp_version'], 0, strlen( $api->requires ) ), $api->requires, '<' ) ) {636 } elseif ( ! empty( $api->requires ) && version_compare( substr( $wp_version, 0, strlen( $api->requires ) ), $api->requires, '<' ) ) { 636 637 echo '<div class="notice notice-warning notice-alt"><p>' . __( '<strong>Warning:</strong> This plugin has <strong>not been marked as compatible</strong> with your version of WordPress.' ) . '</p></div>'; 637 638 } 638 639 -
src/wp-admin/plugin-editor.php
260 260 <input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" /> 261 261 </div> 262 262 <?php if ( !empty( $docs_select ) ) : ?> 263 <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Look Up' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version) ?>&redirect=true'); }" /></div>263 <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Look Up' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ) ?>&redirect=true'); }" /></div> 264 264 <?php endif; ?> 265 265 <?php if ( is_writeable($real_file) ) : ?> 266 266 <?php if ( in_array( $file, (array) get_option( 'active_plugins', array() ) ) ) { ?> -
src/wp-admin/theme-editor.php
263 263 <div id="documentation" class="hide-if-no-js"> 264 264 <label for="docs-list"><?php _e('Documentation:') ?></label> 265 265 <?php echo $docs_select; ?> 266 <input type="button" class="button" value="<?php esc_attr_e( 'Look Up' ); ?>" onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version) ?>&redirect=true'); }" />266 <input type="button" class="button" value="<?php esc_attr_e( 'Look Up' ); ?>" onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ) ?>&redirect=true'); }" /> 267 267 </div> 268 268 <?php endif; ?> 269 269 -
src/wp-admin/update-core.php
26 26 * 27 27 * @global string $wp_local_package 28 28 * @global wpdb $wpdb 29 * @global string $wp_version30 29 * 31 30 * @staticvar bool $first_pass 32 31 * … … 33 32 * @param object $update 34 33 */ 35 34 function list_core_update( $update ) { 36 global $wp_local_package, $wpdb , $wp_version;35 global $wp_local_package, $wpdb; 37 36 static $first_pass = true; 38 37 38 $wp_version = get_bloginfo( 'version' ); 39 39 40 if ( 'en_US' == $update->locale && 'en_US' == get_locale() ) 40 41 $version_string = $update->current; 41 42 // If the only available update is a partial builds, it doesn't need a language-specific version string. … … 149 150 * 150 151 * @since 2.7.0 151 152 * 152 * @global string $wp_version153 153 * @global string $required_php_version 154 154 * @global string $required_mysql_version 155 155 */ 156 156 function core_upgrade_preamble() { 157 global $ wp_version, $required_php_version, $required_mysql_version;157 global $required_php_version, $required_mysql_version; 158 158 159 $wp_version = get_bloginfo( 'version' ); 159 160 $updates = get_core_updates(); 160 161 161 162 if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { … … 211 212 dismissed_updates(); 212 213 } 213 214 214 /**215 *216 * @global string $wp_version217 */218 215 function list_plugin_updates() { 219 global $wp_version; 216 $wp_version = get_bloginfo( 'version' ); 217 $cur_wp_version = preg_replace( '/-.*$/', '', $wp_version ); 220 218 221 $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);222 223 219 require_once(ABSPATH . 'wp-admin/includes/plugin-install.php'); 224 220 $plugins = get_plugin_updates(); 225 221 if ( empty( $plugins ) ) { -
src/wp-includes/class-http.php
101 101 * @access public 102 102 * @since 2.7.0 103 103 * 104 * @global string $wp_version105 *106 104 * @param string $url The request URL. 107 105 * @param string|array $args { 108 106 * Optional. Array or string of HTTP request arguments. … … 116 114 * @type string $httpversion Version of the HTTP protocol to use. Accepts '1.0' and '1.1'. 117 115 * Default '1.0'. 118 116 * @type string $user-agent User-agent value sent. 119 * Default WordPress/' . $wp_version. '; ' . get_bloginfo( 'url' ).117 * Default WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ). 120 118 * @type bool $reject_unsafe_urls Whether to pass URLs through wp_http_validate_url(). 121 119 * Default false. 122 120 * @type bool $blocking Whether the calling code requires the result of the request. … … 148 146 * A WP_Error instance upon error. 149 147 */ 150 148 public function request( $url, $args = array() ) { 151 global $wp_version;152 153 149 $defaults = array( 154 150 'method' => 'GET', 155 151 /** … … 185 181 * 186 182 * @param string $user_agent WordPress user agent string. 187 183 */ 188 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version. '; ' . get_bloginfo( 'url' ) ),184 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) ), 189 185 /** 190 186 * Filters whether to pass URLs through wp_http_validate_url() in an HTTP request. 191 187 * -
src/wp-includes/class-wp-editor.php
296 296 /** 297 297 * @static 298 298 * 299 * @global string $wp_version300 299 * @global string $tinymce_version 301 300 * 302 301 * @param string $editor_id … … 303 302 * @param array $set 304 303 */ 305 304 public static function editor_settings($editor_id, $set) { 306 global $ wp_version, $tinymce_version;305 global $tinymce_version; 307 306 308 307 if ( empty(self::$first_init) ) { 309 308 if ( is_admin() ) { … … 559 558 } 560 559 561 560 $suffix = SCRIPT_DEBUG ? '' : '.min'; 562 $version = 'ver=' . $wp_version;561 $version = 'ver=' . get_bloginfo( 'version' ); 563 562 $dashicons = includes_url( "css/dashicons$suffix.css?$version" ); 564 563 565 564 // WordPress default stylesheet and dashicons … … 1131 1130 /** 1132 1131 * 1133 1132 * @static 1134 * @global string $wp_version1135 1133 * @global string $tinymce_version 1136 1134 * @global bool $concatenate_scripts 1137 1135 * @global bool $compress_scripts 1138 1136 */ 1139 1137 public static function editor_js() { 1140 global $ wp_version, $tinymce_version, $concatenate_scripts, $compress_scripts;1138 global $tinymce_version, $concatenate_scripts, $compress_scripts; 1141 1139 1142 1140 /** 1143 1141 * Filters "tiny_mce_version" is deprecated … … 1215 1213 1216 1214 $baseurl = self::$baseurl; 1217 1215 // Load tinymce.js when running from /src, else load wp-tinymce.js.gz (production) or tinymce.min.js (SCRIPT_DEBUG) 1218 $mce_suffix = false !== strpos( $wp_version, '-src' ) ? '' : '.min';1216 $mce_suffix = false !== strpos( get_bloginfo( 'version' ), '-src' ) ? '' : '.min'; 1219 1217 1220 1218 if ( $tmce_on ) { 1221 1219 if ( $compressed ) { -
src/wp-includes/class-wp-locale.php
125 125 * @access private 126 126 * 127 127 * @global string $text_direction 128 * @global string $wp_version129 128 */ 130 129 public function init() { 131 130 // The Weekdays … … 231 230 elseif ( 'rtl' == _x( 'ltr', 'text direction' ) ) 232 231 $this->text_direction = 'rtl'; 233 232 234 if ( 'rtl' === $this->text_direction && strpos( $GLOBALS['wp_version'], '-src' ) ) {233 if ( 'rtl' === $this->text_direction && strpos( get_bloginfo( 'version' ), '-src' ) ) { 235 234 $this->text_direction = 'ltr'; 236 235 add_action( 'all_admin_notices', array( $this, 'rtl_src_admin_notice' ) ); 237 236 } -
src/wp-includes/class-wp-xmlrpc-server.php
413 413 * Passes property through {@see 'xmlrpc_blog_options'} filter. 414 414 * 415 415 * @since 2.6.0 416 *417 * @global string $wp_version418 416 */ 419 417 public function initialise_blog_option_info() { 420 global $wp_version;421 422 418 $this->blog_options = array( 423 419 // Read only options 424 420 'software_name' => array( … … 429 425 'software_version' => array( 430 426 'desc' => __( 'Software Version' ), 431 427 'readonly' => true, 432 'value' => $wp_version428 'value' => get_bloginfo( 'version' ) 433 429 ), 434 430 'blog_url' => array( 435 431 'desc' => __( 'WordPress Address (URL)' ), … … 6186 6182 * 6187 6183 * @since 1.5.0 6188 6184 * 6189 * @global string $wp_version6190 *6191 6185 * @param array $args { 6192 6186 * Method arguments. Note: arguments must be ordered as documented. 6193 6187 * … … 6197 6191 * @return string|IXR_Error 6198 6192 */ 6199 6193 public function pingback_ping( $args ) { 6200 global $wp_version;6201 6202 6194 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ 6203 6195 do_action( 'xmlrpc_call', 'pingback.ping' ); 6204 6196 … … 6285 6277 $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] ); 6286 6278 6287 6279 /** This filter is documented in wp-includes/class-http.php */ 6288 $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version. '; ' . get_bloginfo( 'url' ) );6280 $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) ); 6289 6281 6290 6282 // Let's check the remote site 6291 6283 $http_api_args = array( -
src/wp-includes/comment.php
2362 2362 * 2363 2363 * @since 0.71 2364 2364 * 2365 * @global string $wp_version2366 *2367 2365 * @param string $content Post content to check for links. 2368 2366 * @param int $post_ID Post ID. 2369 2367 */ 2370 2368 function pingback($content, $post_ID) { 2371 global $wp_version;2372 2373 2369 // original code by Mort (http://mort.mine.nu:8080) 2374 2370 $post_links = array(); 2375 2371 … … 2435 2431 * @param string $pagelinkedto URL of page linked to. 2436 2432 * @param string $pagelinkedfrom URL of page linked from. 2437 2433 */ 2438 $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom );2434 $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . get_bloginfo( 'version' ), $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom ); 2439 2435 // when set to true, this outputs debug messages by itself 2440 2436 $client->debug = false; 2441 2437 … … 2504 2500 * 2505 2501 * @since 1.2.0 2506 2502 * 2507 * @global string $wp_version2508 *2509 2503 * @param string $server Host of blog to connect to. 2510 2504 * @param string $path Path to send the ping. 2511 2505 */ 2512 2506 function weblog_ping($server = '', $path = '') { 2513 global $wp_version;2514 2515 2507 // using a timeout of 3 seconds should be enough to cover slow servers 2516 2508 $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); 2517 2509 $client->timeout = 3; 2518 $client->useragent .= ' -- WordPress/' .$wp_version;2510 $client->useragent .= ' -- WordPress/' . get_bloginfo( 'version' ); 2519 2511 2520 2512 // when set to true, this outputs debug messages by itself 2521 2513 $client->debug = false; -
src/wp-includes/formatting.php
4927 4927 * @ignore 4928 4928 * @since 4.6.0 4929 4929 * @access private 4930 *4931 * @global string $wp_version WordPress version string.4932 4930 */ 4933 4931 function _print_emoji_detection_script() { 4934 global $wp_version;4935 4936 4932 $settings = array( 4937 4933 /** 4938 4934 * Filters the URL where emoji png images are hosted. … … 4971 4967 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ), 4972 4968 ); 4973 4969 4974 $version = 'ver=' . $wp_version;4970 $version = 'ver=' . get_bloginfo( 'version' ); 4975 4971 4976 4972 if ( SCRIPT_DEBUG ) { 4977 4973 $settings['source'] = array( -
src/wp-includes/general-template.php
3344 3344 * Registers the default Admin color schemes 3345 3345 * 3346 3346 * @since 3.0.0 3347 *3348 * @global string $wp_version3349 3347 */ 3350 3348 function register_admin_color_schemes() { 3351 3349 $suffix = is_rtl() ? '-rtl' : ''; … … 3358 3356 ); 3359 3357 3360 3358 // Other color schemes are not available when running out of src 3361 if ( false !== strpos( $GLOBALS['wp_version'], '-src' ) )3359 if ( false !== strpos( get_bloginfo( 'version' ), '-src' ) ) { 3362 3360 return; 3361 } 3363 3362 3364 3363 wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ), 3365 3364 admin_url( "css/colors/light/colors$suffix.css" ), -
src/wp-includes/link-template.php
2897 2897 * 2898 2898 * @since 2.6.0 2899 2899 * 2900 * @global bool $is_IE Whether the browser matches an Internet Explorer user agent. 2901 * @global string $wp_version WP version. 2902 * 2903 * @global bool $is_IE 2904 * @global string $wp_version 2900 * @global bool $is_IE Whether the browser matches an Internet Explorer user agent. 2905 2901 * @global WP_Press_This $wp_press_this 2906 2902 * 2907 2903 * @return string The Press This bookmarklet link URL. 2908 2904 */ 2909 2905 function get_shortcut_link() { 2910 global $is_IE , $wp_version;2906 global $is_IE; 2911 2907 2912 2908 $GLOBALS['wp_press_this'] = new WP_Press_This(); 2913 2909 $bookmarklet_version = $GLOBALS['wp_press_this']->version; -
src/wp-includes/media.php
3810 3810 * 3811 3811 * @since 4.0.0 3812 3812 * 3813 * @global string $wp_version3814 *3815 3813 * @return array The relevant CSS file URLs. 3816 3814 */ 3817 3815 function wpview_media_sandbox_styles() { 3818 $version = 'ver=' . $GLOBALS['wp_version'];3816 $version = 'ver=' . get_bloginfo( 'version' ); 3819 3817 $mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" ); 3820 3818 $wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" ); 3821 3819