Skip to content

Commit

Permalink
Issue #9 - default the lang parameter to none
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Apr 13, 2019
1 parent bb3e694 commit 405a9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortcodes/oik-geshi.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function oik_css_validate_lang( $lang, &$text ) {
* @param string $content - the CSS to be displayed
*/
function bw_format_content( $atts, $content ) {
$lang = bw_array_get_from( $atts, "lang,0", null );
$lang = bw_array_get_from( $atts, "lang,0", "none" );
$text = bw_array_get_from( $atts, "text,1", null );
$lang = oik_css_validate_lang( $lang, $text );
if ( $lang ) {
Expand Down

0 comments on commit 405a9d4

Please sign in to comment.