Make WordPress Core

Ticket #49239: export.php.patch

File export.php.patch, 1.1 KB (added by pikamander2, 6 years ago)
  • export.php

     
    6262if ( isset( $_GET['download'] ) ) {
    6363        $args = array();
    6464
    65         if ( ! isset( $_GET['content'] ) || 'all' == $_GET['content'] ) {
     65        if ( ! isset( $_GET['content'] ) || 'all' === $_GET['content'] ) {
    6666                $args['content'] = 'all';
    67         } elseif ( 'posts' == $_GET['content'] ) {
     67        } elseif ( 'posts' === $_GET['content'] ) {
    6868                $args['content'] = 'post';
    6969
    7070                if ( $_GET['cat'] ) {
     
    8383                if ( $_GET['post_status'] ) {
    8484                        $args['status'] = $_GET['post_status'];
    8585                }
    86         } elseif ( 'pages' == $_GET['content'] ) {
     86        } elseif ( 'pages' === $_GET['content'] ) {
    8787                $args['content'] = 'page';
    8888
    8989                if ( $_GET['page_author'] ) {
     
    9898                if ( $_GET['page_status'] ) {
    9999                        $args['status'] = $_GET['page_status'];
    100100                }
    101         } elseif ( 'attachment' == $_GET['content'] ) {
     101        } elseif ( 'attachment' === $_GET['content'] ) {
    102102                $args['content'] = 'attachment';
    103103
    104104                if ( $_GET['attachment_start_date'] || $_GET['attachment_end_date'] ) {