Make WordPress Core

Ticket #17130: ticket.17130.2.diff

File ticket.17130.2.diff, 723 bytes (added by ptahdunbar, 13 years ago)
  • wp-includes/general-template.php

     
    18761876        echo esc_attr( apply_filters( 'the_search_query', get_search_query( false ) ) );
    18771877}
    18781878
     1879/**
     1880 * Retrieve the $content_width value for the current theme.
     1881 *
     1882 * The $content_width is used to assign a maximum width for images within
     1883 * the content area of a post.
     1884 *
     1885 * @since 3.2.0
     1886 */
     1887function get_content_width() {
     1888        global $content_width;
     1889
     1890        return isset( $content_width ) ? (int) $content_width : 0;
     1891}
     1892
    18791893/**
    18801894 * Display the language attributes for the html tag.
    18811895 *