Changeset 1398 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 03/13/2015 01:00:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r1397 r1398 371 371 $content = sprintf( __( 'Congratulations, your new theme %1$s is now available to the public at %2$s.', 'wporg-themes' ), $post->post_title, "https://wordpress.org/themes/{$post->post_name}" ) . "\n\n"; 372 372 373 // First time approval: Publish the theme. 374 wp_publish_post( $post_id ); 373 /* 374 * First time approval: Publish the theme. 375 * 376 * Uses `wp_update_post()` to also update post_time. 377 */ 378 wp_update_post( array( 379 'ID' => $post_id, 380 'post_status' => 'publish', 381 ) ); 375 382 } 376 383
Note: See TracChangeset
for help on using the changeset viewer.