Make WordPress Core

Changeset 31101


Ignore:
Timestamp:
01/08/2015 09:19:24 PM (10 years ago)
Author:
wonderboymusic
Message:

Overriding methods should do more than simply call the same method in the super class.

See #30799.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r31042 r31101  
    148148    public function no_items() {
    149149        _e( 'No media attachments found.' );
    150     }
    151 
    152     /**
    153      * @param string $which
    154      */
    155     protected function pagination( $which ) {
    156         parent::pagination( $which );
    157150    }
    158151
  • trunk/src/wp-admin/includes/class-wp-upgrader-skins.php

    r31090 r31101  
    318318    public $plugin_info = array(); // Plugin_Upgrader::bulk() will fill this in.
    319319
    320     public function __construct($args = array()) {
    321         parent::__construct($args);
    322     }
    323 
    324320    public function add_strings() {
    325321        parent::add_strings();
     
    361357class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
    362358    public $theme_info = array(); // Theme_Upgrader::bulk() will fill this in.
    363 
    364     public function __construct($args = array()) {
    365         parent::__construct($args);
    366     }
    367359
    368360    public function add_strings() {
  • trunk/src/wp-includes/class-wp-customize-control.php

    r31083 r31101  
    935935    }
    936936
    937     public function to_json() {
    938         parent::to_json();
    939     }
    940 
    941937    public function enqueue() {
    942938        wp_enqueue_media();
Note: See TracChangeset for help on using the changeset viewer.