Permalink
Browse files

Fixed a bug causing the undefined index notice, `Notice: Undefined in…

…dex: wp_widget_factory in AdminPageFramework_Widget.php in line 106.`
  • Loading branch information...
michaeluno committed Jul 7, 2018
1 parent 0ae9466 commit cf806f0b0c859ac1b18d89c2a2997d12b7eca6d8
Showing with 3 additions and 0 deletions.
  1. +3 −0 development/factory/widget/AdminPageFramework_Widget.php
@@ -103,6 +103,9 @@ private function ___setProperties( $aParameters, $sThisClassName, $_bAssumedAsWP
* @since 3.8.17
*/
private function ___getConstructorParametersUsedForThisClassName( $sClassName ) {
if ( ! isset( $GLOBALS[ 'wp_widget_factory' ] ) ) {
return array();
}
if ( ! is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) {
return array();
}

0 comments on commit cf806f0

Please sign in to comment.