- There are changed PHP’s intval(), strval(), floatval(), and boolval() typecasting functions to (int), (string), (float) and (bool) regarding [this doc](https://make.wordpress.org/core/2020/11/20/miscellaneous-developer-focused-changes-in-wordpress-5-6/).

This commit is contained in:
nikitasinelnikov
2020-11-24 12:55:22 +02:00
parent 0bd61d74d7
commit fa13e82202
10 changed files with 37 additions and 29 deletions
+4 -4
View File
@@ -733,9 +733,9 @@ function um_profile_dynamic_meta_desc() {
<meta property="og:title" content="<?php echo esc_attr( $title ); ?>"/>
<meta property="og:description" content="<?php echo esc_attr( $description ); ?>"/>
<meta property="og:image" content="<?php echo esc_url( $image ); ?>"/>
<meta property="og:image:alt" content="<?php echo esc_attr_e( 'Profile photo', 'ultimate-member' ); ?>"/>
<meta property="og:image:height" content="<?php echo intval( $size ); ?>"/>
<meta property="og:image:width" content="<?php echo intval( $size ); ?>"/>
<meta property="og:image:alt" content="<?php esc_attr_e( 'Profile photo', 'ultimate-member' ); ?>"/>
<meta property="og:image:height" content="<?php echo (int) $size; ?>"/>
<meta property="og:image:width" content="<?php echo (int) $size; ?>"/>
<meta property="og:url" content="<?php echo esc_url( $url ); ?>"/>
<meta name="twitter:card" content="summary"/>
@@ -743,7 +743,7 @@ function um_profile_dynamic_meta_desc() {
<meta name="twitter:title" content="<?php echo esc_attr( $title ); ?>"/>
<meta name="twitter:description" content="<?php echo esc_attr( $description ); ?>"/>
<meta name="twitter:image" content="<?php echo esc_url( $image ); ?>"/>
<meta name="twitter:image:alt" content="<?php echo esc_attr_e( 'Profile photo', 'ultimate-member' ); ?>"/>
<meta name="twitter:image:alt" content="<?php esc_attr_e( 'Profile photo', 'ultimate-member' ); ?>"/>
<meta name="twitter:url" content="<?php echo esc_url( $url ); ?>"/>
<script type="application/ld+json"><?php echo json_encode( $person ); ?></script>