Make WordPress Core


Ignore:
Timestamp:
02/13/2026 05:51:41 PM (4 weeks ago)
Author:
westonruter
Message:

Code Modernization: Use null coalescing operator instead of ternaries where possible.

Developed in https://github.com/WordPress/wordpress-develop/pull/10911

Follow-up to [61621], [61464].

Props soean, westonruter.
See #63430.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r60728 r61637  
    14911491    $languages = array();
    14921492
    1493     $path       = is_null( $dir ) ? WP_LANG_DIR : $dir;
     1493    $path       = $dir ?? WP_LANG_DIR;
    14941494    $lang_files = $wp_textdomain_registry->get_language_files_from_path( $path );
    14951495
Note: See TracChangeset for help on using the changeset viewer.