Changeset 11641 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.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/class-wporg-themes-upload.php
r11588 r11641 1262 1262 // Otherwise create it for this new theme. 1263 1263 } else { 1264 1265 // Filter the tags to those that exist on the site already. 1266 $tags = array_intersect( 1267 $this->theme->get( 'Tags' ), 1268 get_terms( array( 1269 'hide_empty' => false, 1270 'taxonomy' => 'post_tag', 1271 'fields' => 'slugs' 1272 ) ) 1273 ); 1274 1264 1275 $post_id = wp_insert_post( array( 1265 1276 'post_author' => $this->author->ID, … … 1273 1284 'ping_status' => 'closed', 1274 1285 'post_type' => 'repopackage', 1275 'tags_input' => $t his->theme->get( 'Tags' ),1286 'tags_input' => $tags, 1276 1287 ) ); 1277 1288 }
Note: See TracChangeset
for help on using the changeset viewer.