Making WordPress.org

Ticket #2145: 2145.diff

File 2145.diff, 823 bytes (added by sippis, 7 years ago)
  • wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/miscellaneous.php

    diff --git wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/miscellaneous.php wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/miscellaneous.php
    index c60762ea..7003f2aa 100644
    function add_post_types_to_rest_api( $allowed_types ) { 
    4141}
    4242
    4343add_filter( 'rest_api_allowed_post_types', __NAMESPACE__ . '\add_post_types_to_rest_api' );
     44
     45/**
     46 *  Disable Jetpack gravatar hovercards compleately since those does not bring any extra value.
     47 */
     48function jetpack_gravatar_disable_hovercards() {
     49        return 'disabled';
     50}
     51add_filter( 'pre_option_gravatar_disable_hovercards', 'jetpack_gravatar_disable_hovercards' );