[wp-trac] [WordPress Trac] #35982: The new feature 'site logo' is not working on-the-fly (postMessage)
WordPress Trac
noreply at wordpress.org
Thu Jul 28 15:01:24 UTC 2016
#35982: The new feature 'site logo' is not working on-the-fly (postMessage)
--------------------------+--------------------------
Reporter: sidati | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: trunk
Severity: normal | Resolution: invalid
Keywords: | Focuses: javascript
--------------------------+--------------------------
Comment (by dgwyer):
I just tried the code:
{{{
add_action( 'customize_register', function( $wp_customize ) {
$wp_customize->selective_refresh->get_partial( 'site_logo'
)->fallback_refresh = false;
}, 20 );
}}}
And keep getting the error: "WARNING: CREATING DEFAULT OBJECT FROM EMPTY
VALUE IN [path ommitted] ON LINE 15".
This is a local development setup of WordPress running WP 4.6-RC1-38170,
and PHP 5.5.24. I assume the code is correct (it's exactly what Weston
posted above). If so why am I seeing this error? I know I can ignore it
but I'd prefer not to see any errors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35982#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list