Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsMeta.php 2 locations

@@ 296-299 (lines=4) @@
293
        add_action( 'delete_term_taxonomy', array( $this, 'delete_taxonomy' ), 10, 1 );
294
295
        if ( $this->get_objects( 'media', false, true ) ) {
296
            if ( pods_version_check( 'wp', '3.5' ) ) {
297
                add_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) );
298
                add_action( 'wp_ajax_save-attachment-compat', array( $this, 'save_media_ajax' ), 0 );
299
            }
300
301
            add_filter( 'attachment_fields_to_edit', array( $this, 'meta_media' ), 10, 2 );
302
@@ 793-796 (lines=4) @@
790
        }
791
        elseif ( 'media' == $pod[ 'type' ] ) {
792
            if ( !has_filter( 'wp_update_attachment_metadata', array( $this, 'save_media' ), 10, 2 ) ) {
793
                if ( pods_version_check( 'wp', '3.5' ) ) {
794
                    add_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) );
795
                    add_action( 'wp_ajax_save-attachment-compat', array( $this, 'save_media_ajax' ), 0 );
796
                }
797
798
                add_filter( 'attachment_fields_to_edit', array( $this, 'meta_media' ), 10, 2 );
799