Skip to content

Commit a43fa54

Browse files
authored
Podcast: enqueue media library for cover image selector (#48720)
1 parent a77725c commit a43fa54

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Podcast: enqueue WP media library so the cover image selector loads.

projects/packages/podcast/src/class-admin-page.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public static function add_wp_admin_submenu() {
8080
* Wire admin-init actions once we know the Podcast page is loading.
8181
*/
8282
public static function admin_init() {
83-
// Intentionally empty for now.
83+
// MediaUpload (cover-image-control) reads wp.media.view — only defined after this runs.
84+
add_action( 'admin_enqueue_scripts', 'wp_enqueue_media' );
8485
}
8586

8687
/**

0 commit comments

Comments
 (0)