Changeset 1159866
- Timestamp:
- 05/13/2015 07:54:58 PM (11 years ago)
- Location:
- lti-seo/trunk/src/frontend
- Files:
-
- 2 edited
-
generators/link_rel.php (modified) (1 diff)
-
helpers/wordpress_helper.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lti-seo/trunk/src/frontend/generators/link_rel.php
r1159831 r1159866 47 47 48 48 class Page_Link_Rel extends Frontpage_Link_Rel { 49 public function make_tags() { 49 50 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 } 50 61 } 51 62 -
lti-seo/trunk/src/frontend/helpers/wordpress_helper.php
r1159831 r1159866 260 260 } elseif ( is_page() ) { 261 261 $this->page_type = 'Page'; 262 $this->post_id = $this->get_post_info( 'ID' ); 262 263 } else { 263 264 $this->page_type = 'Singular'; … … 445 446 } 446 447 if ( ! empty( $img ) ) { 447 $data = array_merge( $data, $img ); 448 foreach ( $img as $key => $image ) { 449 $data[ $key ] = $image; 450 } 448 451 } 449 452 } … … 640 643 } 641 644 } 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' ); 644 648 } 645 649 }
Note: See TracChangeset
for help on using the changeset viewer.