Skip to content

Commit f44545e

Browse files
committed
Twenty Twenty: Fix typo and improve param description for twentytwenty_read_more_tag().
Follow-up to [61302]. Props sabernhardt. See #64277, #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61319 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 49ba990 commit f44545e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-content/themes/twentytwenty/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ function twentytwenty_block_editor_settings() {
635635
* Overwrite default more tag with styling and screen reader markup.
636636
*
637637
* @param string $html The default output HTML for the more tag.
638-
* @return string The the read more link wrapped in a `div`.
638+
* @return string Read More link element, wrapped in a `div`.
639639
*/
640640
function twentytwenty_read_more_tag( $html ) {
641641
return preg_replace( '/<a(.*)>(.*)<\/a>/iU', sprintf( '<div class="read-more-button-wrap"><a$1><span class="faux-button">$2</span> <span class="screen-reader-text">"%1$s"</span></a></div>', get_the_title( get_the_ID() ) ), $html );

0 commit comments

Comments
 (0)