| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * A class to manage copy and synchronization of post metas |
| 8 | 5 | * |
| @@ -59,13 +56,11 @@ | ||
| 59 | 56 | $keys[] = $meta; |
| 60 | 57 | } |
| 61 | 58 | } |
| 62 | 59 | |
| 60 | + // Random header image | |
| 63 | 61 | if ( $this->options['media_support'] ) { |
| 64 | - $keys[] = '_wp_attached_file'; | |
| 65 | - $keys[] = '_wp_attachment_metadata'; | |
| 66 | - $keys[] = '_wp_attachment_backup_sizes'; | |
| 67 | - $keys[] = '_wp_attachment_is_custom_header'; // Random header image | |
| 62 | + $keys[] = '_wp_attachment_is_custom_header'; | |
| 68 | 63 | } |
| 69 | 64 | |
| 70 | 65 | /** This filter is documented in modules/sync/sync-metas.php */ |
| 71 | 66 | return array_unique( apply_filters( 'pll_copy_post_metas', $keys, $sync, $from, $to, $lang ) ); |