Changeset 36801
- Timestamp:
- 03/02/2016 06:08:38 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-partial.php
r36689 r36801 273 273 * @access public 274 274 * 275 * @param WP_Customize_Partial $partial Partial. 276 * @param array $context Context. 275 277 * @return string|array|false 276 278 */ 277 public function render_callback() { 279 public function render_callback( WP_Customize_Partial $partial, $context = array() ) { 280 unset( $partial, $context ); 278 281 return false; 279 282 } -
trunk/tests/phpunit/tests/customize/partial.php
r36784 r36801 269 269 function test_render_callback_default() { 270 270 $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() ) ); 273 273 } 274 274
Note: See TracChangeset
for help on using the changeset viewer.