Opened 14 years ago
Closed 14 years ago
#15510 closed defect (bug) (fixed)
Thickbox images can't be loaded in network admin
Reported by: | ocean90 | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Network Admin | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
The reason is:
if ( typeof tb_pathToImage != 'string' ) { var tb_pathToImage = "../wp-includes/js/thickbox/loadingAnimation.gif"; } if ( typeof tb_closeImage != 'string' ) { var tb_closeImage = "../wp-includes/js/thickbox/tb-close.png"; }
Image link for network admin => wp.local/wp-admin/wp-includes/js/thickbox/tb-close.png
See also #6453.
Attachments (2)
Change History (8)
#4
follow-up:
↓ 5
@
14 years ago
Can the add_action() be put directly into add_thickbox if is_network_admin()? Seems cleaner.
Note: See
TracTickets for help on using
tickets.
Where are we using thickbox in the network admin?
If we are, then we should define those variables and inject them into the head when we need it. (That's the purpose of the check, which was added by us into TB.)