WordPress.org

Make WordPress Core

Ticket #18817: wp-list-table-nonce.diff

File wp-list-table-nonce.diff, 878 bytes (added by bigdawggi, 7 years ago)

Patch to move the output of the nonce field for the WP_List_Class table to its own method

  • Users/bigdawggi/web/annotum/wp-admin/includes/class-wp-list-table.php

     
    750750         */
    751751        function display_tablenav( $which ) {
    752752                if ( 'top' == $which )
    753                         wp_nonce_field( 'bulk-' . $this->_args['plural'] );
     753                        $this->output_nonce_field();
    754754?>
    755755        <div class="tablenav <?php echo esc_attr( $which ); ?>">
    756756
     
    768768        }
    769769
    770770        /**
     771         * Outputs a nonce field for the table
     772         *
     773         * @access protected
     774         */
     775        function output_nonce_field() {
     776                wp_nonce_field( 'bulk-' . $this->_args['plural'] );
     777        }
     778
     779        /**
    771780         * Extra controls to be displayed between bulk actions and pagination
    772781         *
    773782         * @since 3.1.0