Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- 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 96 96 97 97 // ...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( 99 100 'new', 100 101 'pending', 101 ) ) ) { 102 ) 103 ) ) { 102 104 return $data; 103 105 } … … 131 133 $this->approved( $post->ID, $post ); 132 134 break; 135 133 136 case 'rejected': 134 137 $this->rejected( $post->ID, $post ); 135 138 break; 139 136 140 case 'publish': 137 141 $this->clean_closed_date( $post->ID ); 138 142 break; 143 139 144 case 'disabled': 140 145 case 'closed': … … 163 168 } 164 169 165 /* Temporarily disable SVN prefill from ZIP files 170 /* 171 Temporarily disable SVN prefill from ZIP files 166 172 if ( $attachments ) { 167 173 $attachment = end( $attachments ); … … 191 197 192 198 /* 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. 194 202 195 203 Within 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. … … 223 231 -- 224 232 The WordPress Plugin Directory Team 225 https://make.wordpress.org/plugins', 'wporg-plugins' ), 233 https://make.wordpress.org/plugins', 'wporg-plugins' 234 ), 226 235 $post->post_title, 227 236 $post->post_name … … 256 265 257 266 /* 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. 259 270 260 271 If 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. … … 262 273 -- 263 274 The WordPress Plugin Directory Team 264 https://make.wordpress.org/plugins', 'wporg-plugins' ), 275 https://make.wordpress.org/plugins', 'wporg-plugins' 276 ), 265 277 $post->post_title, 266 278 'plugins@wordpress.org' … … 340 352 'comment_author' => $user->display_name, 341 353 'comment_author_email' => $user->user_email, 342 'comment_author_url' => $user->user_url, 354 'comment_author_url' => $user->user_url, 343 355 'comment_type' => 'internal-note', 344 356 'comment_post_ID' => $post_id,
Note: See TracChangeset
for help on using the changeset viewer.