]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/post-template.php
Wordpress 4.5.3
[autoinstalls/wordpress.git] / wp-includes / post-template.php
index a441d74231d33fb46d820db88e5547e823b86134..8085745199b330d807deaf73bbeef81a19f2d91e 100644 (file)
@@ -582,9 +582,6 @@ function get_body_class( $class = '' ) {
                $classes[] = 'attachment';
        if ( is_404() )
                $classes[] = 'error404';
-       if ( is_singular() ) {
-               $classes[] = 'singular';
-       }
 
        if ( is_single() ) {
                $post_id = $wp_query->get_queried_object_id();
@@ -1468,7 +1465,7 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals
         * @param bool         $icon      Whether to include an icon. Default false.
         * @param string|bool  $text      If string, will be link text. Default false.
         */
-       return apply_filters( 'wp_get_attachment_link', "<a href='$url'>$link_text</a>", $id, $size, $permalink, $icon, $text );
+       return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text );
 }
 
 /**