Make WordPress Core


Ignore:
Timestamp:
07/12/2014 03:26:40 AM (12 years ago)
Author:
wonderboymusic
Message:

Repent for our original OOP sins and doc blocks as pertains to access modifiers in List Table + subclasses.

Props SergeyBiryukov.
See #28843 and [28583].

File:
1 edited

Legend:

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

    r28976 r29118  
    539539     *
    540540     * @since 3.1.0
    541      * @access protected
     541     * @access public
    542542     *
    543543     * @return int
    544544     */
    545     protected function get_pagenum() {
     545    public function get_pagenum() {
    546546        $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;
    547547
     
    676676     *
    677677     * @since 3.1.0
    678      * @access protected
     678     * @access public
    679679     * @abstract
    680680     *
    681681     * @return array
    682682     */
    683     protected function get_columns() {
     683    public function get_columns() {
    684684        die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
    685685    }
Note: See TracChangeset for help on using the changeset viewer.