Make WordPress Core

Ticket #58831: 58831-escaping-function-missing.2.patch

File 58831-escaping-function-missing.2.patch, 907 bytes (added by viralsampat, 3 months ago)

I have added another patch

  • src/wp-content/themes/twentytwelve/image.php

    diff --git src/wp-content/themes/twentytwelve/image.php src/wp-content/themes/twentytwelve/image.php
    index c17067cb23..5b8674dd91 100644
    get_header(); ?> 
    3232                                                                        esc_attr( get_the_date( 'c' ) ),
    3333                                                                        esc_html( get_the_date() ),
    3434                                                                        esc_url( wp_get_attachment_url() ),
    35                                                                         $metadata['width'],
    36                                                                         $metadata['height'],
     35                                                                        esc_attr( $metadata['width'] ),
     36                                                                        esc_attr( $metadata['height'] ),
    3737                                                                        esc_url( get_permalink( $post->post_parent ) ),
    3838                                                                        esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
    39                                                                         get_the_title( $post->post_parent )
     39                                                                        esc_html( get_the_title( $post->post_parent ) )
    4040                                                                );
    4141                                                        ?>
    4242                                                        <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>