Make WordPress Core


Ignore:
Timestamp:
08/09/2008 05:36:14 AM (18 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r8589 r8600  
    845845        if ( '' == $text ) {
    846846                $text = get_the_content('');
    847                
    848                 $text = strip_shortcodes( $text ); 
    849                
     847
     848                $text = strip_shortcodes( $text );
     849
    850850                $text = apply_filters('the_content', $text);
    851851                $text = str_replace(']]>', ']]>', $text);
    … …  
    14371437function links_add_base_url( $content, $base, $attrs = array('src', 'href') ) {
    14381438        $attrs = implode('|', (array)$attrs);
    1439         return preg_replace_callback("!($attrs)=(['\"])(.+?)\\2!i", 
     1439        return preg_replace_callback("!($attrs)=(['\"])(.+?)\\2!i",
    14401440                        create_function('$m', 'return _links_add_base($m, "' . $base . '");'),
    14411441                        $content);
    … …  
    14561456function _links_add_base($m, $base) {
    14571457        //1 = attribute name  2 = quotation mark  3 = URL
    1458         return $m[1] . '=' . $m[2] . 
     1458        return $m[1] . '=' . $m[2] .
    14591459                (strpos($m[3], 'http://') === false ?
    14601460                        path_join($base, $m[3]) :
    … …  
    14661466 * Adds a Target attribute to all links in passed content.
    14671467 *
    1468  * This function by default only applies to <a> tags, 
     1468 * This function by default only applies to <a> tags,
    14691469 * however this can be modified by the 3rd param.
    14701470 * NOTE: Any current target attributed will be striped and replaced.
    … …  
    14801480function links_add_target( $content, $target = '_blank', $tags = array('a') ) {
    14811481        $tags = implode('|', (array)$tags);
    1482         return preg_replace_callback("!<($tags)(.+?)>!i", 
     1482        return preg_replace_callback("!<($tags)(.+?)>!i",
    14831483                        create_function('$m', 'return _links_add_target($m, "' . $target . '");'),
    14841484                        $content);
Note: See TracChangeset for help on using the changeset viewer.