| @@ -18,19 +18,18 @@ | ||
| 18 | 18 | add_filter( 'option_duplicate_post_taxonomies_blacklist', array( $this, 'taxonomies_blacklist' ) ); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * Duplicate Post | |
| 23 | - * Avoid duplicating the 'post_translations' taxonomy | |
| 22 | + * Avoid duplicating the 'post_translations' taxonomy. | |
| 24 | 23 | * |
| 25 | 24 | * @since 1.8 |
| 26 | 25 | * |
| 27 | - * @param array|string $taxonomies | |
| 26 | + * @param array|string $taxonomies The list of taxonomies not to duplicate. | |
| 28 | 27 | * @return array |
| 29 | 28 | */ |
| 30 | 29 | public function taxonomies_blacklist( $taxonomies ) { |
| 31 | 30 | if ( empty( $taxonomies ) ) { |
| 32 | - $taxonomies = array(); // As we get an empty string when there is no taxonomy | |
| 31 | + $taxonomies = array(); // As we get an empty string when there is no taxonomy. | |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | 34 | $taxonomies[] = 'post_translations'; |
| 36 | 35 | return $taxonomies; |