Changeset 5605 for branches/2.2/wp-includes/widgets.php
- Timestamp:
- 05/31/2007 01:57:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-includes/widgets.php
r5535 r5605 333 333 $title = empty( $options['title'] ) ? __( 'Pages' ) : $options['title']; 334 334 $sortby = empty( $options['sortby'] ) ? 'menu_order' : $options['sortby']; 335 $exclude = empty( $options['exclude'] ) ? '' : '&exclude=' . $options['exclude']; 335 336 336 337 if ( $sortby == 'menu_order' ) { … … 338 339 } 339 340 340 $out = wp_list_pages( 'title_li=&echo=0&sort_column=' . $sortby );341 $out = wp_list_pages( 'title_li=&echo=0&sort_column=' . $sortby . $exclude ); 341 342 342 343 if ( !empty( $out ) ) { … … 364 365 $newoptions['sortby'] = 'menu_order'; 365 366 } 367 368 $newoptions['exclude'] = strip_tags( stripslashes( $_POST['pages-exclude'] ) ); 366 369 } 367 370 if ( $options != $newoptions ) { … … 370 373 } 371 374 $title = attribute_escape($options['title']); 375 $exclude = attribute_escape( $options['exclude'] ); 372 376 ?> 373 377 <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> … … 378 382 <option value="ID"<?php selected( $options['sortby'], 'ID' ); ?>><?php _e( 'Page ID' ); ?></option> 379 383 </select></label></p> 384 <p><label for="pages-exclude"><?php _e( 'Exclude:' ); ?> <input type="text" value="<?php echo $exclude; ?>" name="pages-exclude" id="pages-exclude" style="width: 180px;" /></label><br /> 385 <small><?php _e( 'Page IDs, separated by commas.' ); ?></small></p> 380 386 <input type="hidden" id="pages-submit" name="pages-submit" value="1" /> 381 387 <?php … … 957 963 $class = array('classname' => 'widget_pages'); 958 964 wp_register_sidebar_widget('pages', __('Pages'), 'wp_widget_pages', $class); 959 wp_register_widget_control('pages', __('Pages'), 'wp_widget_pages_control', $dims 90);965 wp_register_widget_control('pages', __('Pages'), 'wp_widget_pages_control', $dims150); 960 966 $class['classname'] = 'widget_calendar'; 961 967 wp_register_sidebar_widget('calendar', __('Calendar'), 'wp_widget_calendar', $class);
Note: See TracChangeset
for help on using the changeset viewer.