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:
azaozz 2012-05-24 22:50:30 +00:00
parent 2f09b8d0a6
commit c4942fae11

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