Changeset 57769 for trunk/src/wp-includes/class-wp-plugin-dependencies.php
- Timestamp:
- 03/05/2024 06:25:22 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-plugin-dependencies.php
r57736 r57769 370 370 public static function display_admin_notice_for_unmet_dependencies() { 371 371 if ( in_array( false, self::get_dependency_filepaths(), true ) ) { 372 $error_message = __( 'Some required plugins are missing or inactive.' ); 373 374 if ( is_multisite() ) { 375 if ( current_user_can( 'manage_network_plugins' ) ) { 376 $error_message .= ' ' . sprintf( 377 /* translators: %s: Link to the network plugins page. */ 378 __( '<a href="%s">Manage plugins</a>.' ), 379 esc_url( network_admin_url( 'plugins.php' ) ) 380 ); 381 } else { 382 $error_message .= ' ' . __( 'Please contact your network administrator.' ); 383 } 384 } elseif ( 'plugins' !== get_current_screen()->base ) { 385 $error_message .= ' ' . sprintf( 386 /* translators: %s: Link to the plugins page. */ 387 __( '<a href="%s">Manage plugins</a>.' ), 388 esc_url( admin_url( 'plugins.php' ) ) 389 ); 390 } 391 372 392 wp_admin_notice( 373 __( 'There are additional plugin dependencies that must be installed.' ),393 $error_message, 374 394 array( 375 'type' => ' info',395 'type' => 'warning', 376 396 ) 377 397 );
Note: See TracChangeset
for help on using the changeset viewer.