Changeset 20882 for trunk/wp-admin/customize.php
- Timestamp:
- 05/24/2012 07:17:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/customize.php
r20877 r20882 102 102 // insecure content warnings. This is not attempted if the admin and frontend 103 103 // are on different domains to avoid the case where the frontend doesn't have 104 // ssl certs. Domain mapping plugins can force ssl in these conditions using 105 // the customize_preview_link filter. 104 // ssl certs. Domain mapping plugins can allow other urls in these conditions 105 // using the customize_allowed_urls filter. 106 107 $allowed_urls = array( home_url('/') ); 106 108 $admin_origin = parse_url( admin_url() ); 107 $home_origin = parse_url( home_url() );108 $scheme = null; 109 $home_origin = parse_url( home_url() ); 110 109 111 if ( is_ssl() && ( $admin_origin[ 'host' ] == $home_origin[ 'host' ] ) ) 110 $ scheme = 'https';112 $allowed_urls[] = home_url( '/', 'https' ); 111 113 112 $ preview_url = apply_filters( 'customize_preview_link', home_url( '/', $scheme) );114 $allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) ); 113 115 114 116 $settings = array( … … 118 120 ), 119 121 'url' => array( 120 'preview' => esc_url( $preview_url),122 'preview' => esc_url( home_url( '/' ) ), 121 123 'parent' => esc_url( admin_url() ), 122 124 'ajax' => esc_url( admin_url( 'admin-ajax.php', 'relative' ) ), 125 'allowed' => array_map( 'esc_url', $allowed_urls ), 123 126 ), 124 127 'settings' => array(),
Note: See TracChangeset
for help on using the changeset viewer.