Making WordPress.org


Ignore:
Timestamp:
09/19/2023 10:22:10 PM (3 years ago)
Author:
coffee2code
Message:

Handbooks: Replace spaces with non-breaking space entities in 'top' links.

This prevents the up-arrow from wrapping below its associated 'Top', which can happen when the associated heading wraps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r12453 r12900  
    103103                $this->args = (object) wp_parse_args( $args, array(
    104104                        'header_text' => __( 'Topics', 'wporg' ),
    105                         'top_text'    => __( 'Top ↑', 'wporg' ),
     105                        'top_text'    => str_replace( ' ', ' ', __( 'Top ↑', 'wporg' ) ),
    106106                ) );
    107107        }
Note: See TracChangeset for help on using the changeset viewer.