@@ -37,7 +37,7 @@ |
||
| 37 | 37 | '' // default value |
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - if ( ! $this->canUserView( $this->sCapability ) ) { |
|
| 40 | + if ( !$this->canUserView( $this->sCapability ) ) { |
|
| 41 | 41 | return ''; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * @since 3.5.0 |
| 68 | 68 | */ |
| 69 | - public function enqueueStyles( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) { |
|
| 69 | + public function enqueueStyles( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) { |
|
| 70 | 70 | return $this->oResource->_enqueueStyles( $aSRCs, $aPostTypes, $aCustomArgs ); |
| 71 | 71 | } |
| 72 | 72 | /** |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param array (optional) The argument array for more advanced parameters. |
| 90 | 90 | * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned. |
| 91 | 91 | */ |
| 92 | - public function enqueueStyle( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) { |
|
| 92 | + public function enqueueStyle( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) { |
|
| 93 | 93 | return $this->oResource->_enqueueStyle( $sSRC, $aPostTypes, $aCustomArgs ); |
| 94 | 94 | } |
| 95 | 95 | /** |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @since 3.5.0 |
| 99 | 99 | */ |
| 100 | - public function enqueueScripts( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) { |
|
| 100 | + public function enqueueScripts( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) { |
|
| 101 | 101 | return $this->oResource->_enqueueScripts( $aSRCs, $aPostTypes, $aCustomArgs ); |
| 102 | 102 | } |
| 103 | 103 | /** |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * @param array (optional) The argument array for more advanced parameters. |
| 133 | 133 | * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned. |
| 134 | 134 | */ |
| 135 | - public function enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) { |
|
| 135 | + public function enqueueScript( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) { |
|
| 136 | 136 | return $this->oResource->_enqueueScript( $sSRC, $aPostTypes, $aCustomArgs ); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * @param array (optional) The argument array for more advanced parameters. |
| 133 | 133 | * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned. |
| 134 | 134 | */ |
| 135 | - public function enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) { |
|
| 135 | + public function enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) { |
|
| 136 | 136 | return $this->oResource->_enqueueScript( $sSRC, $aPostTypes, $aCustomArgs ); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -63,21 +63,21 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function _replyToSaveFieldValues( $iUserID ) { |
| 65 | 65 | |
| 66 | - if ( ! current_user_can( 'edit_user', $iUserID ) ) { |
|
| 66 | + if ( !current_user_can( 'edit_user', $iUserID ) ) { |
|
| 67 | 67 | return; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | // Extract the fields data from $_POST |
| 71 | 71 | // Retrieve the submitted data. |
| 72 | - $_aInputs = $this->oForm->getSubmittedData( |
|
| 73 | - $_POST, // subject data to be parsed |
|
| 74 | - true, // extract data with the fieldset structure |
|
| 72 | + $_aInputs = $this->oForm->getSubmittedData( |
|
| 73 | + $_POST, // subject data to be parsed |
|
| 74 | + true, // extract data with the fieldset structure |
|
| 75 | 75 | false // strip slashes |
| 76 | 76 | ); |
| 77 | - $_aInputsRaw = $_aInputs; // store one for the last input array. |
|
| 77 | + $_aInputsRaw = $_aInputs; // store one for the last input array. |
|
| 78 | 78 | |
| 79 | 79 | // Prepare the saved data. For a new post, the id is set to 0. |
| 80 | - $_aSavedMeta = $this->oUtil->getSavedUserMetaArray( $iUserID, array_keys( $_aInputs ) ); |
|
| 80 | + $_aSavedMeta = $this->oUtil->getSavedUserMetaArray( $iUserID, array_keys( $_aInputs ) ); |
|
| 81 | 81 | |
| 82 | 82 | // Apply filters to the array of the submitted values. |
| 83 | 83 | $_aInputs = $this->oUtil->addAndApplyFilters( |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | $this->oForm->updateMetaDataByType( |
| 100 | - $iUserID, // object id |
|
| 101 | - $_aInputs, // user submit form data |
|
| 100 | + $iUserID, // object id |
|
| 101 | + $_aInputs, // user submit form data |
|
| 102 | 102 | $this->oForm->dropRepeatableElements( $_aSavedMeta ), // Drop repeatable section elements from the saved meta array. |
| 103 | 103 | $this->oForm->sStructureType // fields type |
| 104 | 104 | ); |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Admin Page Framework |
|
| 4 | - * |
|
| 5 | - * http://en.michaeluno.jp/admin-page-framework/ |
|
| 6 | - * Copyright (c) 2013-2016 Michael Uno; Licensed MIT |
|
| 7 | - */ |
|
| 3 | + * Admin Page Framework |
|
| 4 | + * |
|
| 5 | + * http://en.michaeluno.jp/admin-page-framework/ |
|
| 6 | + * Copyright (c) 2013-2016 Michael Uno; Licensed MIT |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Provides an abstract base class to create custom fields in texonomy definition pages. |
@@ -45,17 +45,17 @@ |
||
| 45 | 45 | $_aOutput = array(); |
| 46 | 46 | |
| 47 | 47 | // Get the field outputs |
| 48 | - $_aOutput[] = $this->oForm->get(); |
|
| 48 | + $_aOutput[ ] = $this->oForm->get(); |
|
| 49 | 49 | |
| 50 | 50 | // Filter the output |
| 51 | 51 | $_sOutput = $this->oUtil->addAndApplyFilters( |
| 52 | 52 | $this, |
| 53 | - 'content_' . $this->oProp->sClassName, |
|
| 53 | + 'content_'.$this->oProp->sClassName, |
|
| 54 | 54 | $this->content( implode( PHP_EOL, $_aOutput ) ) |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | // Do action |
| 58 | - $this->oUtil->addAndDoActions( $this, 'do_' . $this->oProp->sClassName, $this ); |
|
| 58 | + $this->oUtil->addAndDoActions( $this, 'do_'.$this->oProp->sClassName, $this ); |
|
| 59 | 59 | |
| 60 | 60 | // Output |
| 61 | 61 | echo $_sOutput; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function get() { |
| 46 | 46 | |
| 47 | - if ( ! $this->iUserID ) { |
|
| 47 | + if ( !$this->iUserID ) { |
|
| 48 | 48 | return array(); |
| 49 | 49 | } |
| 50 | 50 | return $this->_getSavedDataFromFieldsets( |
@@ -63,11 +63,11 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | $_aMetaKeys = array_keys( get_user_meta( $iUserID ) ); |
| 65 | 65 | $_aMetaData = array(); |
| 66 | - foreach( $aFieldsets as $_sSectionID => $_aFieldsets ) { |
|
| 66 | + foreach ( $aFieldsets as $_sSectionID => $_aFieldsets ) { |
|
| 67 | 67 | |
| 68 | - if ( '_default' == $_sSectionID ) { |
|
| 69 | - foreach( $_aFieldsets as $_aFieldset ) { |
|
| 70 | - if ( ! in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) { |
|
| 68 | + if ( '_default' == $_sSectionID ) { |
|
| 69 | + foreach ( $_aFieldsets as $_aFieldset ) { |
|
| 70 | + if ( !in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) { |
|
| 71 | 71 | continue; |
| 72 | 72 | } |
| 73 | 73 | $_aMetaData[ $_aFieldset[ 'field_id' ] ] = get_user_meta( |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ); |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | - if ( ! in_array( $_sSectionID, $_aMetaKeys ) ) { |
|
| 80 | + if ( !in_array( $_sSectionID, $_aMetaKeys ) ) { |
|
| 81 | 81 | continue; |
| 82 | 82 | } |
| 83 | 83 | $_aMetaData[ $_sSectionID ] = get_user_meta( |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * @package AdminPageFramework |
| 16 | 16 | * @subpackage Widget |
| 17 | 17 | */ |
| 18 | -abstract class AdminPageFramework_Widget extends AdminPageFramework_Widget_Controller { |
|
| 18 | +abstract class AdminPageFramework_Widget extends AdminPageFramework_Widget_Controller { |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Defines the class object structure type. |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function __construct( $sWidgetTitle, $aWidgetArguments=array(), $sCapability='edit_theme_options', $sTextDomain='admin-page-framework' ) { |
| 46 | 46 | |
| 47 | - if ( empty( $sWidgetTitle ) ) { |
|
| 47 | + if ( empty( $sWidgetTitle ) ) { |
|
| 48 | 48 | return; |
| 49 | 49 | } |
| 50 | 50 | |
@@ -25,19 +25,19 @@ |
||
| 25 | 25 | static protected $_sFieldsType = 'widget'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * The constructor of the class object. |
|
| 29 | - * |
|
| 30 | - * Registers necessary hooks and sets up internal properties. |
|
| 31 | - * |
|
| 32 | - * <h4>Example</h4> |
|
| 33 | - * <code> |
|
| 34 | - * new APF_Widget( __( 'Admin Page Framework', 'admin-page-framework-demo' ) ); // the widget title |
|
| 35 | - * new APF_Widget_CustomFieldTypes( __( 'APF - Advanced', 'admin-page-framework-demo' ) ); |
|
| 36 | - * new APF_Widget_Example( __( 'APF - GitHub Button', 'admin-page-framework-demo' ) ); |
|
| 37 | - * </code> |
|
| 38 | - * |
|
| 39 | - * @return void |
|
| 40 | - */ |
|
| 28 | + * The constructor of the class object. |
|
| 29 | + * |
|
| 30 | + * Registers necessary hooks and sets up internal properties. |
|
| 31 | + * |
|
| 32 | + * <h4>Example</h4> |
|
| 33 | + * <code> |
|
| 34 | + * new APF_Widget( __( 'Admin Page Framework', 'admin-page-framework-demo' ) ); // the widget title |
|
| 35 | + * new APF_Widget_CustomFieldTypes( __( 'APF - Advanced', 'admin-page-framework-demo' ) ); |
|
| 36 | + * new APF_Widget_Example( __( 'APF - GitHub Button', 'admin-page-framework-demo' ) ); |
|
| 37 | + * </code> |
|
| 38 | + * |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 41 | 41 | public function __construct( $sWidgetTitle, $aWidgetArguments=array(), $sCapability='edit_theme_options', $sTextDomain='admin-page-framework' ) { |
| 42 | 42 | |
| 43 | 43 | if ( empty( $sWidgetTitle ) ) { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @return void |
| 44 | 44 | */ |
| 45 | - public function __construct( $sWidgetTitle, $aWidgetArguments=array(), $sCapability='edit_theme_options', $sTextDomain='admin-page-framework' ) { |
|
| 45 | + public function __construct( $sWidgetTitle, $aWidgetArguments = array(), $sCapability = 'edit_theme_options', $sTextDomain = 'admin-page-framework' ) { |
|
| 46 | 46 | |
| 47 | 47 | if ( empty( $sWidgetTitle ) ) { |
| 48 | 48 | return; |
@@ -51,13 +51,13 @@ discard block |
||
| 51 | 51 | // Properties |
| 52 | 52 | $_sProprtyClassName = isset( $this->aSubClassNames[ 'oProp' ] ) |
| 53 | 53 | ? $this->aSubClassNames[ 'oProp' ] |
| 54 | - : 'AdminPageFramework_Property_' . $this->_sStructureType; |
|
| 54 | + : 'AdminPageFramework_Property_'.$this->_sStructureType; |
|
| 55 | 55 | $this->oProp = new $_sProprtyClassName( |
| 56 | - $this, // caller object |
|
| 57 | - null, // the caller script path |
|
| 58 | - get_class( $this ), // class name |
|
| 59 | - $sCapability, // capability |
|
| 60 | - $sTextDomain, // text domain |
|
| 56 | + $this, // caller object |
|
| 57 | + null, // the caller script path |
|
| 58 | + get_class( $this ), // class name |
|
| 59 | + $sCapability, // capability |
|
| 60 | + $sTextDomain, // text domain |
|
| 61 | 61 | $this->_sStructureType // fields type |
| 62 | 62 | ); |
| 63 | 63 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * @since 3.2.0 |
| 151 | 151 | * @internal Temporarily marked internal |
| 152 | 152 | */ |
| 153 | - public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
| 153 | + public function enqueueStyles( $aSRCs, $aCustomArgs = array() ) { |
|
| 154 | 154 | if ( method_exists( $this->oResource, '_enqueueStyles' ) ) { |
| 155 | 155 | return $this->oResource->_enqueueStyles( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
| 156 | 156 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * @since 3.2.0 |
| 164 | 164 | * @internal Temporarily marked internal |
| 165 | 165 | */ |
| 166 | - public function enqueueStyle( $sSRC, $aCustomArgs=array() ) { |
|
| 166 | + public function enqueueStyle( $sSRC, $aCustomArgs = array() ) { |
|
| 167 | 167 | if ( method_exists( $this->oResource, '_enqueueStyle' ) ) { |
| 168 | 168 | return $this->oResource->_enqueueStyle( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
| 169 | 169 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * @since 3.2.0 |
| 177 | 177 | * @internal Temporarily marked internal |
| 178 | 178 | */ |
| 179 | - public function enqueueScripts( $aSRCs, $aCustomArgs=array() ) { |
|
| 179 | + public function enqueueScripts( $aSRCs, $aCustomArgs = array() ) { |
|
| 180 | 180 | if ( method_exists( $this->oResource, '_enqueueScripts' ) ) { |
| 181 | 181 | return $this->oResource->_enqueueScripts( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
| 182 | 182 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * @since 3.2.0 |
| 190 | 190 | * @internal Temporarily marked internal |
| 191 | 191 | */ |
| 192 | - public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
| 192 | + public function enqueueScript( $sSRC, $aCustomArgs = array() ) { |
|
| 193 | 193 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
| 194 | 194 | return $this->oResource->_enqueueScript( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
| 195 | 195 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * @since 3.2.0 |
| 204 | 204 | * @return void |
| 205 | 205 | */ |
| 206 | - protected function setArguments( array $aArguments=array() ) { |
|
| 206 | + protected function setArguments( array $aArguments = array() ) { |
|
| 207 | 207 | $this->oProp->aWidgetArguments = $aArguments; |
| 208 | 208 | } |
| 209 | 209 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @package AdminPageFramework |
| 18 | 18 | * @subpackage Widget |
| 19 | 19 | */ |
| 20 | -abstract class AdminPageFramework_Widget_Controller extends AdminPageFramework_Widget_View { |
|
| 20 | +abstract class AdminPageFramework_Widget_Controller extends AdminPageFramework_Widget_View { |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * The method for necessary set-ups. |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @since 3.2.0 |
| 127 | 127 | * @internal Temporarily marked internal |
| 128 | 128 | */ |
| 129 | - public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
| 129 | + public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
| 130 | 130 | if ( method_exists( $this->oResource, '_enqueueStyles' ) ) { |
| 131 | 131 | return $this->oResource->_enqueueStyles( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
| 132 | 132 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * @since 3.2.0 |
| 166 | 166 | * @internal Temporarily marked internal |
| 167 | 167 | */ |
| 168 | - public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
| 168 | + public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
| 169 | 169 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
| 170 | 170 | return $this->oResource->_enqueueScript( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
| 171 | 171 | } |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Admin Page Framework |
|
| 4 | - * |
|
| 5 | - * http://en.michaeluno.jp/admin-page-framework/ |
|
| 6 | - * Copyright (c) 2013-2016 Michael Uno; Licensed MIT |
|
| 7 | - * |
|
| 8 | - */ |
|
| 3 | + * Admin Page Framework |
|
| 4 | + * |
|
| 5 | + * http://en.michaeluno.jp/admin-page-framework/ |
|
| 6 | + * Copyright (c) 2013-2016 Michael Uno; Licensed MIT |
|
| 7 | + * |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Provides methods of views for the widget factory class. |
@@ -20,22 +20,22 @@ discard block |
||
| 20 | 20 | abstract class AdminPageFramework_Widget_Controller extends AdminPageFramework_Widget_View { |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * The method for necessary set-ups. |
|
| 24 | - * |
|
| 25 | - * <h4>Example</h4> |
|
| 26 | - * <code> |
|
| 27 | - * public function setUp() { |
|
| 28 | - * $this->setArguments( |
|
| 29 | - * array( |
|
| 30 | - * 'description' => __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ), |
|
| 31 | - * ) |
|
| 32 | - * ); |
|
| 33 | - * } |
|
| 34 | - * </code> |
|
| 35 | - * |
|
| 36 | - * @abstract |
|
| 37 | - * @since 3.2.0 |
|
| 38 | - */ |
|
| 23 | + * The method for necessary set-ups. |
|
| 24 | + * |
|
| 25 | + * <h4>Example</h4> |
|
| 26 | + * <code> |
|
| 27 | + * public function setUp() { |
|
| 28 | + * $this->setArguments( |
|
| 29 | + * array( |
|
| 30 | + * 'description' => __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ), |
|
| 31 | + * ) |
|
| 32 | + * ); |
|
| 33 | + * } |
|
| 34 | + * </code> |
|
| 35 | + * |
|
| 36 | + * @abstract |
|
| 37 | + * @since 3.2.0 |
|
| 38 | + */ |
|
| 39 | 39 | public function setUp() {} |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | if ( $this->oProp->bIsAdmin ) { |
| 41 | 41 | add_filter( |
| 42 | - 'validation_' . $this->oProp->sClassName, |
|
| 42 | + 'validation_'.$this->oProp->sClassName, |
|
| 43 | 43 | array( $this, '_replyToSortInputs' ), |
| 44 | - 1, // set a high priority |
|
| 44 | + 1, // set a high priority |
|
| 45 | 45 | 3 // number of parameters |
| 46 | 46 | ); |
| 47 | 47 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | public function _replyToRegisterWidget() { |
| 112 | 112 | |
| 113 | 113 | global $wp_widget_factory; |
| 114 | - if ( ! is_object( $wp_widget_factory ) ) { |
|
| 114 | + if ( !is_object( $wp_widget_factory ) ) { |
|
| 115 | 115 | return; |
| 116 | 116 | } |
| 117 | 117 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * @subpackage Widget |
| 19 | 19 | * @internal |
| 20 | 20 | */ |
| 21 | -abstract class AdminPageFramework_Widget_Model extends AdminPageFramework_Widget_Router { |
|
| 21 | +abstract class AdminPageFramework_Widget_Model extends AdminPageFramework_Widget_Router { |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Sets up hooks and properties. |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @return array |
| 53 | 53 | * @callback filter validation_{factory class name} |
| 54 | 54 | */ |
| 55 | - public function _replyToSortInputs( $aSubmittedFormData, $aStoredFormData, $oFactory ) { |
|
| 55 | + public function _replyToSortInputs( $aSubmittedFormData, $aStoredFormData, $oFactory ) { |
|
| 56 | 56 | // @todo examine whether stripslashes_deep() is necessary or not. |
| 57 | 57 | return $this->oForm->getSortedInputs( $aSubmittedFormData ); |
| 58 | 58 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function _replyToRegisterWidget() { |
| 111 | 111 | |
| 112 | 112 | global $wp_widget_factory; |
| 113 | - if ( ! is_object( $wp_widget_factory ) ) { |
|
| 113 | + if ( ! is_object( $wp_widget_factory ) ) { |
|
| 114 | 114 | return; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * @subpackage Widget |
| 17 | 17 | * @internal |
| 18 | 18 | */ |
| 19 | -abstract class AdminPageFramework_Widget_Router extends AdminPageFramework_Factory { |
|
| 19 | +abstract class AdminPageFramework_Widget_Router extends AdminPageFramework_Factory { |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Determines whether the currently loaded page is of the post type page. |