Changeset 12054 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
- Timestamp:
- 09/05/2022 08:38:59 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r12050 r12054 783 783 // This should account for all languages used in the handbooks. 784 784 $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'; 786 786 787 787 $content = self::_trim_code( $content );
Note: See TracChangeset
for help on using the changeset viewer.