Make WordPress Core

Ticket #42370: 42370.diff

File 42370.diff, 4.9 KB (added by welcher, 8 years ago)

Adding new hook to all existing themes.

  • src/wp-content/themes/twentyeleven/header.php

    diff --git src/wp-content/themes/twentyeleven/header.php src/wp-content/themes/twentyeleven/header.php
    index f9be4f52e0..e264cbc324 100644
     
    6868</head>
    6969
    7070<body <?php body_class(); ?>>
     71<?php
     72/**
     73 * Fires after the body day.
     74 *
     75 * Allows injection of custom items at the top of the page.
     76 *
     77 * @since 5.0.0
     78 *
     79 */
     80do_action( 'after_body' );?>
    7181<div id="page" class="hfeed">
    7282        <header id="branding" role="banner">
    7383                        <hgroup>
  • src/wp-content/themes/twentyfifteen/header.php

    diff --git src/wp-content/themes/twentyfifteen/header.php src/wp-content/themes/twentyfifteen/header.php
    index 28de34ed9f..0fbc2ff012 100644
     
    2222</head>
    2323
    2424<body <?php body_class(); ?>>
     25<?php
     26/**
     27 * Fires after the body day.
     28 *
     29 * Allows injection of custom items at the top of the page.
     30 *
     31 * @since 5.0.0
     32 *
     33 */
     34do_action( 'after_body' );?>
    2535<div id="page" class="hfeed site">
    2636        <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
    2737
  • src/wp-content/themes/twentyfourteen/header.php

    diff --git src/wp-content/themes/twentyfourteen/header.php src/wp-content/themes/twentyfourteen/header.php
    index 7286d88938..7f34f71069 100644
     
    3131</head>
    3232
    3333<body <?php body_class(); ?>>
     34<?php
     35/**
     36 * Fires after the body day.
     37 *
     38 * Allows injection of custom items at the top of the page.
     39 *
     40 * @since 5.0.0
     41 *
     42 */
     43do_action( 'after_body' );?>
    3444<div id="page" class="hfeed site">
    3545        <?php if ( get_header_image() ) : ?>
    3646        <div id="site-header">
  • src/wp-content/themes/twentyseventeen/header.php

    diff --git src/wp-content/themes/twentyseventeen/header.php src/wp-content/themes/twentyseventeen/header.php
    index 27148be6d4..ca68f68062 100644
     
    2323</head>
    2424
    2525<body <?php body_class(); ?>>
     26<?php
     27/**
     28 * Fires after the body day.
     29 *
     30 * Allows injection of custom items at the top of the page.
     31 *
     32 * @since 5.0.0
     33 *
     34 */
     35do_action( 'after_body' );?>
    2636<div id="page" class="site">
    2737        <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyseventeen' ); ?></a>
    2838
  • src/wp-content/themes/twentysixteen/header.php

    diff --git src/wp-content/themes/twentysixteen/header.php src/wp-content/themes/twentysixteen/header.php
    index d230c4f8db..abc37f3e6e 100644
     
    2222</head>
    2323
    2424<body <?php body_class(); ?>>
     25<?php
     26/**
     27 * Fires after the body day.
     28 *
     29 * Allows injection of custom items at the top of the page.
     30 *
     31 * @since 5.0.0
     32 *
     33 */
     34do_action( 'after_body' );?>
    2535<div id="page" class="site">
    2636        <div class="site-inner">
    2737                <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
  • src/wp-content/themes/twentyten/header.php

    diff --git src/wp-content/themes/twentyten/header.php src/wp-content/themes/twentyten/header.php
    index 1ff063b8f0..3827550d7a 100644
     
    5555</head>
    5656
    5757<body <?php body_class(); ?>>
     58<?php
     59/**
     60 * Fires after the body day.
     61 *
     62 * Allows injection of custom items at the top of the page.
     63 *
     64 * @since 5.0.0
     65 *
     66 */
     67do_action( 'after_body' );?>
    5868<div id="wrapper" class="hfeed">
    5969        <div id="header">
    6070                <div id="masthead">
  • src/wp-content/themes/twentythirteen/header.php

    diff --git src/wp-content/themes/twentythirteen/header.php src/wp-content/themes/twentythirteen/header.php
    index 094f74cc9f..c78b4c288b 100644
     
    3131</head>
    3232
    3333<body <?php body_class(); ?>>
     34        <?php
     35        /**
     36         * Fires after the body day.
     37         *
     38         * Allows injection of custom items at the top of the page.
     39         *
     40         * @since 5.0.0
     41         *
     42         */
     43        do_action( 'after_body' );?>
    3444        <div id="page" class="hfeed site">
    3545                <header id="masthead" class="site-header" role="banner">
    3646                        <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
  • src/wp-content/themes/twentytwelve/header.php

    diff --git src/wp-content/themes/twentytwelve/header.php src/wp-content/themes/twentytwelve/header.php
    index c3b99d6f3d..d00cd92c42 100644
     
    3232</head>
    3333
    3434<body <?php body_class(); ?>>
     35<?php
     36/**
     37 * Fires after the body day.
     38 *
     39 * Allows injection of custom items at the top of the page.
     40 *
     41 * @since 5.0.0
     42 *
     43 */
     44do_action( 'after_body' );?>
    3545<div id="page" class="hfeed site">
    3646        <header id="masthead" class="site-header" role="banner">
    3747                <hgroup>
     
    5060                <?php endif; ?>
    5161        </header><!-- #masthead -->
    5262
    53         <div id="main" class="wrapper">
    54  No newline at end of file
     63        <div id="main" class="wrapper">