Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -55,9 +55,17 @@ get_current_screen()->set_help_sidebar(
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
if ( $updated ) { ?>
|
||||
<div id="message" class="notice notice-success is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
|
||||
<?php } ?>
|
||||
if ( $updated ) {
|
||||
wp_admin_notice(
|
||||
'<strong>' . __( 'Settings saved.' ) . '</strong>',
|
||||
array(
|
||||
'type' => 'success',
|
||||
'dismissible' => true,
|
||||
'id' => 'message',
|
||||
)
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1 class="wp-heading-inline">
|
||||
@@ -70,12 +78,18 @@ echo esc_html( $title );
|
||||
if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ), true ) ) {
|
||||
/** This filter is documented in wp-login.php */
|
||||
$sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
||||
printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) );
|
||||
printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html__( 'Add New Site' ) );
|
||||
}
|
||||
|
||||
if ( empty( $blogs ) ) :
|
||||
wp_admin_notice(
|
||||
'<strong>' . __( 'You must be a member of at least one site to use this page.' ) . '</strong>',
|
||||
array(
|
||||
'type' => 'error',
|
||||
'dismissible' => true,
|
||||
)
|
||||
);
|
||||
?>
|
||||
<div class="notice notice-error is-dismissible"><p><strong><?php _e( 'You must be a member of at least one site to use this page.' ); ?></strong></p></div>
|
||||
<?php
|
||||
else :
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user