XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 8, 2009, 5:55:59 PM (15 years ago)
Author:
toemon
Message:

#137 WordPressME2.0.11への対応(ブロックの対応)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r253 r262  
    1616                $output .= ob_get_contents(); 
    1717        ob_end_clean(); 
     18         
     19        if(function_exists('the_title_attribute')){ 
     20                $title = the_title_attribute('echo=0');  
     21        } else { 
     22                ob_start(); 
     23                        the_title(); 
     24                        $title = ob_get_contents(); 
     25                ob_end_clean(); 
     26        } 
    1827                                                 
    1928        $output .= '" rel="bookmark" title="'; 
    20         $output .= sprintf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); 
     29        $output .= sprintf(__('Permanent Link to %s', 'xpress'), $title); 
    2130        $output .= '">'; 
    22         ob_start(); 
    23                 the_title(); 
    24                 $output .= ob_get_contents(); 
    25         ob_end_clean(); 
     31        $output .= $title; 
    2632        $output .= '</a></h2>' . "\n"; 
    2733        $output .= '</div>' . "\n"; 
Note: See TracChangeset for help on using the changeset viewer.