WordPress.org

Make WordPress Core

Ticket #23724: 23724.patch

File 23724.patch, 909 bytes (added by johnjamesjacoby, 2 years ago)
  • wp-includes/post-template.php

     
    107107 
    108108        if ( ! is_admin() ) { 
    109109                if ( ! empty( $post->post_password ) ) { 
    110                         $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ) ); 
     110                        $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post ); 
    111111                        $title = sprintf( $protected_title_format, $title ); 
    112112                } else if ( isset( $post->post_status ) && 'private' == $post->post_status ) { 
    113                         $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ) ); 
     113                        $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post ); 
    114114                        $title = sprintf( $private_title_format, $title ); 
    115115                } 
    116116        } 
    117117 
    118         return apply_filters( 'the_title', $title, $id ); 
     118        return apply_filters( 'the_title', $title, $id, $post ); 
    119119} 
    120120 
    121121/**