|
@@ 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 |
|
|
|
@@ 741-744 (lines=4) @@
|
| 738 |
|
} |
| 739 |
|
elseif ( 'media' == $pod[ 'type' ] ) { |
| 740 |
|
if ( !has_filter( 'wp_update_attachment_metadata', array( $this, 'save_media' ), 10, 2 ) ) { |
| 741 |
|
if ( pods_version_check( 'wp', '3.5' ) ) { |
| 742 |
|
add_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) ); |
| 743 |
|
add_action( 'wp_ajax_save-attachment-compat', array( $this, 'save_media_ajax' ), 0 ); |
| 744 |
|
} |
| 745 |
|
|
| 746 |
|
add_filter( 'attachment_fields_to_edit', array( $this, 'meta_media' ), 10, 2 ); |
| 747 |
|
|