Ticket #2864: 2864.patch
File 2864.patch, 1.6 KB (added by , 7 years ago) |
---|
-
wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
43 43 add_filter( 'single_term_title', array( $this, 'filter_single_term_title' ) ); 44 44 add_filter( 'the_content', array( $this, 'filter_rel_nofollow' ) ); 45 45 add_action( 'wp_head', array( Template::class, 'json_ld_schema' ), 1 ); 46 add_action( 'wp_head', array( Template::class, 'meta_description' ), 1 ); 46 47 add_action( 'wp_head', array( Template::class, 'hreflang_link_attributes' ), 2 ); 47 48 48 49 // Cron tasks. -
wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
119 119 } 120 120 121 121 /** 122 * Prints meta description in the head of a page. 123 * 124 * @static 125 */ 126 public static function meta_description() { 127 if ( is_singular( 'plugin' ) ) { 128 printf( '<meta name="description" value="%s"/>', 129 esc_attr( get_the_excerpt( get_queried_object() ) ) 130 ); 131 } 132 } 133 134 /** 122 135 * Returns a string representing the number of active installs for an item. 123 136 * 124 137 * @static