Changeset 47550 for trunk/src/wp-includes/widgets/class-wp-widget-pages.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-pages.php
r47122 r47550 112 112 $instance = $old_instance; 113 113 $instance['title'] = sanitize_text_field( $new_instance['title'] ); 114 if ( in_array( $new_instance['sortby'], array( 'post_title', 'menu_order', 'ID' ) ) ) {114 if ( in_array( $new_instance['sortby'], array( 'post_title', 'menu_order', 'ID' ), true ) ) { 115 115 $instance['sortby'] = $new_instance['sortby']; 116 116 } else {
Note: See TracChangeset
for help on using the changeset viewer.