mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Pointers: fix check for defer_loading, fixes #20554
git-svn-id: http://core.svn.wordpress.org/trunk@20891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f09b8d0a6
commit
c4942fae11
@ -1785,7 +1785,7 @@ final class WP_Internal_Pointers {
|
||||
$('<?php echo $selector; ?>').pointer( options ).pointer('open');
|
||||
};
|
||||
|
||||
if ( options.defer_loading )
|
||||
if ( options.position && options.position.defer_loading )
|
||||
$(window).bind( 'load.wp-pointers', setup );
|
||||
else
|
||||
$(document).ready( setup );
|
||||
|
Loading…
Reference in New Issue
Block a user