Fix for PHP Notice: Uninitialized string offset: 1 in hlt-bootstrap-shortcodes
-
Index: content/plugins/wordpress-bootstrap-css/src/hlt-bootstrap-shortcodes.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- content/plugins/wordpress-bootstrap-css/src/hlt-bootstrap-shortcodes.php (revision c09a53ba2fbb1aafe863d3e1c3353a2aaa7f0b25) +++ content/plugins/wordpress-bootstrap-css/src/hlt-bootstrap-shortcodes.php (revision ) @@ -1021,8 +1021,11 @@ if ( isset( $inaAtts['help'] ) ) { return $this->getHelp( $aOptions ); } - + foreach ($aOptions as $sOption => $aOptionData) { + if ($sOption == 'help_text') { + continue; + } list( $sDefault, $sDescription ) = $aOptionData; $this->def( $inaAtts, $sOption, $sDefault ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix for PHP Notice: Uninitialized string offset: 1 in hlt-bootstrap-shortcodes’ is closed to new replies.