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:
@@ -440,17 +440,43 @@ if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<?php if ( $notice ) : ?>
|
||||
<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice; ?></p></div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $message ) : ?>
|
||||
<div id="message" class="updated notice notice-success is-dismissible"><p><?php echo $message; ?></p></div>
|
||||
<?php endif; ?>
|
||||
<div id="lost-connection-notice" class="error hidden">
|
||||
<p><span class="spinner"></span> <?php _e( '<strong>Connection lost.</strong> Saving has been disabled until you are reconnected.' ); ?>
|
||||
<span class="hide-if-no-sessionstorage"><?php _e( 'This post is being backed up in your browser, just in case.' ); ?></span>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
if ( $notice ) :
|
||||
wp_admin_notice(
|
||||
'<p id="has-newer-autosave">' . $notice . '</p>',
|
||||
array(
|
||||
'type' => 'warning',
|
||||
'id' => 'notice',
|
||||
'paragraph_wrap' => false,
|
||||
)
|
||||
);
|
||||
endif;
|
||||
if ( $message ) :
|
||||
wp_admin_notice(
|
||||
$message,
|
||||
array(
|
||||
'type' => 'success',
|
||||
'dismissible' => true,
|
||||
'id' => 'message',
|
||||
'additional_classes' => array( 'updated' ),
|
||||
)
|
||||
);
|
||||
endif;
|
||||
|
||||
$connection_lost_message = sprintf(
|
||||
'<span class="spinner"></span> %1$s <span class="hide-if-no-sessionstorage">%2$s</span>',
|
||||
__( '<strong>Connection lost.</strong> Saving has been disabled until you are reconnected.' ),
|
||||
__( 'This post is being backed up in your browser, just in case.' )
|
||||
);
|
||||
|
||||
wp_admin_notice(
|
||||
$connection_lost_message,
|
||||
array(
|
||||
'id' => 'lost-connection-notice',
|
||||
'additional_classes' => array( 'error', 'hidden' ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
<form name="post" action="post.php" method="post" id="post"
|
||||
<?php
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user