WordPress.org

Make WordPress Core

Ticket #14069: 14069.patch

File 14069.patch, 497 bytes (added by hakre, 4 years ago)
  • wp-includes/functions.php

     
    17771777 * @uses do_action() Calls 'do_robotstxt' hook for displaying robot.txt rules. 
    17781778 */ 
    17791779function do_robots() { 
    1780         header( 'Content-Type: text/plain; charset=utf-8' ); 
     1780        header( 'Content-Type: text/plain; charset=' . get_bloginfo( 'charset' ) ); 
    17811781 
    17821782        do_action( 'do_robotstxt' ); 
    17831783