WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2014 10:08:22 PM (6 years ago)
Author:
wonderboymusic
Message:

Fix mismatches in access modifiers for WP_List_Table + subclasses.

Fixes #28843, #28879.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r29133 r29137  
    334334     *
    335335     * @since 3.1.0
    336      * @access public
    337      */
    338     public function bulk_actions() {
     336     * @access protected
     337     */
     338    protected function bulk_actions() {
    339339        if ( is_null( $this->_actions ) ) {
    340340            $no_new_actions = $this->_actions = $this->get_bulk_actions();
     
    763763     *
    764764     * @since 3.1.0
    765      * @access protected
     765     * @access public
    766766     *
    767767     * @param bool $with_id Whether to set the id attribute or not
    768768     */
    769     protected function print_column_headers( $with_id = true ) {
     769    public function print_column_headers( $with_id = true ) {
    770770        list( $columns, $hidden, $sortable ) = $this->get_column_info();
    771771
     
    914914     *
    915915     * @since 3.1.0
    916      * @access protected
    917      */
    918     protected function display_rows_or_placeholder() {
     916     * @access public
     917     */
     918    public function display_rows_or_placeholder() {
    919919        if ( $this->has_items() ) {
    920920            $this->display_rows();
     
    930930     *
    931931     * @since 3.1.0
    932      * @access protected
    933      */
    934     protected function display_rows() {
     932     * @access public
     933     */
     934    public function display_rows() {
    935935        foreach ( $this->items as $item )
    936936            $this->single_row( $item );
     
    941941     *
    942942     * @since 3.1.0
    943      * @access protected
     943     * @access public
    944944     *
    945945     * @param object $item The current item
    946946     */
    947     protected function single_row( $item ) {
     947    public function single_row( $item ) {
    948948        static $row_class = '';
    949949        $row_class = ( $row_class == '' ? ' class="alternate"' : '' );
     
    10291029     * Send required variables to JavaScript land
    10301030     *
    1031      * @access private
    1032      */
    1033     private function _js_vars() {
     1031     * @access public
     1032     */
     1033    public function _js_vars() {
    10341034        $args = array(
    10351035            'class'  => get_class( $this ),
Note: See TracChangeset for help on using the changeset viewer.