Changeset 11746
- Timestamp:
- 04/05/2022 05:19:22 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
- Files:
-
- 2 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. -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section-advanced.php
r9784 r11746 17 17 <div id="admin" class="section"> 18 18 <?php the_closed_plugin_notice(); ?> 19 <?php the_no_self_management_notice(); ?> 19 20 20 21 <h2><?php esc_html_e( 'Statistics', 'wporg-plugins' ); ?></h2>
Note: See TracChangeset
for help on using the changeset viewer.