Make WordPress Core


Ignore:
Timestamp:
03/02/2016 06:08:38 AM (9 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/tests/phpunit/tests/customize/partial.php

    r36784 r36801  
    269269    function test_render_callback_default() {
    270270        $partial = new WP_Customize_Partial( $this->selective_refresh, 'foo' );
    271         $this->assertFalse( $partial->render_callback() );
    272         $this->assertFalse( call_user_func( $partial->render_callback ) );
     271        $this->assertFalse( $partial->render_callback( $partial, array() ) );
     272        $this->assertFalse( call_user_func( $partial->render_callback, $partial, array() ) );
    273273    }
    274274
Note: See TracChangeset for help on using the changeset viewer.