Skip to content

Commit f9cf1bb

Browse files
authored
Merge pull request #2 from raffb/master
add wp_enqueue_media() to ensure presence of all media js APIs
2 parents 3ce6783 + ec98e56 commit f9cf1bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: inc/ij-post-attachments.php

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ public function admin_enqueue_scripts()
104104
if ($hook_suffix != 'post.php')
105105
return;
106106

107+
wp_enqueue_media();
108+
107109
wp_enqueue_script(
108110
'ij-post-attachments', IJ_POST_ATTACHMENTS_URL . 'scripts/ij-post-attachments.js',
109111
array('jquery-ui-sortable'), IJ_POST_ATTACHMENTS_VER

0 commit comments

Comments
 (0)