Changeset 1940 for trunk/wp-admin/edit.php
- Timestamp:
- 12/12/2004 08:41:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r1889 r1940 5 5 $parent_file = 'edit.php'; 6 6 require_once('admin-header.php'); 7 8 $_GET['m'] = (int) $_GET['m']; 7 9 8 10 get_currentuserinfo(); … … 66 68 echo $month[substr( $_GET['m'], 4, 2 )] . ' ' . substr( $_GET['m'], 0, 4 ); 67 69 } elseif ( isset( $_GET['s'] ) ) { 68 printf(__('Search for “%s”'), htmlspecialchars($_GET['s']) );70 printf(__('Search for “%s”'), wp_specialchars($_GET['s']) ); 69 71 } else { 70 72 _e('Last 15 Posts'); … … 91 93 $arc_month = $arc_row->mmonth; 92 94 93 if( isset($_GET['m']) && $arc_year . zeroise($arc_month, 2) == $_GET['m'] )95 if( isset($_GET['m']) && $arc_year . zeroise($arc_month, 2) == (int) $_GET['m'] ) 94 96 $default = 'selected="selected"'; 95 97 else … … 122 124 <?php 123 125 $what_to_show = 'posts'; 124 if ( empty($_GET['m']) && empty($_GET['s']) ) {126 if ( empty($_GET['m']) || 0 == $_GET['m'] && empty($_GET['s']) ) { 125 127 $showposts = 15; 126 128 } else {
Note: See TracChangeset
for help on using the changeset viewer.