﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
15647,robots.txt not correctly changing between allow and disallow,ipstenu,,"From this thread: http://wordpress.org/support/topic/robotstxt-set-to-disallow-cant-change

In wp-includes/functions.php file from the 1779 line starts do_robots function:

{{{
do_robots function () {
header ('Content-Type: text / plain; charset = utf-8');

do_action ('do_robotstxt');

$ output ='';
$ public = get_option ('blog_public');
if ('0 '== $ public) {
$ output .= ""User-agent: * \ n "";
$ output .= ""Disallow: / \ n "";
Else {}
$ output .= ""User-agent: * \ n "";
$ output .= ""Disallow: \ n "";
}

apply_filters echo ('robots_txt', $ output, $ public);
}
}}}

That first if should be:
{{{
if ('0 '== $ public) {
$ output .= ""User-agent: * \ n "";
$ output .= ""Allow: / \ n "";
}}}

Prod '''ellp'''
",defect (bug),closed,normal,,Accessibility,,major,worksforme,,
