Ticket #34535: remove_trailing_whitespace..diff
| File remove_trailing_whitespace..diff, 9.1 KB (added by , 10 years ago) |
|---|
-
src/wp-activate.php
117 117 </div> 118 118 119 119 <?php if ( $url && $url != network_home_url( '', 'http' ) ) : 120 switch_to_blog( (int) $result['blog_id'] ); 121 $login_url = wp_login_url(); 122 restore_current_blog(); 120 switch_to_blog( (int) $result['blog_id'] ); 121 $login_url = wp_login_url(); 122 restore_current_blog(); 123 123 ?> 124 124 <p class="view"><?php printf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), $url, esc_url( $login_url ) ); ?></p> 125 125 <?php else: ?> -
src/wp-admin/includes/class-ftp.php
818 818 function glob_regexp($pattern,$probe) { 819 819 $sensitive=(PHP_OS!='WIN32'); 820 820 return ($sensitive? 821 preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) : 821 preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) : 822 822 preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $probe ) 823 823 ); 824 824 } -
src/wp-admin/includes/class-wp-filesystem-base.php
559 559 * @access public 560 560 * @since 2.5.0 561 561 * @abstract 562 * 562 * 563 563 * @param string $file Path to the file. 564 564 * @return string|bool Username of the user or false on error. 565 565 */ -
src/wp-admin/includes/class-wp-filesystem-ssh2.php
163 163 164 164 /** 165 165 * @access public 166 * 166 * 167 167 * @param string $command 168 168 * @param bool $returnbool 169 169 * @return bool|string -
src/wp-admin/includes/class-wp-posts-list-table.php
490 490 * list table. 491 491 * 492 492 * @since 4.4.0 493 * 493 * 494 494 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. 495 495 */ 496 496 do_action( 'manage_posts_extra_tablenav', $which ); -
src/wp-admin/includes/class-wp-screen.php
998 998 * Filter whether to show the Screen Options submit button. 999 999 * 1000 1000 * @since 4.4.0 1001 * 1001 * 1002 1002 * @param bool $show_button Whether to show Screen Options submit button. 1003 1003 * Default false. 1004 1004 * @param WP_Screen $this Current WP_Screen instance. -
src/wp-admin/options-general.php
83 83 <tr> 84 84 <th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th> 85 85 <td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" /> 86 <?php if ( ! defined( 'WP_HOME' ) ) : ?> 86 <?php if ( ! defined( 'WP_HOME' ) ) : ?> 87 87 <p class="description" id="home-description"><?php _e( 'Enter the address here if you <a href="https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">want your site home page to be different from your WordPress installation directory.</a>' ); ?></p></td> 88 88 <?php endif; ?> 89 89 </tr> -
src/wp-includes/class-json.php
135 135 * bubble up with an error, so all return values 136 136 * from encode() should be checked with isError() 137 137 * - SERVICES_JSON_USE_TO_JSON: call toJSON when serializing objects 138 * It serializes the return value from the toJSON call rather 139 * than the object itself, toJSON can return associative arrays, 138 * It serializes the return value from the toJSON call rather 139 * than the object itself, toJSON can return associative arrays, 140 140 * strings or numbers, if you return an object, make sure it does 141 141 * not have a toJSON method, otherwise an error will occur. 142 142 */ … … 285 285 286 286 } 287 287 /** 288 * PRIVATE CODE that does the work of encodes an arbitrary variable into JSON format 288 * PRIVATE CODE that does the work of encodes an arbitrary variable into JSON format 289 289 * 290 290 * @param mixed $var any number, boolean, string, array, or object to be encoded. 291 291 * see argument 1 to Services_JSON() above for array-parsing behavior. … … 295 295 * @return mixed JSON string representation of input var or an error if a problem occurs 296 296 * @access public 297 297 */ 298 function _encode($var) 298 function _encode($var) 299 299 { 300 300 301 301 switch (gettype($var)) { … … 505 505 } 506 506 507 507 return $this->_encode( $recode ); 508 } 508 } 509 509 510 510 $vars = get_object_vars($var); 511 511 … … 882 882 883 883 /** 884 884 * Calculates length of string in bytes 885 * @param string 885 * @param string 886 886 * @return integer length 887 887 */ 888 function strlen8( $str ) 888 function strlen8( $str ) 889 889 { 890 890 if ( $this->_mb_strlen ) { 891 891 return mb_strlen( $str, "8bit" ); … … 895 895 896 896 /** 897 897 * Returns part of a string, interpreting $start and $length as number of bytes. 898 * @param string 899 * @param integer start 900 * @param integer length 898 * @param string 899 * @param integer start 900 * @param integer length 901 901 * @return integer length 902 902 */ 903 function substr8( $string, $start, $length=false ) 903 function substr8( $string, $start, $length=false ) 904 904 { 905 905 if ( $length === false ) { 906 906 $length = $this->strlen8( $string ) - $start; -
src/wp-includes/class-wp-walker.php
386 386 * 387 387 * @since 2.7.0 388 388 * @access public 389 * 389 * 390 390 * @param array $elements Elements to list. 391 391 * @return int Number of root elements. 392 392 */ -
src/wp-includes/js/crop/cropper.css
7 7 8 8 /* an extra classname is applied for Opera < 9.0 to fix its lack of opacity support */ 9 9 .imgCrop_wrap.opera8 .imgCrop_overlay, 10 .imgCrop_wrap.opera8 .imgCrop_clickArea { 10 .imgCrop_wrap.opera8 .imgCrop_clickArea { 11 11 background-color: transparent; 12 12 } 13 13 … … 28 28 29 29 .imgCrop_selArea { 30 30 position: absolute; 31 /* @done_in_js 31 /* @done_in_js 32 32 top: 20px; 33 33 left: 20px; 34 34 width: 200px; … … 96 96 cursor: n-resize; 97 97 } 98 98 99 .imgCrop_handleNE { 99 .imgCrop_handleNE { 100 100 top: -3px; 101 101 right: -3px; 102 102 cursor: ne-resize; … … 142 142 } 143 143 144 144 /** 145 * Create an area to click & drag around on as the default browser behaviour is to let you drag the image 145 * Create an area to click & drag around on as the default browser behaviour is to let you drag the image 146 146 */ 147 147 .imgCrop_dragArea { 148 148 width: 100%; … … 162 162 163 163 .imgCrop_previewWrap img { 164 164 position: absolute; 165 } 166 No newline at end of file 165 } -
src/wp-includes/theme-compat/sidebar.php
71 71 printf( __( 'You have searched the %1$s blog archives for <strong>‘%2$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.' ), 72 72 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), 73 73 esc_html( get_search_query() ) 74 ); 74 ); 75 75 ?></p> 76 76 77 77 <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?>