Changeset 9770

Show
Ignore:
Timestamp:
03/29/07 07:41:03 (1 year ago)
Author:
GamerZ
Message:

Static Page Fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-email/trunk/email/email.php

    r9130 r9770  
    116116      $onclick = ''; 
    117117      // Fix For Static Page 
    118       if(get_option('show_on_front') == page) {             
     118      if(get_option('show_on_front') == 'page' && is_page()) { 
    119119            if(intval(get_option('page_on_front')) > 0) { 
    120120                  $email_link = _get_page_link(); 
     
    382382      $using_permalink = get_option('permalink_structure'); 
    383383      $permalink = get_permalink(); 
     384      // Fix For Static Page 
     385      if(get_option('show_on_front') == 'page' && is_page()) { 
     386            if(intval(get_option('page_on_front')) > 0) { 
     387                  $permalink = _get_page_link(); 
     388            } 
     389      } 
    384390      $output = ''; 
    385391      if(!empty($using_permalink)) {