Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r3852 r4144  
    5555<input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option('posts_per_page'); ?>" size="3" />
    5656<select name="what_to_show" id="what_to_show" >
    57 <option value="days" <?php selected('days', get_settings('what_to_show')); ?>><?php _e('days') ?></option>
    58 <option value="posts" <?php selected('posts', get_settings('what_to_show')); ?>><?php _e('posts') ?></option>
     57<option value="days" <?php selected('days', get_option('what_to_show')); ?>><?php _e('days') ?></option>
     58<option value="posts" <?php selected('posts', get_option('what_to_show')); ?>><?php _e('posts') ?></option>
    5959</select>
    6060</td>
     
    7373<th scope="row"><?php _e('For each article, show:') ?> </th>
    7474<td>
    75 <label><input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_settings('rss_use_excerpt')); ?>  /> <?php _e('Full text') ?></label><br />
    76 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_settings('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label>
     75<label><input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?>    /> <?php _e('Full text') ?></label><br />
     76<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label>
    7777</td>
    7878</tr>
     
    8787</table>
    8888<p>
    89 <label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_settings('gzipcompression')); ?> />
     89<label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_option('gzipcompression')); ?> />
    9090<?php _e('WordPress should compress articles (gzip) if browsers ask for them') ?></label>
    9191</p>
Note: See TracChangeset for help on using the changeset viewer.