Ticket #12905: 12905.diff
File 12905.diff, 965 bytes (added by , 15 years ago) |
---|
-
wp-includes/post-template.php
77 77 if ( strlen($title) == 0 ) 78 78 return; 79 79 80 $defaults = array('before' => '', 'after' => '', 'echo' => true); 80 $defaults = array('before' => '', 'after' => '', 'echo' => true, 'formatted' => ''); 81 82 if ( 1 == func_num_args() && is_string( $args ) && false === strpos( $args, '=' ) ) { 83 if ( false !== strpos( $args, '%' ) && $formatted_title = sprintf( $args, $title ) ) 84 $title = $formatted_title; 85 else 86 $args = array( 'before' => $args ); 87 } 88 81 89 $r = wp_parse_args($args, $defaults); 82 90 extract( $r, EXTR_SKIP ); 83 91 92 if ( false === strpos( $formatted, '%' ) && $formatted_title = sprintf( $formatted, $title ) ) 93 $title = $formatted_title; 84 94 85 95 $title = $before . $title . $after; 86 96 $title = esc_attr(strip_tags($title));