Make WordPress Core

Ticket #61951: 61951.patch

File 61951.patch, 3.2 KB (added by iflairwebtechnologies, 10 months ago)

Fixed TT3 and TT4 template heading text translatable

  • new file src/wp-content/themes/twentytwentyfour/patterns/index-heading.php

    diff --git a/src/wp-content/themes/twentytwentyfour/patterns/index-heading.php b/src/wp-content/themes/twentytwentyfour/patterns/index-heading.php
    new file mode 100644
    index 0000000000..61426d615c
    - +  
     1<?php
     2        /**
     3        * Title: Index Heading
     4        * Slug: twentytwentyfour/index-heading
     5        * Categories: hidden
     6        * Inserter: no
     7        */
     8?>
     9<!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} -->
     10<h1 class="wp-block-heading alignwide" style="padding-top:var(--wp--preset--spacing--50)"><?php esc_html_e( 'Posts', 'twentytwentyfour' ); ?></h1>
     11<!-- /wp:heading -->
     12 No newline at end of file
  • src/wp-content/themes/twentytwentyfour/templates/index.html

    diff --git a/src/wp-content/themes/twentytwentyfour/templates/index.html b/src/wp-content/themes/twentytwentyfour/templates/index.html
    index fd93725de8..772924b5e7 100644
    a b  
    22
    33<!-- wp:group {"tagName":"main","align":"full","layout":{"type":"constrained"}} -->
    44<main class="wp-block-group alignfull">
    5         <!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} -->
    6         <h1 class="wp-block-heading alignwide" style="padding-top:var(--wp--preset--spacing--50)">Posts</h1>
    7         <!-- /wp:heading -->
     5        <!-- wp:pattern {"slug":"twentytwentyfour/index-heading"} /-->
    86        <!-- wp:pattern {"slug":"twentytwentyfour/posts-3-col"} /-->
    97</main>
    108<!-- /wp:group -->
  • new file src/wp-content/themes/twentytwentythree/patterns/home-heading.php

    diff --git a/src/wp-content/themes/twentytwentythree/patterns/home-heading.php b/src/wp-content/themes/twentytwentythree/patterns/home-heading.php
    new file mode 100644
    index 0000000000..96b2ce613c
    - +  
     1<?php
     2/**
     3 * Title: Home Heading
     4 * Slug: twentytwentythree/home-heading
     5 * Inserter: no
     6 */
     7?>
     8<!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|60"}}}} -->
     9<h1 class="alignwide" style="margin-bottom:var(--wp--preset--spacing--60)"><?php echo esc_html_x( 'Mindblown: a blog about philosophy.', 'Home Heading', 'twentytwentythree' ); ?></h1>
     10<!-- /wp:heading -->
  • src/wp-content/themes/twentytwentythree/templates/home.html

    diff --git a/src/wp-content/themes/twentytwentythree/templates/home.html b/src/wp-content/themes/twentytwentythree/templates/home.html
    index 23fc5cf415..90610a13b0 100644
    a b  
    22
    33<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
    44<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--70)">
    5         <!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|60"}}}} -->
    6         <h1 class="alignwide" style="margin-bottom:var(--wp--preset--spacing--60)">Mindblown: a blog about philosophy.</h1>
    7         <!-- /wp:heading -->
     5        <!-- wp:pattern {"slug":"twentytwentythree/home-heading"} /-->