@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | * @static |
| 25 | 25 | */ |
| 26 | 26 | static public $aStructure = array( |
| 27 | - 'src' => null, // (required, string) the source url or path |
|
| 28 | - 'handle_id' => null, // (optional, string) The handle ID of the stylesheet |
|
| 29 | - 'dependencies' => null, // (optional, array) The dependency array. |
|
| 30 | - 'version' => null, // (optional, string) The stylesheet version number. |
|
| 31 | - 'media' => null, // (optional, string) the description of the field which is inserted into the after the input field tag. |
|
| 27 | + 'src' => null, // (required, string) the source url or path |
|
| 28 | + 'handle_id' => null, // (optional, string) The handle ID of the stylesheet |
|
| 29 | + 'dependencies' => null, // (optional, array) The dependency array. |
|
| 30 | + 'version' => null, // (optional, string) The stylesheet version number. |
|
| 31 | + 'media' => null, // (optional, string) the description of the field which is inserted into the after the input field tag. |
|
| 32 | 32 | // 'attributes' => null, // (optional, array) [3.3.0+] attributes array. `array( 'data-id' => '...' )` |
| 33 | 33 | ); |
| 34 | 34 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $_aParameters = func_get_args() + array( |
| 42 | 42 | $this->asSubject, |
| 43 | 43 | ); |
| 44 | - $this->asSubject = $_aParameters[ 0 ]; |
|
| 44 | + $this->asSubject = $_aParameters[ 0 ]; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Represents the structure of the sub-field definition array. |
| 22 | - |
|
| 23 | 22 | */ |
| 24 | 23 | static public $aStructure = array( |
| 25 | 24 | ); |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | 'page_slug' => null, // (required) |
| 33 | 33 | 'type' => 'page', // this is used to compare with the link type. |
| 34 | 34 | 'title' => null, |
| 35 | - 'page_title' => null, // (optional) 3.3.0+ When the page title is different from the above 'title' argument, set this. |
|
| 36 | - 'menu_title' => null, // (optional) 3.3.0+ When the menu title is different from the above 'title' argument, set this. |
|
| 35 | + 'page_title' => null, // (optional) 3.3.0+ When the page title is different from the above 'title' argument, set this. |
|
| 36 | + 'menu_title' => null, // (optional) 3.3.0+ When the menu title is different from the above 'title' argument, set this. |
|
| 37 | 37 | 'screen_icon' => null, // this will become either href_icon_32x32 or screen_icon_id |
| 38 | 38 | 'capability' => null, |
| 39 | 39 | 'order' => null, |
@@ -113,12 +113,12 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | $aSubMenuPage = $aSubMenuPage |
| 115 | 115 | + array( |
| 116 | - 'show_page_title' => $this->oFactory->oProp->bShowPageTitle, // boolean |
|
| 116 | + 'show_page_title' => $this->oFactory->oProp->bShowPageTitle, // boolean |
|
| 117 | 117 | 'show_page_heading_tabs' => $this->oFactory->oProp->bShowPageHeadingTabs, // boolean |
| 118 | - 'show_in_page_tabs' => $this->oFactory->oProp->bShowInPageTabs, // boolean |
|
| 119 | - 'in_page_tab_tag' => $this->oFactory->oProp->sInPageTabTag, // string |
|
| 120 | - 'page_heading_tab_tag' => $this->oFactory->oProp->sPageHeadingTabTag, // string |
|
| 121 | - 'capability' => $this->oFactory->oProp->sCapability, // 3.6.0+ |
|
| 118 | + 'show_in_page_tabs' => $this->oFactory->oProp->bShowInPageTabs, // boolean |
|
| 119 | + 'in_page_tab_tag' => $this->oFactory->oProp->sInPageTabTag, // string |
|
| 120 | + 'page_heading_tab_tag' => $this->oFactory->oProp->sPageHeadingTabTag, // string |
|
| 121 | + 'capability' => $this->oFactory->oProp->sCapability, // 3.6.0+ |
|
| 122 | 122 | ) |
| 123 | 123 | + self::$aStructure; |
| 124 | 124 | |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Renders a registered meta box. |
| 23 | - |
|
| 24 | 23 | * @return void |
| 25 | 24 | * @param string $sContext `side`, `normal`, or `advanced`. |
| 26 | 25 | * @since 3.0.0 |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | public function render( $sContext ) { |
| 30 | 30 | |
| 31 | 31 | // If nothing is registered do not render even the container. |
| 32 | - if ( ! $this->doesMetaBoxExist() ) { |
|
| 32 | + if ( !$this->doesMetaBoxExist() ) { |
|
| 33 | 33 | return; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $_sTag = $this->_getInPageTabTag( $sTag, $_aPage ); |
| 74 | 74 | |
| 75 | 75 | // If the in-page tabs' visibility is set to false, returns the title. |
| 76 | - if ( ! $_aPage[ 'show_in_page_tabs' ] ) { |
|
| 76 | + if ( !$_aPage[ 'show_in_page_tabs' ] ) { |
|
| 77 | 77 | return isset( $aInPageTabs[ $_sCurrentTabSlug ][ 'title' ] ) |
| 78 | 78 | ? "<{$_sTag}>" |
| 79 | 79 | . $aInPageTabs[ $_sCurrentTabSlug ][ 'title' ] |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | private function _getInPageTabNavigationBar( array $aTabs, $sActiveTab, $sCurrentPageSlug, $sTag ) { |
| 101 | 101 | |
| 102 | 102 | $_oTabBar = new AdminPageFramework_TabNavigationBar( |
| 103 | - $aTabs, // tabs |
|
| 103 | + $aTabs, // tabs |
|
| 104 | 104 | $sActiveTab, // active tab slug |
| 105 | - $sTag, // container tag |
|
| 105 | + $sTag, // container tag |
|
| 106 | 106 | array( // container attributes |
| 107 | 107 | 'class' => 'in-page-tab', |
| 108 | 108 | ), |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * @since 3.5.10 |
| 131 | 131 | * @since 3.6.3 Moved from `AdminPageFramework_Page_View`. |
| 132 | 132 | */ |
| 133 | - public function _replyToFormatNavigationTabItem_InPageTab( array $aTab, array $aStructure, array $aTabs, array $aArguments=array() ) { |
|
| 133 | + public function _replyToFormatNavigationTabItem_InPageTab( array $aTab, array $aStructure, array $aTabs, array $aArguments = array() ) { |
|
| 134 | 134 | $_oFormatter = new AdminPageFramework_Format_NavigationTab_InPageTab( |
| 135 | 135 | $aTab, |
| 136 | 136 | $aStructure, |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function _appendInlineAssets( $sInline, &$aContainer ) { |
| 69 | 69 | $_aInlines = array_unique( $aContainer ); |
| 70 | - $sInline = PHP_EOL . $sInline; |
|
| 71 | - foreach( $_aInlines as $_iIndex => $_sInline ) { |
|
| 72 | - $sInline .= $_sInline . PHP_EOL; |
|
| 70 | + $sInline = PHP_EOL.$sInline; |
|
| 71 | + foreach ( $_aInlines as $_iIndex => $_sInline ) { |
|
| 72 | + $sInline .= $_sInline.PHP_EOL; |
|
| 73 | 73 | unset( $_aInlines[ $_iIndex ] ); |
| 74 | 74 | } |
| 75 | 75 | $aContainer = $_aInlines; // update the container array. |
@@ -83,23 +83,23 @@ discard block |
||
| 83 | 83 | private function _parseAssets( $oFactory ) { |
| 84 | 84 | |
| 85 | 85 | // page |
| 86 | - $_aPageStyles = $this->getElementAsArray( |
|
| 86 | + $_aPageStyles = $this->getElementAsArray( |
|
| 87 | 87 | $oFactory->oProp->aPages, |
| 88 | 88 | array( $this->sCurrentPageSlug, 'style' ) |
| 89 | 89 | ); |
| 90 | 90 | $this->_enqueuePageAssets( $_aPageStyles, 'style' ); |
| 91 | 91 | |
| 92 | - $_aPageScripts = $this->getElementAsArray( |
|
| 92 | + $_aPageScripts = $this->getElementAsArray( |
|
| 93 | 93 | $oFactory->oProp->aPages, |
| 94 | 94 | array( $this->sCurrentPageSlug, 'script' ) |
| 95 | 95 | ); |
| 96 | 96 | $this->_enqueuePageAssets( $_aPageScripts, 'script' ); |
| 97 | 97 | |
| 98 | 98 | // In-page tabs |
| 99 | - if ( ! $this->sCurrentTabSlug ) { |
|
| 99 | + if ( !$this->sCurrentTabSlug ) { |
|
| 100 | 100 | return; |
| 101 | 101 | } |
| 102 | - $_aInPageTabStyles = $this->getElementAsArray( |
|
| 102 | + $_aInPageTabStyles = $this->getElementAsArray( |
|
| 103 | 103 | $oFactory->oProp->aInPageTabs, |
| 104 | 104 | array( $this->sCurrentPageSlug, $this->sCurrentTabSlug, 'style' ) |
| 105 | 105 | ); |
@@ -116,10 +116,10 @@ discard block |
||
| 116 | 116 | * @since 3.6.3 |
| 117 | 117 | * @return void |
| 118 | 118 | */ |
| 119 | - private function _enqueuePageAssets( array $aPageAssets, $sType='style' ) { |
|
| 120 | - $_sMathodName = "_enqueueAsset_" . $sType; |
|
| 121 | - foreach( $aPageAssets as $_asPageAsset ) { |
|
| 122 | - $this->{$_sMathodName}( $_asPageAsset); |
|
| 119 | + private function _enqueuePageAssets( array $aPageAssets, $sType = 'style' ) { |
|
| 120 | + $_sMathodName = "_enqueueAsset_".$sType; |
|
| 121 | + foreach ( $aPageAssets as $_asPageAsset ) { |
|
| 122 | + $this->{$_sMathodName}( $_asPageAsset ); |
|
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | // Insert the CSS rule in the head tag. |
| 147 | - $this->aCSSRules[] = $_sSRC; |
|
| 147 | + $this->aCSSRules[ ] = $_sSRC; |
|
| 148 | 148 | |
| 149 | 149 | } |
| 150 | 150 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | // Insert the scripts in the head tag. |
| 172 | - $this->aScripts[] = $_sSRC; |
|
| 172 | + $this->aScripts[ ] = $_sSRC; |
|
| 173 | 173 | |
| 174 | 174 | } |
| 175 | 175 | |
@@ -136,11 +136,11 @@ |
||
| 136 | 136 | * |
| 137 | 137 | * Triggered when a post has not been created so no post id is assigned. |
| 138 | 138 | * |
| 139 | - * @internal |
|
| 139 | + * @internal |
|
| 140 | 140 | * @since 3.3.0 |
| 141 | 141 | * @callback filter wp_insert_attachment_data |
| 142 | 142 | * @callback filter wp_insert_post_data |
| 143 | - * @param array $aPostData An array of slashed post data. |
|
| 143 | + * @param array $aPostData An array of slashed post data. |
|
| 144 | 144 | * @param array $aUnmodified An array of sanitized, but otherwise unmodified post data. |
| 145 | 145 | */ |
| 146 | 146 | public function _replyToFilterSavingData( $aPostData, $aUnmodified ) { |
@@ -32,6 +32,8 @@ |
||
| 32 | 32 | * Sets up properties and hooks. |
| 33 | 33 | * |
| 34 | 34 | * @since 3.0.4 |
| 35 | + * @param string $sMetaBoxID |
|
| 36 | + * @param string $sTitle |
|
| 35 | 37 | */ |
| 36 | 38 | public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
| 37 | 39 | |
@@ -22,12 +22,12 @@ discard block |
||
| 22 | 22 | * Sets up hooks. |
| 23 | 23 | * @since 3.7.9 |
| 24 | 24 | */ |
| 25 | - public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) { |
|
| 25 | + public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID = array( 'post' ), $sContext = 'normal', $sPriority = 'default', $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework' ) { |
|
| 26 | 26 | |
| 27 | 27 | // This is important to set the hooks before the parent constructor |
| 28 | 28 | // as the setUp wil be called in there if the default action hook (current_screen) is already triggered. |
| 29 | - add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) ); |
|
| 30 | - add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpValidationHooks' ) ); |
|
| 29 | + add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) ); |
|
| 30 | + add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpValidationHooks' ) ); |
|
| 31 | 31 | |
| 32 | 32 | parent::__construct( |
| 33 | 33 | $sMetaBoxID, |
@@ -107,14 +107,14 @@ discard block |
||
| 107 | 107 | * @callback action add_meta_boxes |
| 108 | 108 | */ |
| 109 | 109 | public function _replyToRegisterMetaBoxes() { |
| 110 | - foreach( $this->oProp->aPostTypes as $sPostType ) { |
|
| 110 | + foreach ( $this->oProp->aPostTypes as $sPostType ) { |
|
| 111 | 111 | add_meta_box( |
| 112 | - $this->oProp->sMetaBoxID, // id |
|
| 113 | - $this->oProp->sTitle, // title |
|
| 112 | + $this->oProp->sMetaBoxID, // id |
|
| 113 | + $this->oProp->sTitle, // title |
|
| 114 | 114 | array( $this, '_replyToPrintMetaBoxContents' ), // callback |
| 115 | - $sPostType, // post type |
|
| 116 | - $this->oProp->sContext, // context |
|
| 117 | - $this->oProp->sPriority, // priority |
|
| 115 | + $sPostType, // post type |
|
| 116 | + $this->oProp->sContext, // context |
|
| 117 | + $this->oProp->sPriority, // priority |
|
| 118 | 118 | null // argument - deprecated $this->oForm->aFields |
| 119 | 119 | ); |
| 120 | 120 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @internal |
| 147 | 147 | * @return integer The found post ID. `0` if not found. |
| 148 | 148 | */ |
| 149 | - private function _getPostID() { |
|
| 149 | + private function _getPostID() { |
|
| 150 | 150 | |
| 151 | 151 | // for an editing post page. |
| 152 | 152 | if ( isset( $GLOBALS[ 'post' ]->ID ) ) { |
@@ -179,14 +179,14 @@ discard block |
||
| 179 | 179 | public function _replyToFilterSavingData( $aPostData, $aUnmodified ) { |
| 180 | 180 | |
| 181 | 181 | // Perform initial checks. |
| 182 | - if ( ! $this->_shouldProceedValidation( $aUnmodified ) ) { |
|
| 182 | + if ( !$this->_shouldProceedValidation( $aUnmodified ) ) { |
|
| 183 | 183 | return $aPostData; |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | // Retrieve the submitted data. |
| 187 | - $_aInputs = $this->oForm->getSubmittedData( |
|
| 188 | - $_POST, // subject data to be parsed |
|
| 189 | - true, // extract data with the fieldset structure |
|
| 187 | + $_aInputs = $this->oForm->getSubmittedData( |
|
| 188 | + $_POST, // subject data to be parsed |
|
| 189 | + true, // extract data with the fieldset structure |
|
| 190 | 190 | false // strip slashes |
| 191 | 191 | ); |
| 192 | 192 | $_aInputsRaw = $_aInputs; // store one for the last input array. |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | $this->oForm->updateMetaDataByType( |
| 224 | - $_iPostID, // object id |
|
| 225 | - $_aInputs, // user submit form data |
|
| 224 | + $_iPostID, // object id |
|
| 225 | + $_aInputs, // user submit form data |
|
| 226 | 226 | $this->oForm->dropRepeatableElements( $_aSavedMeta ), // Drop repeatable section elements from the saved meta array. |
| 227 | 227 | $this->oForm->sStructureType // fields type |
| 228 | 228 | ); |
@@ -280,14 +280,14 @@ discard block |
||
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | // If our nonce isn't there, or we can't verify it, bail |
| 283 | - if ( ! isset( $_POST[ $this->oProp->sMetaBoxID ] ) ) { |
|
| 283 | + if ( !isset( $_POST[ $this->oProp->sMetaBoxID ] ) ) { |
|
| 284 | 284 | return false; |
| 285 | 285 | } |
| 286 | - if ( ! wp_verify_nonce( $_POST[ $this->oProp->sMetaBoxID ], $this->oProp->sMetaBoxID ) ) { |
|
| 286 | + if ( !wp_verify_nonce( $_POST[ $this->oProp->sMetaBoxID ], $this->oProp->sMetaBoxID ) ) { |
|
| 287 | 287 | return false; |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | - if ( ! in_array( $aUnmodified[ 'post_type' ], $this->oProp->aPostTypes ) ) { |
|
| 290 | + if ( !in_array( $aUnmodified[ 'post_type' ], $this->oProp->aPostTypes ) ) { |
|
| 291 | 291 | return false; |
| 292 | 292 | } |
| 293 | 293 | |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | * @internal |
| 147 | 147 | * @return integer The found post ID. `0` if not found. |
| 148 | 148 | */ |
| 149 | - private function _getPostID() { |
|
| 149 | + private function _getPostID() { |
|
| 150 | 150 | |
| 151 | 151 | // for an editing post page. |
| 152 | 152 | if ( isset( $GLOBALS[ 'post' ]->ID ) ) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function get() { |
| 46 | 46 | |
| 47 | - if ( ! $this->iPostID ) { |
|
| 47 | + if ( !$this->iPostID ) { |
|
| 48 | 48 | return array(); |
| 49 | 49 | } |
| 50 | 50 | return $this->_getSavedDataFromFieldsets( |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | ); |
| 67 | 67 | |
| 68 | 68 | $_aMetaData = array(); |
| 69 | - foreach( $aFieldsets as $_sSectionID => $_aFieldsets ) { |
|
| 69 | + foreach ( $aFieldsets as $_sSectionID => $_aFieldsets ) { |
|
| 70 | 70 | |
| 71 | - if ( '_default' == $_sSectionID ) { |
|
| 72 | - foreach( $_aFieldsets as $_aFieldset ) { |
|
| 73 | - if ( ! in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) { |
|
| 71 | + if ( '_default' == $_sSectionID ) { |
|
| 72 | + foreach ( $_aFieldsets as $_aFieldset ) { |
|
| 73 | + if ( !in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) { |
|
| 74 | 74 | continue; |
| 75 | 75 | } |
| 76 | 76 | $_aMetaData[ $_aFieldset[ 'field_id' ] ] = get_post_meta( |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | ); |
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | - if ( ! in_array( $_sSectionID, $_aMetaKeys ) ) { |
|
| 83 | + if ( !in_array( $_sSectionID, $_aMetaKeys ) ) { |
|
| 84 | 84 | continue; |
| 85 | 85 | } |
| 86 | 86 | $_aMetaData[ $_sSectionID ] = get_post_meta( |
@@ -30,12 +30,12 @@ discard block |
||
| 30 | 30 | protected $_aBuiltInRootMenuSlugs = array( |
| 31 | 31 | // All keys must be lower case to support case insensitive look-ups. |
| 32 | 32 | 'dashboard' => 'index.php', |
| 33 | - 'sites' => 'sites.php', // not work |
|
| 34 | - 'themes' => 'themes.php', // not work |
|
| 33 | + 'sites' => 'sites.php', // not work |
|
| 34 | + 'themes' => 'themes.php', // not work |
|
| 35 | 35 | 'plugins' => 'plugins.php', |
| 36 | 36 | 'users' => 'users.php', |
| 37 | 37 | 'settings' => 'settings.php', |
| 38 | - 'updates' => 'update-core.php', // does not work |
|
| 38 | + 'updates' => 'update-core.php', // does not work |
|
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | * @param string $sTextDomain (optional) the <a href="http://codex.wordpress.org/I18n_for_WordPress_Developers#Text_Domains" target="_blank">text domain</a> used for the framework's system messages. Default: `admin-page-framework`. |
| 56 | 56 | * @return void returns nothing. |
| 57 | 57 | */ |
| 58 | - public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_network', $sTextDomain='admin-page-framework' ){ |
|
| 58 | + public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_network', $sTextDomain = 'admin-page-framework' ) { |
|
| 59 | 59 | |
| 60 | - if ( ! $this->_isInstantiatable() ) { |
|
| 60 | + if ( !$this->_isInstantiatable() ) { |
|
| 61 | 61 | return; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | $sCallerPath = $sCallerPath |
| 67 | 67 | ? $sCallerPath |
| 68 | - : AdminPageFramework_Utility::getCallerScriptPath( __FILE__ ); // this is important to attempt to find the caller script path here when separating the library into multiple files. |
|
| 68 | + : AdminPageFramework_Utility::getCallerScriptPath( __FILE__ ); // this is important to attempt to find the caller script path here when separating the library into multiple files. |
|
| 69 | 69 | |
| 70 | 70 | $this->oProp = new AdminPageFramework_Property_NetworkAdmin( $this, $sCallerPath, get_class( $this ), $sOptionKey, $sCapability, $sTextDomain ); |
| 71 | 71 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | protected function _isInstantiatable() { |
| 83 | 83 | |
| 84 | - if ( isset( $GLOBALS['pagenow'] ) && 'admin-ajax.php' === $GLOBALS['pagenow'] ) { |
|
| 84 | + if ( isset( $GLOBALS[ 'pagenow' ] ) && 'admin-ajax.php' === $GLOBALS[ 'pagenow' ] ) { |
|
| 85 | 85 | return false; |
| 86 | 86 | } |
| 87 | 87 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * @param mixed $vDefault the default value that will be returned if nothing is stored. |
| 126 | 126 | * @return mixed If the field ID is not specified. |
| 127 | 127 | */ |
| 128 | - static public function getOption( $sOptionKey, $asKey=null , $vDefault=null ) { |
|
| 128 | + static public function getOption( $sOptionKey, $asKey = null, $vDefault = null ) { |
|
| 129 | 129 | return AdminPageFramework_WPUtility::getSiteOption( $sOptionKey, $asKey, $vDefault ); |
| 130 | 130 | } |
| 131 | 131 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * @param string $sTextDomain (optional) the <a href="http://codex.wordpress.org/I18n_for_WordPress_Developers#Text_Domains" target="_blank">text domain</a> used for the framework's system messages. Default: `admin-page-framework`. |
| 56 | 56 | * @return void returns nothing. |
| 57 | 57 | */ |
| 58 | - public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_network', $sTextDomain='admin-page-framework' ){ |
|
| 58 | + public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_network', $sTextDomain='admin-page-framework' ) { |
|
| 59 | 59 | |
| 60 | 60 | if ( ! $this->_isInstantiatable() ) { |
| 61 | 61 | return; |