WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2007 11:32:58 PM (13 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r6015 r6026  
    1818    }
    1919
    20     $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '``', '\'s', '\'\'', ' (tm)'), $cockney); 
     20    $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '``', '\'s', '\'\'', ' (tm)'), $cockney);
    2121    $static_replacements = array_merge(array('—', ' — ', '–', 'xn--', '…', '“', '’s', '”', ' ™'), $cockneyreplace);
    2222
     
    132132        if ( $value < 128 ) {
    133133            if ( $length && ( strlen($unicode) + 1 > $length ) )
    134                 break; 
     134                break;
    135135            $unicode .= chr($value);
    136136        } else {
     
    651651        // HTML loop taken from texturize function, could possible be consolidated
    652652        $textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
    653         $stop = count($textarr);// loop stuff 
    654         for ($i = 0; $i < $stop; $i++) { 
    655             $content = $textarr[$i]; 
    656             if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag 
    657                 $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content); 
    658             } 
    659             $output .= $content; 
     653        $stop = count($textarr);// loop stuff
     654        for ($i = 0; $i < $stop; $i++) {
     655            $content = $textarr[$i];
     656            if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
     657                $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
     658            }
     659            $output .= $content;
    660660        }
    661661    } else {
     
    10861086    $url = str_replace(';//', '://', $url);
    10871087    /* If the URL doesn't appear to contain a scheme, we
    1088      * presume it needs http:// appended (unless a relative 
     1088     * presume it needs http:// appended (unless a relative
    10891089     * link starting with / or a php file).
    10901090    */
     
    10951095    $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&#038;$1', $url);
    10961096    if ( !is_array($protocols) )
    1097         $protocols = array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet'); 
     1097        $protocols = array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet');
    10981098    if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
    10991099        return '';
Note: See TracChangeset for help on using the changeset viewer.