|
@@ 61-74 (lines=14) @@
|
| 58 |
|
* @uses admin_url |
| 59 |
|
* @return string module settings URL |
| 60 |
|
*/ |
| 61 |
|
function jetpack_custom_css_configuration_url() { |
| 62 |
|
// Redirect to Core's CSS editor in the customizer if the feature is available. |
| 63 |
|
if ( function_exists( 'wp_get_custom_css' ) ) { |
| 64 |
|
$configuration_link = Jetpack_Custom_CSS_Enhancements::customizer_link( |
| 65 |
|
array( |
| 66 |
|
'return_url' => wp_get_referer(), |
| 67 |
|
) |
| 68 |
|
); |
| 69 |
|
} else { |
| 70 |
|
$configuration_link = admin_url( 'themes.php?page=editcss#settingsdiv' ); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
return $configuration_link; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
function custom_css_configuration_load() { |
| 77 |
|
// Redirect to Core's CSS editor in the customizer if the feature is available. |
|
@@ 76-90 (lines=15) @@
|
| 73 |
|
return $configuration_link; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
function custom_css_configuration_load() { |
| 77 |
|
// Redirect to Core's CSS editor in the customizer if the feature is available. |
| 78 |
|
if ( function_exists( 'wp_get_custom_css' ) ) { |
| 79 |
|
$configuration_link = Jetpack_Custom_CSS_Enhancements::customizer_link( |
| 80 |
|
array( |
| 81 |
|
'return_url' => wp_get_referer(), |
| 82 |
|
) |
| 83 |
|
); |
| 84 |
|
} else { |
| 85 |
|
$configuration_link = admin_url( 'themes.php?page=editcss#settingsdiv' ); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
wp_safe_redirect( $configuration_link ); |
| 89 |
|
exit; |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
jetpack_load_custom_css(); |
| 93 |
|
|