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:
@@ -58,14 +58,10 @@ function check_upload_size( $file ) {
|
||||
* @since 3.0.0
|
||||
* @since 5.1.0 Use wp_delete_site() internally to delete the site row from the database.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $blog_id Site ID.
|
||||
* @param bool $drop True if site's database tables should be dropped. Default false.
|
||||
*/
|
||||
function wpmu_delete_blog( $blog_id, $drop = false ) {
|
||||
global $wpdb;
|
||||
|
||||
$blog_id = (int) $blog_id;
|
||||
|
||||
$switch = false;
|
||||
@@ -696,11 +692,20 @@ function site_admin_notice() {
|
||||
}
|
||||
|
||||
if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) {
|
||||
echo "<div class='update-nag notice notice-warning inline'>" . sprintf(
|
||||
$upgrade_network_message = sprintf(
|
||||
/* translators: %s: URL to Upgrade Network screen. */
|
||||
__( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ),
|
||||
esc_url( network_admin_url( 'upgrade.php' ) )
|
||||
) . '</div>';
|
||||
);
|
||||
|
||||
wp_admin_notice(
|
||||
$upgrade_network_message,
|
||||
array(
|
||||
'type' => 'warning',
|
||||
'additional_classes' => array( 'update-nag', 'inline' ),
|
||||
'paragraph_wrap' => false,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -738,7 +743,7 @@ function avoid_blog_page_permalink_collision( $data, $postarr ) {
|
||||
|
||||
while ( $c < 10 && get_id_from_blogname( $post_name ) ) {
|
||||
$post_name .= mt_rand( 1, 10 );
|
||||
$c++;
|
||||
++$c;
|
||||
}
|
||||
|
||||
if ( $post_name !== $data['post_name'] ) {
|
||||
|
||||
Reference in New Issue
Block a user