PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | modules/theme-tools/content-options/author-bio.php +11 -3 13.8.3 → 16.3-a.5 View file →
@@ -4,14 +4,21 @@
4 4 *
5 5 * @package automattic/jetpack
6 6 */
7 7
8 +if ( ! defined( 'ABSPATH' ) ) {
9 + exit( 0 );
10 +}
11 +
8 12 if ( ! function_exists( 'jetpack_author_bio' ) ) {
9 13
10 14 /**
11 15 * The function to display Author Bio in a theme.
16 + *
17 + * @deprecated 13.9 Moved to Classic Theme Helper package.
12 18 */
13 19 function jetpack_author_bio() {
20 + _deprecated_function( __FUNCTION__, 'jetpack-13.9' );
14 21 // If the theme doesn't support 'jetpack-content-options', don't continue.
15 22 if ( ! current_theme_supports( 'jetpack-content-options' ) ) {
16 23 return;
17 24 }
@@ -80,9 +87,9 @@
80 87 printf( esc_html__( 'View all posts by %s', 'jetpack' ), get_the_author() );
81 88 ?>
82 89 </a>
83 90 </p><!-- .author-bio -->
84 - </div><!-- .entry-auhtor -->
91 + </div><!-- .entry-author -->
85 92 <?php
86 93 }
87 94
88 95 }
@@ -91,17 +98,18 @@
91 98
92 99 /**
93 100 * Checks to see if the specified email address has a Gravatar image.
94 101 *
102 + * @deprecated 13.9 Moved to Classic Theme Helper package.
95 103 * @param string $email The email of the address of the user to check.
96 104 * @return bool Whether or not the user has a gravatar
97 105 */
98 106 function jetpack_has_gravatar( $email ) {
99 -
107 + _deprecated_function( __FUNCTION__, 'jetpack-13.9' );
100 108 $url = get_avatar_url( $email, array( 'default' => '404' ) );
101 109 $headers = get_headers( $url );
102 110
103 111 // If 200 is found, the user has a Gravatar; otherwise, they don't.
104 - return preg_match( '|200|', $headers[0] ) ? true : false;
112 + return str_contains( $headers[0], '200' );
105 113 }
106 114
107 115 }