[wp-trac] [WordPress Trac] #34130: Thickbox previous arrow

WordPress Trac noreply at wordpress.org
Mon Oct 5 15:44:05 UTC 2015


#34130: Thickbox previous arrow
-------------------------------------------------+-------------------------
 Reporter:  Eric3D                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  External Libraries                   |  Review
 Severity:  minor                                |     Version:  4.3.1
 Keywords:  has-patch needs-testing reporter-    |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by Eric3D):

 @helen, I just enqueue the script in functions.php
 {{{
 function include_thickbox_scripts()
 {
     wp_enqueue_script('thickbox', null, array('jquery'));
 }
 add_action('wp_enqueue_scripts', 'include_thickbox_scripts');
 }}}
 Then I use jQuery to add ''class'' and ''rel'' value to the WP gallery
 items
 {{{
 $(".gallery-icon a").addClass("thickbox").attr("rel","gallery");
 }}}
 I understand it's no longer used in core, but some plugins still use it.

 @swissspidy, I understand Thickbox is old and not updated. I did not find
 an official Github (or other) depository for it. Since the thread you
 refer accepted the change, the file bundled in core is NO LONGER the same
 as the original. Would it make sense to create a separate branch as
 "WordPress Thickbox"?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34130#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list