Make WordPress Core

Opened 8 years ago

Closed 8 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's profile rdubey Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3
Component: General Keywords:
Focuses: Cc:

Description (last modified by ocean90)

/**
 * 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)

#1 @rdubey
8 years ago

search on google has no result in my web site what can i do plz help me..

#2 @ocean90
8 years ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to 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.