From f881ff629a62f97cbef26de58abb0d053daf5ef7 Mon Sep 17 00:00:00 2001 From: Maulik Date: Thu, 19 Feb 2026 00:07:19 +0530 Subject: [PATCH 1/3] REST API: Preserve parent when generating unique slug for draft child posts --- .../rest-api/endpoints/class-wp-rest-posts-controller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index 076f476f3404e..255a907eda823 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -963,7 +963,11 @@ public function update_item( $request ) { * To ensure that a unique slug is generated, pass the post data with the 'publish' status. */ if ( ! empty( $post->post_name ) && in_array( $post_status, array( 'draft', 'pending' ), true ) ) { - $post_parent = ! empty( $post->post_parent ) ? $post->post_parent : 0; + if ( ! empty( $post->post_parent ) ) { + $post_parent = (int) $post->post_parent; + } else { + $post_parent = ! empty( $post_before->post_parent ) ? (int) $post_before->post_parent : 0; + } $post->post_name = wp_unique_post_slug( $post->post_name, $post->ID, From 3d48ab1d0fde5232097c22e617dbd3b07fc598f5 Mon Sep 17 00:00:00 2001 From: Maulik Date: Mon, 23 Feb 2026 23:16:49 +0530 Subject: [PATCH 2/3] opcache issue with ticket 64707 --- src/wp-admin/includes/class-wp-site-health.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index 44c04175abaf2..2beff559ff621 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -2800,10 +2800,19 @@ public function get_test_search_engine_visibility() { */ public function get_test_opcode_cache(): array { $opcode_cache_enabled = false; - if ( function_exists( 'opcache_get_status' ) ) { - $status = @opcache_get_status( false ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- Warning emitted in failure case. - if ( $status && true === $status['opcache_enabled'] ) { + if ( extension_loaded( 'Zend OPcache' ) ) { + $enabled = ini_get( 'opcache.enable' ); + + if ( $enabled ) { $opcode_cache_enabled = true; + + // Only try to read status if it actually works. + if ( function_exists( 'opcache_get_status' ) ) { + $status = @opcache_get_status( false ); + if ( is_array( $status ) && isset( $status['opcache_enabled'] ) ) { + $opcode_cache_enabled = (bool) $status['opcache_enabled']; + } + } } } From 2654d95b004ac6594acd285f931950e829906795 Mon Sep 17 00:00:00 2001 From: Maulik Date: Mon, 2 Mar 2026 00:31:11 +0530 Subject: [PATCH 3/3] Login button add class ticket 64768 --- src/wp-admin/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php index b655af53f0cb6..864f65b5ee104 100644 --- a/src/wp-admin/install.php +++ b/src/wp-admin/install.php @@ -218,7 +218,7 @@ function display_setup_form( $error = null ) { die( '

' . __( 'Already Installed' ) . '

' . '

' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '

' . - '

' . __( 'Log In' ) . '

' . + '

' . __( 'Log In' ) . '

' . '' ); } @@ -462,7 +462,7 @@ function display_setup_form( $error = null ) { -

+