Changeset 11746 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
- Timestamp:
- 04/05/2022 05:19:22 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
r11745 r11746 296 296 } 297 297 298 function the_no_self_management_notice() { 299 $post = get_post(); 300 301 // Check if they can access plugin management, but can't add committers. 302 // This means the plugin has limited self-management functionalities, for security. 303 if ( 304 current_user_can( 'plugin_admin_edit', $post ) && 305 ! current_user_can( 'plugin_add_committer', $post ) 306 ) { 307 printf( 308 '<div class="plugin-notice notice notice-warning notice-alt"><p>%s</p></div>', 309 __( 'Management of this plugin has been limited for security reasons. Please contact the plugins team for assistance to add/remove committers, or to perform other actions that are unavailable.', 'wporg-plugins' ) 310 ); 311 } 312 } 313 298 314 /** 299 315 * Display the ADVANCED Zone.
Note: See TracChangeset
for help on using the changeset viewer.