WordPress.org

Make WordPress Core

Ticket #48887: 48887.2.patch

File 48887.2.patch, 2.0 KB (added by ramiy, 4 months ago)

fix wrong location in wp-admin/admin-header.php

  • wp-admin/admin-header.php

     
    221221$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
    222222?>
    223223<body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes; ?>">
     224<?php
     225/**
     226 * Fire the admin_body_open action in all admin pages.
     227 *
     228 * @since 5.4.0
     229 */
     230do_action( 'admin_body_open' );
     231?>
    224232<script type="text/javascript">
    225233        document.body.className = document.body.className.replace('no-js','js');
    226234</script>
  • wp-includes/theme-compat/header-embed.php

     
    3030        ?>
    3131</head>
    3232<body <?php body_class(); ?>>
     33<?php
     34/**
     35 * Fire the embed_body_open action in the embed template.
     36 *
     37 * @since 5.4.0
     38 */
     39do_action( 'embed_body_open' );
     40?>
     41 No newline at end of file
  • wp-includes/theme-compat/header.php

     
    4949<?php wp_head(); ?>
    5050</head>
    5151<body <?php body_class(); ?>>
     52<?php wp_body_open(); ?>
     53
    5254<div id="page">
    5355
    5456<div id="header" role="banner">
  • wp-login.php

     
    197197        ?>
    198198        </head>
    199199        <body class="login no-js <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
     200        <?php
     201        /**
     202         * Fire the login_body_open action in the login page.
     203         *
     204         * @since 5.4.0
     205         */
     206        do_action( 'login_body_open' );
     207        ?>
    200208        <script type="text/javascript">
    201209                document.body.className = document.body.className.replace('no-js','js');
    202210        </script>