Make WordPress Core

Ticket #58715: 58715.patch

File 58715.patch, 3.0 KB (added by upadalavipul, 11 months ago)
  • wp-content/themes/twentysixteen/functions.php

     
    2323 * @package WordPress
    2424 * @subpackage Twenty_Sixteen
    2525 * @since Twenty Sixteen 1.0
     26 *
     27 * @global string $wp_version WordPress version.
    2628 */
    2729
    2830/**
     
    4345         * Create your own twentysixteen_setup() function to override in a child theme.
    4446         *
    4547         * @since Twenty Sixteen 1.0
     48         *
     49         * @global string $wp_version WordPress version.
    4650         */
    4751        function twentysixteen_setup() {
    4852                /*
  • wp-content/themes/twentytwelve/functions.php

     
    175175 * Enqueue scripts and styles for front end.
    176176 *
    177177 * @since Twenty Twelve 1.0
     178 *
     179 * @global WP_Styles $wp_styles
    178180 */
    179181function twentytwelve_scripts_styles() {
    180182        global $wp_styles;
     
    226228 * Add preconnect for Google Fonts.
    227229 *
    228230 * @since Twenty Twelve 2.2
     231 *
     232 * @global string $wp_version WordPress version.
     233 *
    229234 * @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted.
    230235 *
    231236 * @param array   $urls          URLs to print for resource hints.
     
    284289 * for output in head of document, based on current view.
    285290 *
    286291 * @since Twenty Twelve 1.0
     292 *
     293 * @global int $paged WordPress archive pagination page count.
     294 * @global int $page  WordPress paginated post page count.
    287295 *
    288296 * @param string $title Default title text for current view.
    289297 * @param string $sep Optional separator.
     
    395403         * Displays navigation to next/previous pages when applicable.
    396404         *
    397405         * @since Twenty Twelve 1.0
     406         *
     407         * @global WP_Query $wp_query WordPress Query object.
    398408         */
    399409        function twentytwelve_content_nav( $html_id ) {
    400410                global $wp_query;
     
    422432         * @since Twenty Twelve 1.0
    423433         *
    424434         * @global WP_Post $post Global post object.
     435         * @global WP_Comment $comment Global comment object.
    425436         */
    426437        function twentytwelve_comment( $comment, $args, $depth ) {
    427438                $GLOBALS['comment'] = $comment;
     
    614625 * templates, and when there are no active widgets in the sidebar.
    615626 *
    616627 * @since Twenty Twelve 1.0
     628 *
     629 * @global int $content_width Content width.
    617630 */
    618631function twentytwelve_content_width() {
    619632        if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) {
  • wp-content/themes/twentytwenty/functions.php

     
    3232 * as indicating support for post thumbnails.
    3333 *
    3434 * @since Twenty Twenty 1.0
     35 *
     36 * @global int $content_width
     37 *
    3538 */
    3639function twentytwenty_theme_support() {
    3740