Make WordPress Core


Ignore:
Timestamp:
07/03/2013 10:36:13 PM (12 years ago)
Author:
ocean90
Message:

Lose content removal and splitting from get_content_url(). And remove unneeded lines from [24400].

fixes #24484.

File:
1 edited

Legend:

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

    r24550 r24554  
    24252425                            if ( ! $matched )
    24262426                                $matched = do_shortcode_tag( $shortcode );
    2427                             // $content = str_replace( $shortcode[0], '', $content, $count );
    24282427                        }
    24292428                    }
     
    24392438                            if ( ! $matched )
    24402439                                $matched = $match[0];
    2441                             // $content = str_replace( $match[0], '', $content, $count );
    24422440                        }
    24432441                    }
     
    25062504        return $attachment_id;
    25072505
    2508     $classes = $matches[2]; 
    2509     if ( ! empty( $classes ) && false !== strpos( $classes, 'wp-image-' ) ) 
    2510         if ( preg_match( '#wp-image-([0-9]+)#i', $classes, $matches ) ) 
     2506    $classes = $matches[2];
     2507    if ( ! empty( $classes ) && false !== strpos( $classes, 'wp-image-' ) )
     2508        if ( preg_match( '#wp-image-([0-9]+)#i', $classes, $matches ) )
    25112509            $attachment_id = absint( $matches[1] );
    25122510
Note: See TracChangeset for help on using the changeset viewer.