Plugin Directory

Changeset 1159866


Ignore:
Timestamp:
05/13/2015 07:54:58 PM (11 years ago)
Author:
lti
Message:

Page related corrections

Location:
lti-seo/trunk/src/frontend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lti-seo/trunk/src/frontend/generators/link_rel.php

    r1159831 r1159866  
    4747
    4848class Page_Link_Rel extends Frontpage_Link_Rel {
     49    public function make_tags() {
    4950
     51        $tags            = array();
     52        $publisher = $this->helper->get( 'link_rel_publisher' );
     53        if ( ! is_null( $publisher ) ) {
     54            $tags['publisher'] = esc_url($this->helper->get( 'gplus_publisher' ));
     55        }
     56
     57        $tags = apply_filters( 'lti_seo_link_rel', $tags );
     58
     59        return $tags;
     60    }
    5061}
    5162
  • lti-seo/trunk/src/frontend/helpers/wordpress_helper.php

    r1159831 r1159866  
    260260                } elseif ( is_page() ) {
    261261                    $this->page_type = 'Page';
     262                    $this->post_id   = $this->get_post_info( 'ID' );
    262263                } else {
    263264                    $this->page_type = 'Singular';
     
    445446            }
    446447            if ( ! empty( $img ) ) {
    447                 $data = array_merge( $data, $img );
     448                foreach ( $img as $key => $image ) {
     449                    $data[ $key ] = $image;
     450                }
    448451            }
    449452        }
     
    640643                }
    641644            } else {
    642                 if ( $this->settings->get( 'description_support' ) == true ) {
    643                     $this->page_description = $this->get_post_meta_key( 'description' );
     645                $this->page_description = $this->get_post_meta_key( 'description' );
     646                if ( $this->settings->get( 'description_support' ) == false || empty( $this->page_description ) ) {
     647                    $this->page_description = get_bloginfo( 'description' );
    644648                }
    645649            }
Note: See TracChangeset for help on using the changeset viewer.