Nessuna descrizione

comments.php 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Module Name: Comments
  4. * Module Description: Let visitors use a WordPress.com, Twitter, Facebook, or Google account to comment
  5. * First Introduced: 1.4
  6. * Sort Order: 20
  7. * Requires Connection: Yes
  8. * Auto Activate: No
  9. * Module Tags: Social
  10. * Feature: Engagement
  11. * Additional Search Queries: comments, comment, facebook, twitter, google+, social
  12. *
  13. * @package automattic/jetpack
  14. */
  15. use Automattic\Jetpack\Assets;
  16. Assets::add_resource_hint(
  17. array(
  18. '//jetpack.wordpress.com',
  19. '//s0.wp.com',
  20. '//s1.wp.com',
  21. '//s2.wp.com',
  22. '//public-api.wordpress.com',
  23. '//0.gravatar.com',
  24. '//1.gravatar.com',
  25. '//2.gravatar.com',
  26. ),
  27. 'dns-prefetch'
  28. );
  29. /*
  30. * Add the main commenting system.
  31. */
  32. require __DIR__ . '/comments/comments.php';
  33. if ( is_admin() ) {
  34. /**
  35. * Add the admin functionality.
  36. */
  37. require __DIR__ . '/comments/admin.php';
  38. }
  39. /**
  40. * Module loader.
  41. */
  42. function jetpack_comments_load() {
  43. Jetpack::enable_module_configurable( __FILE__ );
  44. }
  45. add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' );