Make WordPress Core

Ticket #34535: remove_trailing_whitespace..diff

File remove_trailing_whitespace..diff, 9.1 KB (added by megane9988, 10 years ago)
  • src/wp-activate.php

     
    117117                        </div>
    118118
    119119                        <?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();
    123123                                ?>
    124124                                <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>
    125125                        <?php else: ?>
  • src/wp-admin/includes/class-ftp.php

     
    818818        function glob_regexp($pattern,$probe) {
    819819                $sensitive=(PHP_OS!='WIN32');
    820820                return ($sensitive?
    821                         preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) : 
     821                        preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) :
    822822                        preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $probe )
    823823                );
    824824        }
  • src/wp-admin/includes/class-wp-filesystem-base.php

     
    559559         * @access public
    560560         * @since 2.5.0
    561561         * @abstract
    562          * 
     562         *
    563563         * @param string $file Path to the file.
    564564         * @return string|bool Username of the user or false on error.
    565565         */
  • src/wp-admin/includes/class-wp-filesystem-ssh2.php

     
    163163
    164164        /**
    165165         * @access public
    166          * 
     166         *
    167167         * @param string $command
    168168         * @param bool $returnbool
    169169         * @return bool|string
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    490490                 * list table.
    491491                 *
    492492                 * @since 4.4.0
    493                  * 
     493                 *
    494494                 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
    495495                 */
    496496                do_action( 'manage_posts_extra_tablenav', $which );
  • src/wp-admin/includes/class-wp-screen.php

     
    998998                 * Filter whether to show the Screen Options submit button.
    999999                 *
    10001000                 * @since 4.4.0
    1001                  * 
     1001                 *
    10021002                 * @param bool      $show_button Whether to show Screen Options submit button.
    10031003                 *                               Default false.
    10041004                 * @param WP_Screen $this        Current WP_Screen instance.
  • src/wp-admin/options-general.php

     
    8383<tr>
    8484<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    8585<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' ) ) : ?>
    8787<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>
    8888<?php endif; ?>
    8989</tr>
  • src/wp-includes/class-json.php

     
    135135    *                                   bubble up with an error, so all return values
    136136    *                                   from encode() should be checked with isError()
    137137    *                           - 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,
    140140    *                                   strings or numbers, if you return an object, make sure it does
    141141    *                                   not have a toJSON method, otherwise an error will occur.
    142142    */
     
    285285       
    286286    }
    287287    /**
    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
    289289    *
    290290    * @param    mixed   $var    any number, boolean, string, array, or object to be encoded.
    291291    *                           see argument 1 to Services_JSON() above for array-parsing behavior.
     
    295295    * @return   mixed   JSON string representation of input var or an error if a problem occurs
    296296    * @access   public
    297297    */
    298     function _encode($var) 
     298    function _encode($var)
    299299    {
    300300         
    301301        switch (gettype($var)) {
     
    505505                    }
    506506                   
    507507                    return $this->_encode( $recode );
    508                 } 
     508                }
    509509               
    510510                $vars = get_object_vars($var);
    511511               
     
    882882   
    883883    /**
    884884    * Calculates length of string in bytes
    885     * @param string 
     885    * @param string
    886886    * @return integer length
    887887    */
    888     function strlen8( $str ) 
     888    function strlen8( $str )
    889889    {
    890890        if ( $this->_mb_strlen ) {
    891891            return mb_strlen( $str, "8bit" );
     
    895895   
    896896    /**
    897897    * 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
    901901    * @return integer length
    902902    */
    903     function substr8( $string, $start, $length=false ) 
     903    function substr8( $string, $start, $length=false )
    904904    {
    905905        if ( $length === false ) {
    906906            $length = $this->strlen8( $string ) - $start;
  • src/wp-includes/class-wp-walker.php

     
    386386         *
    387387         * @since 2.7.0
    388388         * @access public
    389          * 
     389         *
    390390         * @param array $elements Elements to list.
    391391         * @return int Number of root elements.
    392392         */
  • src/wp-includes/js/crop/cropper.css

     
    77
    88/* an extra classname is applied for Opera < 9.0 to fix its lack of opacity support */
    99.imgCrop_wrap.opera8 .imgCrop_overlay,
    10 .imgCrop_wrap.opera8 .imgCrop_clickArea { 
     10.imgCrop_wrap.opera8 .imgCrop_clickArea {
    1111        background-color: transparent;
    1212}
    1313
     
    2828
    2929.imgCrop_selArea {
    3030        position: absolute;
    31         /* @done_in_js 
     31        /* @done_in_js
    3232        top: 20px;
    3333        left: 20px;
    3434        width: 200px;
     
    9696        cursor: n-resize;
    9797}
    9898
    99 .imgCrop_handleNE { 
     99.imgCrop_handleNE {
    100100        top: -3px;
    101101        right: -3px;
    102102        cursor: ne-resize;
     
    142142}
    143143
    144144/**
    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
    146146 */
    147147.imgCrop_dragArea {
    148148        width: 100%;
     
    162162
    163163.imgCrop_previewWrap img {
    164164        position: absolute;
    165 }
    166  No newline at end of file
     165}
  • src/wp-includes/theme-compat/sidebar.php

     
    7171                                        printf( __( 'You have searched the %1$s blog archives for <strong>&#8216;%2$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.' ),
    7272                                                sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
    7373                                                esc_html( get_search_query() )
    74                                         ); 
     74                                        );
    7575                                ?></p>
    7676
    7777                        <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?>