Skip to content

Commit

Permalink
we need the post object for amp pages awesomemotive#732
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Mar 4, 2017
1 parent 1053769 commit f6f803d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aioseop_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) ) {
Expand Down

0 comments on commit f6f803d

Please sign in to comment.