WordPress.org

Make WordPress Core

Changeset 28734


Ignore:
Timestamp:
06/11/14 16:17:56 (3 years ago)
Author:
wonderboymusic
Message:

Don't use a variable variable in wp_widget_rss_form(). Sidenote: the logic to show hidden fields is bizarre - would result in duplicate fields.

See #27881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-widgets.php

    r28586 r28734  
    11541154            $id = str_replace( '_', '-', $input ); 
    11551155?> 
    1156     <input type="hidden" id="rss-<?php echo $id; ?>-<?php echo $number; ?>" name="widget-rss[<?php echo $number; ?>][<?php echo $input; ?>]" value="<?php echo $$input; ?>" /> 
     1156    <input type="hidden" id="rss-<?php echo $id; ?>-<?php echo $number; ?>" name="widget-rss[<?php echo $number; ?>][<?php echo $input; ?>]" value="<?php echo $inputs[ $input ]; ?>" /> 
    11571157<?php 
    11581158        endif; 
Note: See TracChangeset for help on using the changeset viewer.