@@ 211-214 (lines=4) @@ | ||
208 | add_action( 'delete_term_taxonomy', array( $this, 'delete_taxonomy' ), 10, 1 ); |
|
209 | ||
210 | if ( !empty( self::$media ) ) { |
|
211 | if ( pods_version_check( 'wp', '3.5' ) ) { |
|
212 | add_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) ); |
|
213 | add_action( 'wp_ajax_save-attachment-compat', array( $this, 'save_media_ajax' ), 0 ); |
|
214 | } |
|
215 | ||
216 | add_filter( 'attachment_fields_to_edit', array( $this, 'meta_media' ), 10, 2 ); |
|
217 | ||
@@ 724-727 (lines=4) @@ | ||
721 | } |
|
722 | elseif ( 'media' == $pod[ 'type' ] ) { |
|
723 | if ( !has_filter( 'wp_update_attachment_metadata', array( $this, 'save_media' ), 10, 2 ) ) { |
|
724 | if ( pods_version_check( 'wp', '3.5' ) ) { |
|
725 | add_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) ); |
|
726 | add_action( 'wp_ajax_save-attachment-compat', array( $this, 'save_media_ajax' ), 0 ); |
|
727 | } |
|
728 | ||
729 | add_filter( 'attachment_fields_to_edit', array( $this, 'meta_media' ), 10, 2 ); |
|
730 |