/** * Returns the field output. * * @since 3.0.0 * @internal */ protected function getFieldOutput($aField) { /* Since meta box fields don't have the `option_key` key which is required to compose the name attribute in the regular pages. */ $_sOptionKey = $this->_getOptionKey(); $aField['option_key'] = $_sOptionKey ? $_sOptionKey : null; $aField['page_slug'] = isset($_GET['page']) ? $_GET['page'] : ''; // set an empty string to make it yield true for isset() so that saved options will be checked. return parent::getFieldOutput($aField); }
protected function getFieldOutput($aField) { $aField['option_key'] = $this->_getOptionKey(); $aField['page_slug'] = $this->oProp->getCurrentPageSlug(); return parent::getFieldOutput($aField); }
protected function getFieldOutput($aField) { $_sOptionKey = $this->_getOptionKey(); $aField['option_key'] = $_sOptionKey ? $_sOptionKey : null; $aField['page_slug'] = isset($_GET['page']) ? $_GET['page'] : ''; return parent::getFieldOutput($aField); }