From f6f803dd582ac862501f6075fe52dcf33a85eab9 Mon Sep 17 00:00:00 2001 From: Michael Torbert Date: Fri, 3 Mar 2017 20:39:47 -0500 Subject: [PATCH] we need the post object for amp pages #732 --- aioseop_class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/aioseop_class.php b/aioseop_class.php index 2f3af6e45..273bbd25f 100644 --- a/aioseop_class.php +++ b/aioseop_class.php @@ -3745,6 +3745,7 @@ function make_unique_att_desc( $description ) { * @since 2.3.11.5 */ function amp_head() { + $post = $this->get_queried_object(); $description = apply_filters( 'aioseop_amp_description', $this->get_main_description( $post ) ); // Get the description. // Handle the description format. if ( isset( $description ) && ( $this->strlen( $description ) > $this->minimum_description_length ) && ! ( is_front_page() && is_paged() ) ) {