Make WordPress Core

Changeset 46784


Ignore:
Timestamp:
11/26/2019 03:17:30 PM (5 years ago)
Author:
ocean90
Message:

Upgrade/Install: Provide a default label for "Continue" button in language selection form.

Prevents an empty continue button if a translation isn't yet available.

Props sathyapulse.
Fixes #48776.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/translation-install.php

    r46662 r46784  
    174174                esc_attr( $language['language'] ),
    175175                esc_attr( current( $language['iso'] ) ),
    176                 esc_attr( $language['strings']['continue'] ),
     176                esc_attr( $language['strings']['continue'] ?: 'Continue' ),
    177177                in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
    178178                esc_html( $language['native_name'] )
     
    188188            esc_attr( $language['language'] ),
    189189            esc_attr( current( $language['iso'] ) ),
    190             esc_attr( $language['strings']['continue'] ),
     190            esc_attr( $language['strings']['continue'] ?: 'Continue' ),
    191191            in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
    192192            esc_html( $language['native_name'] )
Note: See TracChangeset for help on using the changeset viewer.