Making WordPress.org

Changeset 12054


Ignore:
Timestamp:
09/05/2022 08:38:59 PM (23 months ago)
Author:
iandunn
Message:

Developer: Sync with Git 316ef89

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php

    r12050 r12054  
    783783        // This should account for all languages used in the handbooks.
    784784        $lang_list = [ 'js', 'json', 'sh', 'bash', 'html', 'css', 'scss', 'php', 'markdown', 'yaml' ];
    785         $lang = in_array( $attr['lang'], $lang_list ) ? $attr['lang'] : 'php';
     785        $lang = in_array( $attr['lang'] ?? '', $lang_list ) ? $attr['lang'] ?? '': 'php';
    786786
    787787        $content = self::_trim_code( $content );
Note: See TracChangeset for help on using the changeset viewer.