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:
Andrew Ozz
2012-05-24 22:50:30 +00:00
parent 779749b437
commit 82f26f5892

View File

@@ -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 );