Changeset 44566
- Timestamp:
- 01/11/2019 06:39:55 AM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r43571 r44566 204 204 */ 205 205 function wxr_site_url() { 206 // Multisite: the base URL.207 206 if ( is_multisite() ) { 207 // Multisite: the base URL. 208 208 return network_home_url(); 209 } // WordPress (single site): the blog URL.210 else {209 } else { 210 // WordPress (single site): the blog URL. 211 211 return get_bloginfo_rss( 'url' ); 212 212 } -
trunk/src/wp-admin/includes/image.php
r44385 r44566 216 216 } 217 217 } 218 } // Try to create image thumbnails for PDFs 219 elseif ( 'application/pdf' === $mime_type ) { 218 } elseif ( 'application/pdf' === $mime_type ) { 219 // Try to create image thumbnails for PDFs. 220 220 221 $fallback_sizes = array( 221 222 'thumbnail', -
trunk/src/wp-admin/update-core.php
r44451 r44566 40 40 if ( 'en_US' == $update->locale && 'en_US' == get_locale() ) { 41 41 $version_string = $update->current; 42 } // If the only available update is a partial builds, it doesn't need a language-specific version string.43 elseif ( 'en_US' == $update->locale && $update->packages->partial && $wp_version == $update->partial_version && ( $updates = get_core_updates() ) && 1 == count( $updates ) ) {42 } elseif ( 'en_US' == $update->locale && $update->packages->partial && $wp_version == $update->partial_version && ( $updates = get_core_updates() ) && 1 == count( $updates ) ) { 43 // If the only available update is a partial builds, it doesn't need a language-specific version string. 44 44 $version_string = $update->current; 45 45 } else { … … 122 122 if ( 'en_US' != $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package != $update->locale ) ) { 123 123 echo '<p class="hint">' . __( 'This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.' ) . '</p>'; 124 } // Partial builds don't need language-specific warnings.125 elseif ( 'en_US' == $update->locale && get_locale() != 'en_US' && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) {124 } elseif ( 'en_US' == $update->locale && get_locale() != 'en_US' && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) { 125 // Partial builds don't need language-specific warnings. 126 126 echo '<p class="hint">' . sprintf( __( 'You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ), $update->response != 'development' ? $update->current : '' ) . '</p>'; 127 127 } -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r44382 r44566 456 456 if ( $next_id ) { 457 457 $next_attachment_url = get_attachment_link( $next_id ); 458 } // or get the URL of the first image attachment.459 else {458 } else { 459 // or get the URL of the first image attachment. 460 460 $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); 461 461 } -
trunk/src/wp-content/themes/twentythirteen/functions.php
r44382 r44566 588 588 if ( $next_id ) { 589 589 $next_attachment_url = get_attachment_link( $next_id ); 590 } // or get the URL of the first image attachment.591 else {590 } else { 591 // or get the URL of the first image attachment. 592 592 $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); 593 593 } -
trunk/src/wp-includes/class-wp-locale.php
r42718 r44566 217 217 if ( isset( $GLOBALS['text_direction'] ) ) { 218 218 $this->text_direction = $GLOBALS['text_direction']; 219 } /* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */ 220 elseif ( 'rtl' == _x( 'ltr', 'text direction' ) ) { 219 220 /* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */ 221 } elseif ( 'rtl' == _x( 'ltr', 'text direction' ) ) { 221 222 $this->text_direction = 'rtl'; 222 223 } -
trunk/src/wp-includes/class-wp-text-diff-renderer-table.php
r44129 r44566 390 390 if ( isset( $orig_matches[ $o ] ) ) { 391 391 $final_matches[ $f ] = 'x'; 392 } // Best match of this orig is already taken? Must mean this orig is a deleted row.393 elseif ( isset( $final_matches[ $f ] ) ) {392 } elseif ( isset( $final_matches[ $f ] ) ) { 393 // Best match of this orig is already taken? Must mean this orig is a deleted row. 394 394 $orig_matches[ $o ] = 'x'; 395 395 } -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r44166 r44566 2898 2898 if ( $page->ID && ( $page->post_type == 'page' ) ) { 2899 2899 return $this->_prepare_page( $page ); 2900 } // If the page doesn't exist indicate that.2901 else {2900 } else { 2901 // If the page doesn't exist indicate that. 2902 2902 return new IXR_Error( 404, __( 'Sorry, no such page.' ) ); 2903 2903 } -
trunk/src/wp-includes/formatting.php
r44556 r44566 2479 2479 $tag = ''; 2480 2480 // or close to be safe $tag = '/' . $tag; 2481 } // if stacktop value = tag close value then pop 2482 elseif ( $tagstack[ $stacksize - 1 ] == $tag ) { // found closing tag 2481 2482 // if stacktop value = tag close value then pop 2483 } elseif ( $tagstack[ $stacksize - 1 ] == $tag ) { // found closing tag 2483 2484 $tag = '</' . $tag . '>'; // Close Tag 2484 2485 // Pop … … 2506 2507 if ( '' == $tag ) { 2507 2508 // do nothing 2508 } // ElseIf it presents itself as a self-closing tag... 2509 elseif ( substr( $regex[2], -1 ) == '/' ) { 2509 } elseif ( substr( $regex[2], -1 ) == '/' ) { // ElseIf it presents itself as a self-closing tag... 2510 2510 // ...but it isn't a known single-entity self-closing tag, then don't let it be treated as such and 2511 2511 // immediately close it with a closing tag (the tag will encapsulate no text as a result) … … 2513 2513 $regex[2] = trim( substr( $regex[2], 0, -1 ) ) . "></$tag"; 2514 2514 } 2515 } // ElseIf it's a known single-entity tag but it doesn't close itself, do so 2516 elseif ( in_array( $tag, $single_tags ) ) { 2515 } elseif ( in_array( $tag, $single_tags ) ) { // ElseIf it's a known single-entity tag but it doesn't close itself, do so 2517 2516 $regex[2] .= '/'; 2518 } // Else it's not a single-entity tag 2519 else { 2517 } else { // Else it's not a single-entity tag 2520 2518 // If the top of the stack is the same as the tag we want to push, close previous tag 2521 2519 if ( $stacksize > 0 && ! in_array( $tag, $nestable_tags ) && $tagstack[ $stacksize - 1 ] == $tag ) { -
trunk/src/wp-includes/general-template.php
r44565 r44566 921 921 wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ) 922 922 ); 923 } // If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview).924 elseif ( is_customize_preview() ) {923 } elseif ( is_customize_preview() ) { 924 // If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview). 925 925 $html = sprintf( 926 926 '<a href="%1$s" class="custom-logo-link" style="display:none;"><img class="custom-logo"/></a>', -
trunk/src/wp-includes/load.php
r44524 r44566 69 69 if ( empty( $_SERVER['REQUEST_URI'] ) || ( PHP_SAPI != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { 70 70 71 // IIS Mod-Rewrite72 71 if ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ) { 72 // IIS Mod-Rewrite 73 73 $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL']; 74 } // IIS Isapi_Rewrite75 elseif ( isset( $_SERVER['HTTP_X_REWRITE_URL'] ) ) {74 } elseif ( isset( $_SERVER['HTTP_X_REWRITE_URL'] ) ) { 75 // IIS Isapi_Rewrite 76 76 $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL']; 77 77 } else { -
trunk/src/wp-includes/media.php
r44548 r44566 105 105 $max_width = min( intval( $content_width ), $max_width ); 106 106 } 107 } // $size == 'full' has no constraint 108 else { 107 } else { // $size == 'full' has no constraint 109 108 $max_width = $width; 110 109 $max_height = $height;
Note: See TracChangeset
for help on using the changeset viewer.