after-the-deadline
7 years ago
calypsoify
7 years ago
carousel
5 years ago
comment-likes
8 years ago
comments
7 years ago
contact-form
6 years ago
custom-css
7 years ago
custom-post-types
7 years ago
geo-location
7 years ago
google-analytics
7 years ago
gplus-authorship
6 years ago
infinite-scroll
7 years ago
lazy-images
7 years ago
likes
7 years ago
manage
8 years ago
markdown
7 years ago
masterbar
7 years ago
minileven
7 years ago
photon
10 years ago
photon-cdn
7 years ago
post-by-email
9 years ago
protect
7 years ago
publicize
7 years ago
pwa
8 years ago
related-posts
7 years ago
search
6 years ago
seo-tools
7 years ago
sharedaddy
7 years ago
shortcodes
6 years ago
simple-payments
7 years ago
site-icon
6 years ago
sitemaps
7 years ago
sso
7 years ago
subscriptions
7 years ago
theme-tools
7 years ago
tiled-gallery
7 years ago
verification-tools
7 years ago
videopress
7 years ago
widget-visibility
7 years ago
widgets
6 years ago
woocommerce-analytics
7 years ago
wordads
7 years ago
after-the-deadline.php
8 years ago
blocks.php
7 years ago
carousel.php
9 years ago
comment-likes.php
7 years ago
comments.php
9 years ago
contact-form.php
7 years ago
copy-post.php
7 years ago
custom-content-types.php
9 years ago
custom-css.php
7 years ago
debug.php
10 years ago
enhanced-distribution.php
9 years ago
geo-location.php
7 years ago
google-analytics.php
8 years ago
gplus-authorship.php
11 years ago
gravatar-hovercards.php
8 years ago
holiday-snow.php
8 years ago
infinite-scroll.php
7 years ago
json-api.php
9 years ago
latex.php
9 years ago
lazy-images.php
7 years ago
likes.php
7 years ago
manage.php
9 years ago
markdown.php
9 years ago
masterbar.php
7 years ago
minileven.php
8 years ago
mobile-push.php
10 years ago
module-extras.php
7 years ago
module-headings.php
7 years ago
module-info.php
7 years ago
monitor.php
8 years ago
notes.php
9 years ago
omnisearch.php
8 years ago
photon-cdn.php
7 years ago
photon.php
8 years ago
post-by-email.php
7 years ago
protect.php
7 years ago
publicize.php
7 years ago
pwa.php
8 years ago
random-redirect.php
10 years ago
related-posts.php
9 years ago
search.php
8 years ago
seo-tools.php
7 years ago
sharedaddy.php
7 years ago
shortcodes.php
7 years ago
shortlinks.php
7 years ago
site-icon.php
9 years ago
sitemaps.php
7 years ago
social-links.php
10 years ago
sso.php
7 years ago
stats.php
7 years ago
subscriptions.php
7 years ago
theme-tools.php
7 years ago
tiled-gallery.php
7 years ago
tonesque.php
10 years ago
vaultpress.php
9 years ago
verification-tools.php
9 years ago
videopress.php
8 years ago
widget-visibility.php
9 years ago
widgets.php
7 years ago
wordads.php
8 years ago
wpcc.php
10 years ago
wpgroho.js
10 years ago
manage.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: Manage |
| 4 | * Module Description: Manage all of your sites from a centralized dashboard. |
| 5 | * Jumpstart Description: Helps you remotely manage plugins, turn on automated updates, and more from <a href="https://wordpress.com/plugins/" target="_blank">wordpress.com</a>. |
| 6 | * Sort Order: 1 |
| 7 | * Recommendation Order: 3 |
| 8 | * First Introduced: 3.4 |
| 9 | * Requires Connection: Yes |
| 10 | * Auto Activate: Yes |
| 11 | * Module Tags: Centralized Management, Recommended |
| 12 | * Feature: General |
| 13 | * Additional Search Queries: manage, management, remote |
| 14 | */ |
| 15 | add_action( 'customize_register', 'add_wpcom_to_allowed_redirect_hosts' ); |
| 16 | |
| 17 | // Add wordpress.com to the safe redirect whitelist if the Manage module is enabled |
| 18 | // so the customizer can `return` to wordpress.com if invoked from there. |
| 19 | function add_wpcom_to_allowed_redirect_hosts( $domains ) { |
| 20 | if ( Jetpack::is_module_active( 'manage' ) ) { |
| 21 | add_filter( 'allowed_redirect_hosts', 'allow_wpcom_domain' ); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // Return $domains, with 'wordpress.com' appended. |
| 26 | function allow_wpcom_domain( $domains ) { |
| 27 | if ( empty( $domains ) ) { |
| 28 | $domains = array(); |
| 29 | } |
| 30 | $domains[] = 'wordpress.com'; |
| 31 | return array_unique( $domains ); |
| 32 | } |
| 33 | |
| 34 | Jetpack::module_configuration_screen( 'manage', 'jetpack_manage_config_screen' ); |
| 35 | function jetpack_manage_config_screen() { |
| 36 | include ( JETPACK__PLUGIN_DIR . 'modules/manage/confirm-admin.php' ); |
| 37 | } |
| 38 |