Changeset 5271
- Timestamp:
- 04/06/2017 08:56:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r5270 r5271 238 238 switch ( $post->post_status ) { 239 239 case 'draft': 240 $message = __( 'This plugin is newly requested and has not yet been reviewed.', 'wporg-plugins' ); 241 $type = 'notice-info'; 242 break; 243 240 244 case 'pending': 241 $message = __( 'This plugin is requested and not visible to the public yet.', 'wporg-plugins' ); 242 if ( ! $is_admin ) { 243 $message .= ' ' . __( 'Please be patient as your plugin gets reviewed.', 'wporg-plugins' ); 244 } 245 $message = __( 'This plugin has been reviewed and is currently waiting on developer feedback.', 'wporg-plugins' ); 246 $type = 'notice-warning'; 245 247 break; 246 248 247 249 case 'rejected': 248 $message = __( 'This plugin isrejected and is not visible to the public.', 'wporg-plugins' );249 $type = ' error';250 $message = __( 'This plugin has been rejected and is not visible to the public.', 'wporg-plugins' ); 251 $type = 'notice-error'; 250 252 break; 251 253 252 254 case 'approved': 253 $message = __( 'This plugin is approved and awaiting data upload but not visible to the public yet.', 'wporg-plugins' ); 254 if ( ! $is_admin ) { 255 $message .= ' ' . __( 'Once you make your first commit, the plugin will become public.', 'wporg-plugins' ); 256 } 255 $message = __( 'This plugin is approved and awaiting data upload. It is not yet visible to the public.', 'wporg-plugins' ); 257 256 break; 258 257 259 258 case 'closed': 260 $message = __( 'This plugin is closed and is not visible to the public.', 'wporg-plugins' );261 $type = ' error';259 $message = __( 'This plugin is closed and no longer available for use.', 'wporg-plugins' ); 260 $type = 'notice-error'; 262 261 break; 263 262 264 263 case 'disabled': 265 $message = __( 'This plugin is closed and is not visible to the public.', 'wporg-plugins' ); 266 $type = 'error'; 267 if ( $is_admin ) { 268 $message = __( 'This plugin is disabled (closed, but actively serving updates) and is not visible to the public.', 'wporg-plugins' ); 269 } 264 $message = __( 'This plugin is disabled (closed, but actively serving updates).', 'wporg-plugins' ); 265 $type = 'notice-warning'; 270 266 break; 271 267 } 272 268 273 269 if ( $message ) { 274 add_settings_error( 'wporg-plugins', 'status-notice', $message, $type );270 printf( '<div class="notice %1$s"><p>%2$s</p></div>', esc_attr( $type ), esc_html( $message ) ); 275 271 } 276 272 }
Note: See TracChangeset
for help on using the changeset viewer.