WordPress.org

Making WordPress.org

Changeset 7790


Ignore:
Timestamp:
10/27/2018 10:44:57 AM (15 months ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Remove $is_admin variable in Customizations::add_post_status_notice(), unused since [5271].

File:
1 edited

Legend:

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

    r7310 r7790  
    246246        $message  = '';
    247247        $type     = 'updated';
    248         $post     = get_post();
    249         $is_admin = current_user_can( 'plugin_approve' );
    250 
    251         switch ( $post->post_status ) {
     248
     249        switch ( get_post_status() ) {
    252250            case 'new':
    253251                $message = __( 'This plugin is newly requested and has not yet been reviewed.', 'wporg-plugins' );
Note: See TracChangeset for help on using the changeset viewer.