Changeset 11641 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 03/04/2022 04:20:31 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r11588 r11641 521 521 } 522 522 523 // Filter the tags to those that exist on the site already. 524 $tags = array_intersect( 525 $theme_data['Tags'], 526 get_terms( array( 527 'hide_empty' => false, 528 'taxonomy' => 'post_tag', 529 'fields' => 'slugs' 530 ) ) 531 ); 532 523 533 wp_update_post( array( 524 534 'ID' => $post_id, … … 526 536 'post_content' => $theme_data['Description'], 527 537 'post_parent' => $theme_parent_post_id, 528 'tags_input' => $t heme_data['Tags'],538 'tags_input' => $tags, 529 539 ) ); 530 540
Note: See TracChangeset
for help on using the changeset viewer.