Skip to content

Commit

Permalink
Fix media modal not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Jan 16, 2018
1 parent 6572cf9 commit 8c1ed58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/media-modal.php
Expand Up @@ -21,7 +21,9 @@ class RWMB_Media_Modal {
* Initialize.
*/
public function init() {
add_action( 'init', array( $this, 'get_fields' ) );
// Meta boxes are registered at priority 20, so we use 30 to capture them all.
add_action( 'init', array( $this, 'get_fields' ), 30 );

add_filter( 'attachment_fields_to_edit', array( $this, 'add_fields' ), 11, 2 );
add_filter( 'attachment_fields_to_save', array( $this, 'save_fields' ), 11, 2 );

Expand Down

0 comments on commit 8c1ed58

Please sign in to comment.