Opened 19 years ago
Closed 19 years ago
#5937 closed defect (bug) (invalid)
Thickbox implementation conflict
| Reported by: | alexrabe | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.5 |
| Severity: | normal | Keywords: | Thickbox, jQuery |
| Cc: | Focuses: |
Description
The new image uploader in #5609 uses a modified Thickbox version :
"I made some wp-specific changes to the Thickbox js: $() changed to jQuery(); addLoadEvent() instead of read() (thanks mdawaffe); and the close link changed to a [x] png as per the design spec."
Plugins (like NextGEN Gallery) also uses often the Thickbox effect to show larger popup images. Due to the fact that I uses the script loader with wp_enqueue_script('thickbox'... the wp-specific version gets loaded in the frontend and failed due to the fact that addLoadEvent() didn't exist.
Solution could be :
a) Rename the wp-specific version in the script-loader to "WP-Thickbox" or whatever
b) Move addLoadEvent() outside of the thickbox script
c) All plugins must deregister "Thickbox" and add the offical one, which could then affected the Image uploader in the backend...
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Could be the same answer like #6050, I will change my thickbox script name, to avoid loading of Wp Thickbox. Thanks.