[wp-trac] [WordPress Trac] #18693: New feature pointers

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 20 19:49:30 UTC 2011


#18693: New feature pointers
----------------------------+--------------------------
 Reporter:  jane            |       Owner:  koopersmith
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.3
Component:  UI              |     Version:  3.3
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------------

Comment (by DrewAPicture):

 Replying to [comment:79 ocean90]:
 > [attachment:18693.more-pointers.patch] is my concept how we could handle
 more pointers.
 >  - Save pointers into an array {{{pointer_id => hook_suffix}}}
 >  - Get dismissed pointers => array_diff()
 >  - Print pointers
 >   - Before: Check if $hook_suffix is the right one
 >   - ''Callback'' function would be _wp_pointer_print_{pointer ID (
 s/-/_/}
 >
 > To avoid code duplication I added {{{_wp_pointer_javascript()}}} which
 accepts 4 args.


 Nice work ocean90!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18693#comment:81>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list