Changeset 43545
- Timestamp:
- 07/31/2018 03:15:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r43543 r43545 24 24 25 25 /* Register Widgets and Controls */ 26 27 // Try Gutenberg28 29 // If Gutenberg isn't activated, only show the panel to users who can install and activate it.30 $plugins = get_plugins();31 if ( is_plugin_inactive( 'gutenberg/gutenberg.php' ) && ! current_user_can( 'install_plugins' ) ) {32 remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );33 }34 // If Gutenberg is activated, only show it to users who can use it.35 if ( is_plugin_active( 'gutenberg/gutenberg.php' ) && ! current_user_can( 'edit_posts' ) ) {36 remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );37 }38 26 39 27 $response = wp_check_browser_version();
Note: See TracChangeset
for help on using the changeset viewer.