mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-03 16:11:13 +08:00
Localize Details block summary text
This commit is contained in:
parent
c5dc3d0b6f
commit
9464ce2d3d
1 changed files with 3 additions and 0 deletions
|
@ -123,6 +123,8 @@ class CBT_Theme_Locale {
|
|||
case 'core/cover':
|
||||
case 'core/media-text':
|
||||
return array( '/(alt=")(.*?)(")/' );
|
||||
case 'core/details':
|
||||
return array( '/(<summary[^>]*>)(.*?)(<\/summary>)/' );
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
@ -168,6 +170,7 @@ class CBT_Theme_Locale {
|
|||
case 'core/image':
|
||||
case 'core/cover':
|
||||
case 'core/media-text':
|
||||
case 'core/details':
|
||||
$replace_content_callback = function ( $content, $pattern ) {
|
||||
if ( empty( $content ) ) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue