[wp-trac] [WordPress Trac] #18693: New feature pointers
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 21 19:38:44 UTC 2011
#18693: New feature pointers
----------------------------+--------------------------
Reporter: jane | Owner: koopersmith
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.3
Component: UI | Version: 3.3
Severity: normal | Resolution:
Keywords: needs-patch |
----------------------------+--------------------------
Comment (by nacin):
Replying to [comment:5 azaozz]:
> Looking at [18707]: not sure where wp-pointer.js comes from and why it's
not in wp-includes/js/jquery together withe the other UI pieces or in wp-
admin/js if it's ours. Also why `wp_pointer_enqueue()` has the
`$hook_suffix` arg?
wp_pointer_enqueue() is attached to admin_enqueue_scripts, which passes us
a $hook_suffix. While constructing the API I left that in, as future
pointers may have page-targeted pointers.
wp-pointer, as indicated by the suffix, is hours. wp-includes/js/jquery
should probably be reserved for external scripts. wp-includes/js was
chosen because there's nothing stopping this from being used on the
frontend, either in a walkthrough or by a plugin.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18693#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list