| @@ -123,9 +123,9 @@ | ||
| 123 | 123 | |
| 124 | 124 | $wrapper_before = $wrapper_after = $wrapper_content = ''; |
| 125 | 125 | |
| 126 | 126 | $post_id = get_the_ID(); |
| 127 | - $post_link = home_url( esc_url_raw( $_SERVER['REQUEST_URI'] ) ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated | |
| 127 | + $post_link = home_url( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated | |
| 128 | 128 | $total_share = get_post_meta( $post_id, 'share_count', true ); |
| 129 | 129 | $total_share = $total_share ? $total_share : 0; |
| 130 | 130 | |
| 131 | 131 | $attr['className'] = isset( $attr['className'] ) && $attr['className'] ? preg_replace( '/[^A-Za-z0-9_ -]/', '', $attr['className'] ) : ''; |