WordPress.org

Make WordPress Core

Changeset 37689


Ignore:
Timestamp:
06/12/2016 12:33:27 AM (4 years ago)
Author:
jeremyfelt
Message:

Login: Fire wp_no_robots() in wp_die() only if function exists.

This covers cases where wp_die() is used before general-template.php is loaded.

Fixes #34401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r37677 r37689  
    26622662    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    26632663    <meta name="viewport" content="width=device-width">
    2664     <?php wp_no_robots(); ?>
     2664    <?php
     2665    if ( function_exists( 'wp_no_robots' ) ) {
     2666        wp_no_robots();
     2667    }
     2668    ?>
    26652669    <title><?php echo $title ?></title>
    26662670    <style type="text/css">
Note: See TracChangeset for help on using the changeset viewer.