Make WordPress Core

Changeset 58459


Ignore:
Timestamp:
06/22/2024 07:32:01 AM (4 months ago)
Author:
audrasjb
Message:

Twenty Twenty-Three: Remove untranslatable text strings in pagination links.

This changeset removes text strings from the query pagination block that are not translatable without adding them to patterns.
This means that the texts now use the default translation for the block from WordPress, not the theme. The archive, search and home templates now match the text in the query pagination in the index template.

Props poena.
Fixes #60298.

Location:
trunk/src/wp-content/themes/twentytwentythree/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentythree/templates/archive.html

    r56251 r58459  
    1919
    2020        <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
    21             <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
    22             <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
     21            <!-- wp:query-pagination-previous /-->
     22            <!-- wp:query-pagination-next /-->
    2323        <!-- /wp:query-pagination -->
    2424    </div>
  • trunk/src/wp-content/themes/twentytwentythree/templates/home.html

    r56251 r58459  
    2121
    2222        <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
    23             <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
    24             <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
     23            <!-- wp:query-pagination-previous /-->
     24            <!-- wp:query-pagination-next /-->
    2525        <!-- /wp:query-pagination -->
    2626    </div>
  • trunk/src/wp-content/themes/twentytwentythree/templates/search.html

    r56251 r58459  
    1919
    2020        <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
    21             <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
    22             <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
     21            <!-- wp:query-pagination-previous /-->
     22            <!-- wp:query-pagination-next /-->
    2323        <!-- /wp:query-pagination -->
    2424
Note: See TracChangeset for help on using the changeset viewer.