Make WordPress Core

Ticket #46418: 46418.2.diff

File 46418.2.diff, 1.3 KB (added by garrett-eclipse, 5 years ago)

Updated all instances of die to wp_die in class-wp-list-table.php

  • src/wp-admin/includes/class-wp-list-table.php

     
    251251         * @abstract
    252252         */
    253253        public function ajax_user_can() {
    254                 die( 'function WP_List_Table::ajax_user_can() must be over-ridden in a sub-class.' );
     254                wp_die( 'function WP_List_Table::ajax_user_can() must be over-ridden in a sub-class.' );
    255255        }
    256256
    257257        /**
     
    263263         * @abstract
    264264         */
    265265        public function prepare_items() {
    266                 die( 'function WP_List_Table::prepare_items() must be over-ridden in a sub-class.' );
     266                wp_die( 'function WP_List_Table::prepare_items() must be over-ridden in a sub-class.' );
    267267        }
    268268
    269269        /**
     
    905905         * @return array
    906906         */
    907907        public function get_columns() {
    908                 die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
     908                wp_die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
    909909        }
    910910
    911911        /**
     
    13801380                        $response['total_pages_i18n'] = number_format_i18n( $this->_pagination_args['total_pages'] );
    13811381                }
    13821382
    1383                 die( wp_json_encode( $response ) );
     1383                wp_die( wp_json_encode( $response ) );
    13841384        }
    13851385
    13861386        /**