Make WordPress Core

Changeset 34128


Ignore:
Timestamp:
09/14/2015 08:28:29 PM (11 years ago)
Author:
wonderboymusic
Message:

In WP_List_Table, make a new public method, ->get_primary_column(), and revert [34101] due to BC issues.

Fixes #33854.

Location:
trunk/src/wp-admin/includes
Files:
3 edited

Legend:

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

    r34101 r34128  
    889889        }
    890890
     891        public function get_primary_column() {
     892                return $this->get_primary_column_name();
     893        }
     894
    891895        /**
    892896         * Gets the name of the primary column.
     
    897901         * @return string The name of the primary column.
    898902         */
    899         public function get_primary_column_name() {
     903        protected function get_primary_column_name() {
    900904                $columns = $this->get_columns();
    901905                $default = $this->get_default_primary_column_name();
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r34101 r34128  
    253253         * @return string Unalterable name of the primary column name, in this case, 'name'.
    254254         */
    255         public function get_primary_column_name() {
     255        protected function get_primary_column_name() {
    256256                return 'name';
    257257        }
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r34101 r34128  
    725725         * @return string Unalterable name for the primary column, in this case, 'name'.
    726726         */
    727         public function get_primary_column_name() {
     727        protected function get_primary_column_name() {
    728728                return 'name';
    729729        }
Note: See TracChangeset for help on using the changeset viewer.