Changeset 18822
- Timestamp:
- 09/29/2011 09:47:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r18807 r18822 1847 1847 do_action( 'do_robotstxt' ); 1848 1848 1849 $output = '';1849 $output = "User-agent: *\n"; 1850 1850 $public = get_option( 'blog_public' ); 1851 1851 if ( '0' == $public ) { 1852 $output .= "User-agent: *\n";1853 1852 $output .= "Disallow: /\n"; 1854 1853 } else { 1855 $output .= "User-agent: *\n"; 1856 $output .= "Disallow:\n"; 1854 $site_url = parse_url( site_url() ); 1855 $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : ''; 1856 $output .= "Disallow: $path/wp-admin/\n"; 1857 $output .= "Disallow: $path/wp-includes/\n"; 1857 1858 } 1858 1859
Note: See TracChangeset
for help on using the changeset viewer.