Changeset 3835
- Timestamp:
- 08/22/2016 04:34:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-settings.php
r3784 r3835 51 51 52 52 /** 53 * Get the URL for the Coming Soon section in the Customizer54 *55 * @return string56 */57 public function get_customizer_section_url() {58 $url = add_query_arg(59 array(60 'autofocus[section]' => 'wccsp_live_preview',61 'url' => rawurlencode( add_query_arg( 'wccsp-preview', '', site_url() ) ),62 ),63 admin_url( 'customize.php' )64 );65 66 return $url;67 }68 69 /**70 53 * Add a link to the Settings menu 71 54 * … … 74 57 */ 75 58 public function register_settings_pages() { 59 $menu_slug = add_query_arg( 60 array( 61 'autofocus[section]' => 'wccsp_live_preview', 62 'url' => rawurlencode( add_query_arg( 'wccsp-preview', '', site_url() ) ), 63 ), 64 '/customize.php' 65 ); 66 76 67 add_submenu_page( 77 68 'options-general.php', … … 79 70 __( 'Coming Soon', 'wordcamporg' ), 80 71 self::REQUIRED_CAPABILITY, 81 $ this->get_customizer_section_url()72 $menu_slug 82 73 ); 83 74 }
Note: See TracChangeset
for help on using the changeset viewer.