Making WordPress.org

Changeset 1403


Ignore:
Timestamp:
03/16/2015 08:34:22 PM (9 years ago)
Author:
obenland
Message:

WP.org Themes: Use the date of first approval as release date.

See #943, r1398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r1398 r1403  
    376376         * Uses `wp_update_post()` to also update post_time.
    377377         */
     378        $post_date = current_time( 'mysql' );
    378379        wp_update_post( array(
    379             'ID'          => $post_id,
    380             'post_status' => 'publish',
     380            'ID'            => $post_id,
     381            'post_status'   => 'publish',
     382            'post_date'     => $post_date,
     383            'post_date_gmt' => $post_date,
    381384        ) );
    382385    }
Note: See TracChangeset for help on using the changeset viewer.