WordPress.org

Make WordPress Core

Ticket #46679: 46679-back-comp.patch

File 46679-back-comp.patch, 6.8 KB (added by ramiy, 14 months ago)
  • wp-content/themes/twentyeleven/functions.php

     
    881881        return $args;
    882882}
    883883add_filter( 'widget_tag_cloud_args', 'twentyeleven_widget_tag_cloud_args' );
     884
     885if ( ! function_exists( 'wp_body_open' ) ) {
     886        /**
     887         * Fire the wp_body_open action.
     888         *
     889         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     890         *
     891         * @since Twenty Eleven 3.3
     892         */
     893        function wp_body_open() {
     894                /**
     895                 * Triggered after the opening <body> tag.
     896                 *
     897                 * @since Twenty Eleven 3.3
     898                 */
     899                do_action( 'wp_body_open' );
     900        }
     901}
  • wp-content/themes/twentyfifteen/inc/back-compat.php

     
    6565        }
    6666}
    6767add_action( 'template_redirect', 'twentyfifteen_preview' );
     68
     69if ( ! function_exists( 'wp_body_open' ) ) {
     70        /**
     71         * Fire the wp_body_open action.
     72         *
     73         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     74         *
     75         * @since Twenty Fifteen 2.5
     76         */
     77        function wp_body_open() {
     78                /**
     79                 * Triggered after the opening <body> tag.
     80                 *
     81                 * @since Twenty Fifteen 2.5
     82                 */
     83                do_action( 'wp_body_open' );
     84        }
     85}
  • wp-content/themes/twentyfourteen/inc/back-compat.php

     
    6565        }
    6666}
    6767add_action( 'template_redirect', 'twentyfourteen_preview' );
     68
     69if ( ! function_exists( 'wp_body_open' ) ) {
     70        /**
     71         * Fire the wp_body_open action.
     72         *
     73         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     74         *
     75         * @since Twenty Fourteen 2.7
     76         */
     77        function wp_body_open() {
     78                /**
     79                 * Triggered after the opening <body> tag.
     80                 *
     81                 * @since Twenty Fourteen 2.7
     82                 */
     83                do_action( 'wp_body_open' );
     84        }
     85}
  • wp-content/themes/twentynineteen/inc/back-compat.php

     
    7474        }
    7575}
    7676add_action( 'template_redirect', 'twentynineteen_preview' );
     77
     78if ( ! function_exists( 'wp_body_open' ) ) {
     79        /**
     80         * Fire the wp_body_open action.
     81         *
     82         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     83         *
     84         * @since Twenty Nineteen 1.4
     85         */
     86        function wp_body_open() {
     87                /**
     88                 * Triggered after the opening <body> tag.
     89                 *
     90                 * @since Twenty Nineteen 1.4
     91                 */
     92                do_action( 'wp_body_open' );
     93        }
     94}
  • wp-content/themes/twentyseventeen/inc/back-compat.php

     
    7171        }
    7272}
    7373add_action( 'template_redirect', 'twentyseventeen_preview' );
     74
     75if ( ! function_exists( 'wp_body_open' ) ) {
     76        /**
     77         * Fire the wp_body_open action.
     78         *
     79         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     80         *
     81         * @since Twenty Seventeen 2.2
     82         */
     83        function wp_body_open() {
     84                /**
     85                 * Triggered after the opening <body> tag.
     86                 *
     87                 * @since Twenty Seventeen 2.2
     88                 */
     89                do_action( 'wp_body_open' );
     90        }
     91}
  • wp-content/themes/twentysixteen/inc/back-compat.php

     
    7373        }
    7474}
    7575add_action( 'template_redirect', 'twentysixteen_preview' );
     76
     77if ( ! function_exists( 'wp_body_open' ) ) {
     78        /**
     79         * Fire the wp_body_open action.
     80         *
     81         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     82         *
     83         * @since Twenty Sixteen 2.0
     84         */
     85        function wp_body_open() {
     86                /**
     87                 * Triggered after the opening <body> tag.
     88                 *
     89                 * @since Twenty Sixteen 2.0
     90                 */
     91                do_action( 'wp_body_open' );
     92        }
     93}
  • wp-content/themes/twentyten/functions.php

     
    716716}
    717717add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
    718718
    719 
     719if ( ! function_exists( 'wp_body_open' ) ) {
     720        /**
     721         * Fire the wp_body_open action.
     722         *
     723         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     724         *
     725         * @since Twenty Ten 2.9
     726         */
     727        function wp_body_open() {
     728                /**
     729                 * Triggered after the opening <body> tag.
     730                 *
     731                 * @since Twenty Ten 2.9
     732                 */
     733                do_action( 'wp_body_open' );
     734        }
     735}
  • wp-content/themes/twentythirteen/inc/back-compat.php

     
    6565        }
    6666}
    6767add_action( 'template_redirect', 'twentythirteen_preview' );
     68
     69if ( ! function_exists( 'wp_body_open' ) ) {
     70        /**
     71         * Fire the wp_body_open action.
     72         *
     73         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     74         *
     75         * @since Twenty Thirteen 2.8
     76         */
     77        function wp_body_open() {
     78                /**
     79                 * Triggered after the opening <body> tag.
     80                 *
     81                 * @since Twenty Thirteen 2.8
     82                 */
     83                do_action( 'wp_body_open' );
     84        }
     85}
  • wp-content/themes/twentytwelve/functions.php

     
    665665}
    666666add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
    667667
    668 
    669668/**
    670669 * Modifies tag cloud widget arguments to display all tags in the same font size
    671670 * and use list format for better accessibility.
     
    684683        return $args;
    685684}
    686685add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' );
     686
     687if ( ! function_exists( 'wp_body_open' ) ) {
     688        /**
     689         * Fire the wp_body_open action.
     690         *
     691         * Added for backwards compatibility to support WordPress versions prior to 5.2.0.
     692         *
     693         * @since Twenty Twelve 3.0
     694         */
     695        function wp_body_open() {
     696                /**
     697                 * Triggered after the opening <body> tag.
     698                 *
     699                 * @since Twenty Twelve 3.0
     700                 */
     701                do_action( 'wp_body_open' );
     702        }
     703}