| @@ -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' ) ); |
| @@ -334,9 +318,9 @@ | ||
| 334 | 318 | * Comments description. |
| 335 | 319 | */ |
| 336 | 320 | function jetpack_comments_more_info() { |
| 337 | 321 | esc_html_e( |
| 338 | - 'Allow visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on | |
| 322 | + 'Allow visitors to use their WordPress.com or Facebook accounts when commenting on | |
| 339 | 323 | your site. Jetpack will match your site\'s color scheme automatically (but you can adjust that).', |
| 340 | 324 | 'jetpack' |
| 341 | 325 | ); |
| 342 | 326 | } |
| @@ -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' ) ); |
| @@ -461,29 +405,8 @@ | ||
| 461 | 405 | } |
| 462 | 406 | add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' ); |
| 463 | 407 | |
| 464 | 408 | /** |
| 465 | - * Lazy Images support link. | |
| 466 | - */ | |
| 467 | -function jetpack_lazy_images_more_link() { | |
| 468 | - echo esc_url( Redirect::get_url( 'jetpack-support-lazy-images' ) ); | |
| 469 | -} | |
| 470 | -add_action( 'jetpack_learn_more_button_lazy-images', 'jetpack_lazy_images_more_link' ); | |
| 471 | - | |
| 472 | -/** | |
| 473 | - * Lazy Images description. | |
| 474 | - */ | |
| 475 | -function jetpack_lazy_images_more_info() { | |
| 476 | - esc_html_e( | |
| 477 | - 'Improve your site\'s speed by only loading images visible on the screen. | |
| 478 | - New images will load just before they scroll into view. This prevents viewers | |
| 479 | - from having to download all the images on a page all at once, even ones they can\'t see.', | |
| 480 | - 'jetpack' | |
| 481 | - ); | |
| 482 | -} | |
| 483 | -add_action( 'jetpack_module_more_info_lazy-images', 'jetpack_lazy_images_more_info' ); | |
| 484 | - | |
| 485 | -/** | |
| 486 | 409 | * Tiled Galleries support link. |
| 487 | 410 | */ |
| 488 | 411 | function jetpack_tiled_gallery_more_link() { |
| 489 | 412 | echo esc_url( Redirect::get_url( 'jetpack-support-tiled-galleries' ) ); |
| @@ -909,8 +832,24 @@ | ||
| 909 | 832 | } |
| 910 | 833 | add_action( 'jetpack_module_more_info_google-fonts', 'jetpack_more_info_google_fonts' ); |
| 911 | 834 | |
| 912 | 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 | +/** | |
| 913 | 852 | * WAF support link. |
| 914 | 853 | */ |
| 915 | 854 | function jetpack_waf_more_link() { |
| 916 | 855 | echo esc_url( Redirect::get_url( 'jetpack-support-waf' ) ); |
| @@ -939,4 +878,20 @@ | ||
| 939 | 878 | function jetpack_more_info_blaze() { |
| 940 | 879 | esc_html_e( 'Grow your audience by promoting your content across Tumblr and WordPress.com.', 'jetpack' ); |
| 941 | 880 | } |
| 942 | 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' ); | |