Make WordPress Core


Ignore:
Timestamp:
03/02/2016 06:08:38 AM (10 years ago)
Author:
westonruter
Message:

Customize: Define params on WP_Customize_Partial::render_callback() for the sake of subclasses overriding this method.

Fixes a strict standards notice regarding the method signature needing to be compatible.

See #27355.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-partial.php

    r36689 r36801  
    273273     * @access public
    274274     *
     275     * @param WP_Customize_Partial $partial Partial.
     276     * @param array                $context Context.
    275277     * @return string|array|false
    276278     */
    277     public function render_callback() {
     279    public function render_callback( WP_Customize_Partial $partial, $context = array() ) {
     280        unset( $partial, $context );
    278281        return false;
    279282    }
Note: See TracChangeset for help on using the changeset viewer.