diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/post-template.php --- a/wp/wp-includes/post-template.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/post-template.php Fri Sep 05 18:52:52 2025 +0200 @@ -676,6 +676,8 @@ $post_id = $post->ID; $post_type = $post->post_type; + $classes[] = 'wp-singular'; + if ( is_page_template() ) { $classes[] = "{$post_type}-template"; @@ -836,6 +838,11 @@ } } + $classes[] = 'wp-theme-' . sanitize_html_class( get_template() ); + if ( is_child_theme() ) { + $classes[] = 'wp-child-theme-' . sanitize_html_class( get_stylesheet() ); + } + if ( ! empty( $css_class ) ) { if ( ! is_array( $css_class ) ) { $css_class = preg_split( '#\s+#', $css_class ); @@ -1767,27 +1774,60 @@ * @return string HTML content for password form for password protected post. */ function get_the_password_form( $post = 0 ) { - $post = get_post( $post ); - $label = 'pwbox-' . ( empty( $post->ID ) ? rand() : $post->ID ); - $output = '
+'; /** * Filters the HTML output for the protected post password form. * - * If modifying the password field, please note that the core database schema - * limits the password field to 20 characters regardless of the value of the - * size attribute in the form input. + * If modifying the password field, please note that the WordPress database schema + * limits the password field to 255 characters regardless of the value of the + * `minlength` or `maxlength` attributes or other validation that may be added to + * the input. * * @since 2.7.0 * @since 5.8.0 Added the `$post` parameter. + * @since 6.8.0 Added the `$invalid_password` parameter. * - * @param string $output The password form HTML output. - * @param WP_Post $post Post object. + * @param string $output The password form HTML output. + * @param WP_Post $post Post object. + * @param string $invalid_password The invalid password message. */ - return apply_filters( 'the_password_form', $output, $post ); + return apply_filters( 'the_password_form', $output, $post, $invalid_password ); } /**