| @@ -12,8 +12,12 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | use Automattic\Jetpack\Redirect; |
| 15 | 15 | |
| 16 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 17 | + exit( 0 ); | |
| 18 | +} | |
| 19 | + | |
| 16 | 20 | /** |
| 17 | 21 | * VaultPress (stub) support link. |
| 18 | 22 | */ |
| 19 | 23 | function vaultpress_jetpack_load_more_link() { |
| @@ -240,28 +244,8 @@ | ||
| 240 | 244 | } |
| 241 | 245 | add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' ); |
| 242 | 246 | |
| 243 | 247 | /** |
| 244 | - * Enhanced Distribution support link. | |
| 245 | - */ | |
| 246 | -function jetpack_enhanced_distribution_more_link() { | |
| 247 | - echo esc_url( Redirect::get_url( 'jetpack-support-enhanced-distribution' ) ); | |
| 248 | -} | |
| 249 | -add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' ); | |
| 250 | - | |
| 251 | -/** | |
| 252 | - * Enhanced Distribution description. | |
| 253 | - */ | |
| 254 | -function jetpack_enhanced_distribution_more_info() { | |
| 255 | - esc_html_e( | |
| 256 | - 'Jetpack will automatically take your great published content and share it instantly with third-party services | |
| 257 | - like search engines, increasing your reach and traffic.', | |
| 258 | - 'jetpack' | |
| 259 | - ); | |
| 260 | -} | |
| 261 | -add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' ); | |
| 262 | - | |
| 263 | -/** | |
| 264 | 248 | * Protect support link. |
| 265 | 249 | */ |
| 266 | 250 | function jetpack_protect_more_link() { |
| 267 | 251 | echo esc_url( Redirect::get_url( 'jetpack-support-protect' ) ); |
| @@ -362,48 +346,8 @@ | ||
| 362 | 346 | } |
| 363 | 347 | add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' ); |
| 364 | 348 | |
| 365 | 349 | /** |
| 366 | - * Custom CSS support link. | |
| 367 | - */ | |
| 368 | -function jetpack_custom_css_more_button() { | |
| 369 | - echo esc_url( Redirect::get_url( 'jetpack-support-custom-css' ) ); | |
| 370 | -} | |
| 371 | -add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' ); | |
| 372 | - | |
| 373 | -/** | |
| 374 | - * Custom CSS description. | |
| 375 | - */ | |
| 376 | -function jetpack_custom_css_more_info() { | |
| 377 | - esc_html_e( | |
| 378 | - "Add to or replace your theme's CSS including mobile styles, LESS, and SaSS. | |
| 379 | - Includes syntax coloring, auto-indentation, and immediate CSS validation.", | |
| 380 | - 'jetpack' | |
| 381 | - ); | |
| 382 | -} | |
| 383 | -add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' ); | |
| 384 | - | |
| 385 | -/** | |
| 386 | - * Masterbar support link. | |
| 387 | - */ | |
| 388 | -function jetpack_masterbar_more_link() { | |
| 389 | - echo esc_url( Redirect::get_url( 'jetpack-support-masterbar' ) ); | |
| 390 | -} | |
| 391 | -add_action( 'jetpack_learn_more_button_masterbar', 'jetpack_masterbar_more_link' ); | |
| 392 | - | |
| 393 | -/** | |
| 394 | - * Masterbar description. | |
| 395 | - */ | |
| 396 | -function jetpack_masterbar_more_info() { | |
| 397 | - esc_html_e( | |
| 398 | - 'Quickly access your Stats, Notifications, Posts and more on WordPress.com. | |
| 399 | - The Toolbar is displayed for any user on the site that is connected to WordPress.com.', | |
| 400 | - 'jetpack' | |
| 401 | - ); | |
| 402 | -} | |
| 403 | -add_action( 'jetpack_module_more_info_masterbar', 'jetpack_masterbar_more_info' ); | |
| 404 | - | |
| 405 | -/** | |
| 406 | 350 | * Infinite Scroll support link. |
| 407 | 351 | */ |
| 408 | 352 | function jetpack_infinite_scroll_more_button() { |
| 409 | 353 | echo esc_url( Redirect::get_url( 'jetpack-support-infinite-scroll' ) ); |
| @@ -888,8 +832,24 @@ | ||
| 888 | 832 | } |
| 889 | 833 | add_action( 'jetpack_module_more_info_google-fonts', 'jetpack_more_info_google_fonts' ); |
| 890 | 834 | |
| 891 | 835 | /** |
| 836 | + * Account Protection support link. | |
| 837 | + */ | |
| 838 | +function jetpack_account_protection_more_link() { | |
| 839 | + echo esc_url( Redirect::get_url( 'jetpack-account-protection' ) ); | |
| 840 | +} | |
| 841 | +add_action( 'jetpack_learn_more_button_account-protection', 'jetpack_account_protection_more_link' ); | |
| 842 | + | |
| 843 | +/** | |
| 844 | + * Account Protection description. | |
| 845 | + */ | |
| 846 | +function jetpack_more_info_account_protection() { | |
| 847 | + esc_html_e( 'Enabling this setting enhances account security by detecting compromised passwords and enforcing additional verification when needed.', 'jetpack' ); | |
| 848 | +} | |
| 849 | +add_action( 'jetpack_module_more_info_account-protection', 'jetpack_more_info_account_protection' ); | |
| 850 | + | |
| 851 | +/** | |
| 892 | 852 | * WAF support link. |
| 893 | 853 | */ |
| 894 | 854 | function jetpack_waf_more_link() { |
| 895 | 855 | echo esc_url( Redirect::get_url( 'jetpack-support-waf' ) ); |
| @@ -918,4 +878,20 @@ | ||
| 918 | 878 | function jetpack_more_info_blaze() { |
| 919 | 879 | esc_html_e( 'Grow your audience by promoting your content across Tumblr and WordPress.com.', 'jetpack' ); |
| 920 | 880 | } |
| 921 | 881 | add_action( 'jetpack_module_more_info_blaze', 'jetpack_more_info_blaze' ); |
| 882 | + | |
| 883 | +/** | |
| 884 | + * WordPress.com Reader support link. | |
| 885 | + */ | |
| 886 | +function jetpack_wpcom_reader_more_link() { | |
| 887 | + echo esc_url( Redirect::get_url( 'jetpack-support-reader' ) ); | |
| 888 | +} | |
| 889 | +add_action( 'jetpack_learn_more_button_wpcom-reader', 'jetpack_wpcom_reader_more_link' ); | |
| 890 | + | |
| 891 | +/** | |
| 892 | + * WordPress.com Reader description. | |
| 893 | + */ | |
| 894 | +function jetpack_more_info_wpcom_reader() { | |
| 895 | + esc_html_e( 'Quickly access the WordPress.com Reader from your site’s admin bar.', 'jetpack' ); | |
| 896 | +} | |
| 897 | +add_action( 'jetpack_module_more_info_wpcom-reader', 'jetpack_more_info_wpcom_reader' ); | |