Select the option if it's set to that. fixes #4291

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-19 04:26:02 +00:00
parent 3d8f9289cb
commit d6dba8fab8
1 changed files with 3 additions and 3 deletions

View File

@ -373,9 +373,9 @@ function wp_widget_pages_control() {
<p><label for="pages-title"><?php _e('Title:'); ?> <input style="width: 250px;" id="pages-title" name="pages-title" type="text" value="<?php echo $title; ?>" /></label></p> <p><label for="pages-title"><?php _e('Title:'); ?> <input style="width: 250px;" id="pages-title" name="pages-title" type="text" value="<?php echo $title; ?>" /></label></p>
<p><label for="pages-sortby"><?php _e( 'Sort by:' ); ?> <p><label for="pages-sortby"><?php _e( 'Sort by:' ); ?>
<select name="pages-sortby" id="pages-sortby"> <select name="pages-sortby" id="pages-sortby">
<option value="post_title"><?php _e('Page title'); ?></option> <option value="post_title"<?php if ( $options['sortby'] == 'post_title' ) { ?> selected="selected"<?php } ?>><?php _e('Page title'); ?></option>
<option value="menu_order"><?php _e('Menu order'); ?></option> <option value="menu_order"<?php if ( $options['sortby'] == 'menu_order' ) { ?> selected="selected"<?php } ?>><?php _e('Menu order'); ?></option>
<option value="ID"><?php _e( 'Page ID' ); ?></option> <option value="ID"<?php if ( $options['sortby'] == 'ID' ) { ?> selected="selected"<?php } ?>><?php _e( 'Page ID' ); ?></option>
</select></label></p> </select></label></p>
<input type="hidden" id="pages-submit" name="pages-submit" value="1" /> <input type="hidden" id="pages-submit" name="pages-submit" value="1" />
<?php <?php