WordPress.org

Making WordPress.org

Changeset 6228


Ignore:
Timestamp:
12/04/17 14:49:44 (10 days ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Use pre-existing meta key name for plugin closing date.

See #2860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php

    r6223 r6228  
    302302     */ 
    303303    public function clean_closed_date( $post_id ) { 
    304         delete_post_meta( $post_id, 'plugin_closed_date' ); 
     304        delete_post_meta( $post_id, '_close_date' ); 
    305305        delete_post_meta( $post_id, '_close_reason' ); 
    306306    } 
     
    323323 
    324324        update_post_meta( $post_id, '_close_reason', $close_reason ); 
    325         update_post_meta( $post_id, 'plugin_closed_date', current_time( 'mysql' ) ); 
     325        update_post_meta( $post_id, '_close_date', current_time( 'mysql' ) ); 
    326326 
    327327        $this->audit_log( sprintf( 'Plugin closed for: %s', $close_reason ), $post_id ); 
Note: See TracChangeset for help on using the changeset viewer.