mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-08 20:01:12 +01:00
63888dec3e
This changes makes the Twenty Twenty-Two "hidden-404" pattern fully prepared for translation. Props kjellr, walbo. Fixes #54928. Built from https://develop.svn.wordpress.org/trunk@52664 git-svn-id: http://core.svn.wordpress.org/trunk@52253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
16 lines
993 B
PHP
16 lines
993 B
PHP
<?php
|
|
/**
|
|
* 404 content.
|
|
*/
|
|
return array(
|
|
'title' => __( '404 content', 'twentytwentytwo' ),
|
|
'inserter' => false,
|
|
'content' => '<!-- wp:heading {"style":{"typography":{"fontSize":"clamp(4rem, 40vw, 20rem)","fontWeight":"200","lineHeight":"1"}},"className":"has-text-align-center"} -->
|
|
<h2 class="has-text-align-center" style="font-size:clamp(4rem, 40vw, 20rem);font-weight:200;line-height:1">' . esc_html( _x( '404', 'Error code for a webpage that is not found.', 'twentytwentytwo' ) ) . '</h2>
|
|
<!-- /wp:heading -->
|
|
<!-- wp:paragraph {"align":"center"} -->
|
|
<p class="has-text-align-center">' . esc_html__( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '</p>
|
|
<!-- /wp:paragraph -->
|
|
<!-- wp:search {"label":"' . esc_html_x( 'Search', 'label', 'twentytwentytwo' ) . '","showLabel":false,"width":50,"widthUnit":"%","buttonText":"' . esc_html__( 'Search', 'twentytwentytwo' ) . '","buttonUseIcon":true,"align":"center"} /-->',
|
|
);
|