WordPress.org

Make WordPress Core

Ticket #14804: 14804.diff

File 14804.diff, 840 bytes (added by coffee2code, 11 years ago)

Patch mentioned in ticket.

  • wp-includes/post-template.php

     
    7070 * @return string|null Null on failure or display. String when echo is false.
    7171 */
    7272function the_title_attribute( $args = '' ) {
    73         $title = get_the_title();
     73        $defaults = array( 'before' => '', 'after' =>  '', 'echo' => true, 'post' => 0 );
     74        $r = wp_parse_args( $args, $defaults );
     75        extract( $r, EXTR_SKIP );
    7476
     77        $title = get_the_title( $post );
     78
    7579        if ( strlen($title) == 0 )
    7680                return;
    7781
    78         $defaults = array('before' => '', 'after' =>  '', 'echo' => true);
    79         $r = wp_parse_args($args, $defaults);
    80         extract( $r, EXTR_SKIP );
    81 
    82 
    8382        $title = $before . $title . $after;
    8483        $title = esc_attr(strip_tags($title));
    8584