Making WordPress.org


Ignore:
Timestamp:
12/19/2017 04:22:37 PM (7 years ago)
Author:
obenland
Message:

PLugins: Clean up formatting with phpcbf

File:
1 edited

Legend:

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

    r6229 r6287  
    9696
    9797        // ...or it's a white-listed status for plugin reviewers.
    98         if ( current_user_can( 'plugin_review', $postarr['ID'] ) && in_array( $postarr['post_status'], array(
     98        if ( current_user_can( 'plugin_review', $postarr['ID'] ) && in_array(
     99            $postarr['post_status'], array(
    99100                'new',
    100101                'pending',
    101             ) ) ) {
     102            )
     103        ) ) {
    102104            return $data;
    103105        }
     
    131133                $this->approved( $post->ID, $post );
    132134                break;
     135
    133136            case 'rejected':
    134137                $this->rejected( $post->ID, $post );
    135138                break;
     139
    136140            case 'publish':
    137141                $this->clean_closed_date( $post->ID );
    138142                break;
     143
    139144            case 'disabled':
    140145            case 'closed':
     
    163168        }
    164169
    165         /* Temporarily disable SVN prefill from ZIP files
     170        /*
     171         Temporarily disable SVN prefill from ZIP files
    166172        if ( $attachments ) {
    167173            $attachment = end( $attachments );
     
    191197
    192198        /* translators: 1: plugin name, 2: plugin slug */
    193         $content = sprintf( __( 'Congratulations, your plugin hosting request for %1$s has been approved.
     199        $content = sprintf(
     200            __(
     201                'Congratulations, your plugin hosting request for %1$s has been approved.
    194202
    195203Within one hour you will have access to your SVN repository with the WordPress.org username and password you used to log in and submit your request. Your username is case sensitive.
     
    223231--
    224232The WordPress Plugin Directory Team
    225 https://make.wordpress.org/plugins', 'wporg-plugins' ),
     233https://make.wordpress.org/plugins', 'wporg-plugins'
     234            ),
    226235            $post->post_title,
    227236            $post->post_name
     
    256265
    257266        /* translators: 1: plugin name, 2: plugins@wordpress.org */
    258         $content = sprintf( __( 'Unfortunately your plugin submission for %1$s has been rejected from the WordPress Plugin Directory.
     267        $content = sprintf(
     268            __(
     269                'Unfortunately your plugin submission for %1$s has been rejected from the WordPress Plugin Directory.
    259270
    260271If you believe this to be in error, please email %2$s with your plugin attached as a zip and explain why you feel your plugin should be an exception.
     
    262273--
    263274The WordPress Plugin Directory Team
    264 https://make.wordpress.org/plugins', 'wporg-plugins' ),
     275https://make.wordpress.org/plugins', 'wporg-plugins'
     276            ),
    265277            $post->post_title,
    266278            'plugins@wordpress.org'
     
    340352            'comment_author'       => $user->display_name,
    341353            'comment_author_email' => $user->user_email,
    342             'comment_author_url'   => $user->user_url, 
     354            'comment_author_url'   => $user->user_url,
    343355            'comment_type'         => 'internal-note',
    344356            'comment_post_ID'      => $post_id,
Note: See TracChangeset for help on using the changeset viewer.