Opened 11 years ago
Closed 11 years ago
#35644 closed defect (bug) (invalid)
this code create problam in my web site for search result hsa no result found so what can i do plz help me
| Reported by: | rdubey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 4.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
/**
* Display a noindex meta tag if required by the blog configuration.
*
* If a blog is marked as not being public then the noindex meta tag will be
* output to tell web robots not to index the page content. Add this to the wp_head action.
* Typical usage is as a wp_head callback. add_action( 'wp_head', 'index' );
*
* @see wp_no_robots
*
* @since 2.1.0
*/
function noindex() {
// If the blog is not public, tell robots to go away.
if ( '0' == get_option('blog_public') )
wp_no_robots();
}
/**
* Display a noindex meta tag.
*
* Outputs a noindex meta tag that tells web robots not to index the page content.
* Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_no_robots' );
*
* @since 3.3.0
*/
function wp_no_robots() {
echo "<meta name='robots' content='noindex,follow' />\n";
}
Change History (2)
#2
@
11 years ago
- Description modified (diff)
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
Hello @rdubey,
this Trac is for reporting bugs in WordPress Core and not for support. Please start a new topic with as much information as possible in the support forums.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
search on google has no result in my web site what can i do plz help me..