Make WordPress Core


Ignore:
Timestamp:
04/29/2013 02:48:31 PM (12 years ago)
Author:
nacin
Message:

Variables passed by reference do not need to be set first.

props kovshenin.
see #24222.

File:
1 edited

Legend:

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

    r24122 r24129  
    19091909function get_content_media( $type, &$content, $html = true, $remove = false, $limit = 0 ) {
    19101910    $items = array();
    1911     $matches = array();
    19121911
    19131912    if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) {
     
    19281927        return $items;
    19291928
    1930     $src = '';
    19311929    $data = array();
    19321930
     
    19591957function get_embedded_media( $type, &$content, $remove = false, $limit = 0 ) {
    19601958    $html = array();
    1961     $matches = '';
    19621959
    19631960    foreach ( array( $type, 'object', 'embed', 'iframe' ) as $tag ) {
     
    22072204 */
    22082205function get_content_images( &$content, $html = true, $remove = false, $limit = 0 ) {
    2209     $matches = array();
    22102206    $tags = array();
    22112207    $captions = array();
     
    22562252        return $tags;
    22572253
    2258     $src = '';
    22592254    $srcs = array();
    22602255
     
    23012296 */
    23022297function get_content_galleries( &$content, $html = true, $remove = false, $limit = 0 ) {
    2303     $src = '';
    23042298    $galleries = array();
    2305     $matches = array();
    23062299
    23072300    if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) {
     
    24942487
    24952488        $count = 1;
    2496         $matches = array();
    24972489        $content = $post->post_content;
    24982490
Note: See TracChangeset for help on using the changeset viewer.