Changeset 5268 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
- Timestamp:
- 04/06/2017 07:42:01 AM (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
r5037 r5268 232 232 233 233 $message = ''; 234 $type = 'updated'; 234 235 $post = get_post(); 235 236 $is_admin = current_user_can( 'plugin_approve' ); … … 246 247 case 'rejected': 247 248 $message = __( 'This plugin is rejected and is not visible to the public.', 'wporg-plugins' ); 249 $type = 'error'; 248 250 break; 249 251 … … 257 259 case 'closed': 258 260 $message = __( 'This plugin is closed and is not visible to the public.', 'wporg-plugins' ); 261 $type = 'error'; 259 262 break; 260 263 261 264 case 'disabled': 262 265 $message = __( 'This plugin is closed and is not visible to the public.', 'wporg-plugins' ); 266 $type = 'error'; 263 267 if ( $is_admin ) { 264 268 $message = __( 'This plugin is disabled (closed, but actively serving updates) and is not visible to the public.', 'wporg-plugins' ); … … 268 272 269 273 if ( $message ) { 270 add_settings_error( 'wporg-plugins', 'status-notice', $message, 'updated');274 add_settings_error( 'wporg-plugins', 'status-notice', $message, $type ); 271 275 } 272 276 }
Note: See TracChangeset
for help on using the changeset viewer.