We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dbbe0b commit caae066Copy full SHA for caae066
1 file changed
src/scripts/admin.js
@@ -137,7 +137,7 @@
137
bulk_compress_item(items, 0)
138
}
139
140
- if (adminpage === "upload-php") {
+ if (typeof adminpage !== "undefined" && adminpage === "upload-php") {
141
if (typeof jQuery.fn.on === "function") {
142
jQuery('table').on('click', 'button.tiny-compress', compress_image)
143
} else {
@@ -154,7 +154,7 @@
154
jQuery('<option>').val('tiny_bulk_compress').text(tinyCompress.L10nBulkAction).appendTo('select[name="action2"]')
155
156
157
- if (adminpage === "options-media-php") {
+ if (typeof adminpage !== "undefined" && adminpage === "options-media-php") {
158
jQuery('#tiny-compress-status').load(ajaxurl + '?action=tiny_compress_status')
159
jQuery('#tiny-compress-savings').load(ajaxurl + '?action=tiny_compress_savings')
160
0 commit comments