mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Pointers: fix check for defer_loading, fixes #20554
git-svn-id: https://develop.svn.wordpress.org/trunk@20891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user