Changeset 47785 for trunk/src/wp-admin/export.php
- Timestamp:
- 05/12/2020 06:30:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/export.php
r47272 r47785 63 63 $args = array(); 64 64 65 if ( ! isset( $_GET['content'] ) || 'all' == $_GET['content'] ) {65 if ( ! isset( $_GET['content'] ) || 'all' === $_GET['content'] ) { 66 66 $args['content'] = 'all'; 67 } elseif ( 'posts' == $_GET['content'] ) {67 } elseif ( 'posts' === $_GET['content'] ) { 68 68 $args['content'] = 'post'; 69 69 … … 84 84 $args['status'] = $_GET['post_status']; 85 85 } 86 } elseif ( 'pages' == $_GET['content'] ) {86 } elseif ( 'pages' === $_GET['content'] ) { 87 87 $args['content'] = 'page'; 88 88 … … 99 99 $args['status'] = $_GET['page_status']; 100 100 } 101 } elseif ( 'attachment' == $_GET['content'] ) {101 } elseif ( 'attachment' === $_GET['content'] ) { 102 102 $args['content'] = 'attachment'; 103 103 … … 145 145 WHERE post_type = %s AND post_status != 'auto-draft' 146 146 ORDER BY post_date DESC 147 ",147 ", 148 148 $post_type 149 149 ) … … 151 151 152 152 $month_count = count( $months ); 153 if ( ! $month_count || ( 1 == $month_count && 0 ==$months[0]->month ) ) {153 if ( ! $month_count || ( 1 === $month_count && 0 === (int) $months[0]->month ) ) { 154 154 return; 155 155 } 156 156 157 157 foreach ( $months as $date ) { 158 if ( 0 == $date->year ) {158 if ( 0 === (int) $date->year ) { 159 159 continue; 160 160 }
Note: See TracChangeset
for help on using the changeset viewer.