Ticket #49239: export.php.patch
| File export.php.patch, 1.1 KB (added by , 6 years ago) |
|---|
-
export.php
62 62 if ( isset( $_GET['download'] ) ) { 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 70 70 if ( $_GET['cat'] ) { … … 83 83 if ( $_GET['post_status'] ) { 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 89 89 if ( $_GET['page_author'] ) { … … 98 98 if ( $_GET['page_status'] ) { 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 104 104 if ( $_GET['attachment_start_date'] || $_GET['attachment_end_date'] ) {