Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ack-grep "noindex"
- wpml-config.xml
- 7: <custom-field action="copy">_yoast_wpseo_meta-robots-noindex</custom-field>
- frontend/class-frontend.php
- 95: remove_action( 'wp_head', 'noindex', 1 );
- 105: add_action( 'template_redirect', array( $this, 'noindex_feed' ) );
- 693: $noindex = ! WPSEO_Post_Type::is_post_type_indexable( $post->post_type );
- 695: if ( $noindex || $private ) {
- 696: $robots['index'] = 'noindex';
- 703: $robots['index'] = 'noindex';
- 707: if ( is_object( $term ) && ( WPSEO_Options::get( 'noindex-tax-' . $term->taxonomy, false ) ) ) {
- 708: $robots['index'] = 'noindex';
- 711: // Three possible values, index, noindex and default, do nothing for default.
- 712: $term_meta = WPSEO_Taxonomy_Meta::get_term_meta( $term, $term->taxonomy, 'noindex' );
- 718: $robots['index'] = 'noindex';
- 722: if ( WPSEO_Options::get( 'noindex-author-wpseo', false ) ) {
- 723: $robots['index'] = 'noindex';
- 726: if ( WPSEO_Options::get( 'noindex-author-noposts-wpseo', false ) && count_user_posts( $curauth->ID, 'any' ) === 0 ) {
- 727: $robots['index'] = 'noindex';
- 729: if ( get_user_meta( $curauth->ID, 'wpseo_noindex_author', true ) === 'on' ) {
- 730: $robots['index'] = 'noindex';
- 733: elseif ( is_date() && WPSEO_Options::get( 'noindex-archive-wpseo', false ) ) {
- 734: $robots['index'] = 'noindex';
- 746: if ( WPSEO_Options::get( 'noindex-ptarchive-' . $post_type, false ) ) {
- 747: $robots['index'] = 'noindex';
- 756: $robots['index'] = 'noindex';
- 780: // If a page has a noindex, it should _not_ have a canonical, as these are opposing indexing directives.
- 781: if ( strpos( $robotsstr, 'noindex' ) !== false ) {
- 797: $noindex = $this->get_seo_meta_value( 'meta-robots-noindex', $post_id );
- 798: if ( $noindex === '1' ) {
- 799: $robots['index'] = 'noindex';
- 801: elseif ( $noindex === '2' ) {
- 1321: * Outputs noindex values for the current page.
- 1323: public function noindex_page() {
- 1325: echo '<meta name="robots" content="noindex" />', "\n";
- 1333: * @return boolean Boolean indicating whether the noindex header was sent.
- 1335: public function noindex_feed() {
- 1338: header( 'X-Robots-Tag: noindex, follow', true );
- admin/class-meta-columns.php
- 377: 'key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
- 381: 'key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
- 512: 'key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
- 527: 'key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
- 548: return WPSEO_Meta::get_value( 'meta-robots-noindex', $post_id ) === '2';
- 555: return WPSEO_Options::get( 'noindex-' . $post->post_type, false ) === false;
- 569: return WPSEO_Meta::get_value( 'meta-robots-noindex', $post_id ) === '0';
- 607: $title = __( 'Post is set to noindex.', 'wordpress-seo' );
- admin/views/class-view-utils.php
- 43: /* translators: 1: expands to an indexable object's name, like a post type or taxonomy; 2: expands to <code>noindex</code>; 3: link open tag; 4: link close tag. */
- 47: /* translators: 1: expands to an indexable object's name, like a post type or taxonomy; 2: expands to <code>noindex</code>; 3: link open tag; 4: link close tag. */
- 53: uniqid( 'noindex-' . $post_type->name ),
- 58: '<code>noindex</code>',
- 81: $noindex_option_name = 'noindex-' . $post_type->name;
- 84: $noindex_option_name,
- admin/views/user-profile.php
- 33: <input class="yoast-settings__checkbox double" type="checkbox" id="wpseo_noindex_author"
- 34: name="wpseo_noindex_author"
- 35: value="on" <?php echo ( get_the_author_meta( 'wpseo_noindex_author', $user->ID ) === 'on' ) ? 'checked' : ''; ?> />
- 37: for="wpseo_noindex_author"><?php echo esc_html( $wpseo_no_index_author_label ); ?></label><br>
- admin/views/tabs/metas/paper-content/media-content.php
- 34: $noindex_option_name = 'noindex-' . $wpseo_post_type->name;
- 36: if ( WPSEO_Options::get( 'is-media-purge-relevant' ) && WPSEO_Options::get( $noindex_option_name ) === false ) {
- admin/views/tabs/metas/paper-content/date-archives-settings.php
- 23: 'noindex-archive-wpseo',
- 26: /* translators: 1: expands to <code>noindex</code>; 2: link open tag; 3: link close tag. */
- 28: '<code>noindex</code>',
- 35: 'noindex-archive-wpseo',
- admin/views/tabs/metas/paper-content/special-pages.php
- 14: /* translators: %s expands to <code>noindex, follow</code>. */
- 16: '<code>noindex, follow</code>'
- admin/views/tabs/metas/paper-content/post-type-content.php
- 37: 'noindex-ptarchive-' . $wpseo_post_type->name,
- admin/views/tabs/metas/paper-content/taxonomy-content.php
- 29: 'noindex-tax-' . $wpseo_taxonomy->name,
- admin/views/tabs/metas/paper-content/post_type/post-type.php
- 15:$noindex_option_name = 'noindex-' . $wpseo_post_type->name;
- 19: $noindex_option_name,
- admin/views/tabs/metas/paper-content/author-archive-settings.php
- 25: 'noindex-author-wpseo',
- 28: /* translators: 1: expands to <code>noindex</code>; 2: link open tag; 3: link close tag. */
- 30: '<code>noindex</code>',
- 37: 'noindex-author-wpseo',
- 44:<div id='noindex-author-noposts-wpseo-container'>
- 48: 'noindex-author-noposts-wpseo',
- 51: /* translators: 1: expands to <code>noindex</code>; 2: link open tag; 3: link close tag. */
- 53: '<code>noindex</code>',
- 60: 'noindex-author-noposts-wpseo',
- admin/views/tabs/metas/post-types.php
- 16: * Otherwise setting a post-type to `noindex` will remove it from the list,
- admin/views/tabs/metas/archives/help.php
- 16: /* translators: %s expands to <code>noindex, follow</code> */
- 18: '<code>noindex,follow</code>'
- admin/metabox/class-metabox.php
- 70: WPSEO_Meta::$meta_fields['advanced']['meta-robots-noindex']['title'] = __( 'Allow search engines to show this %s in search results?', 'wordpress-seo' );
- 72: WPSEO_Meta::$meta_fields['advanced']['meta-robots-noindex']['description'] = '<p class="error-message">' . __( 'Warning: even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won\'t have an effect.', 'wordpress-seo' ) . '</p>';
- 75: WPSEO_Meta::$meta_fields['advanced']['meta-robots-noindex']['options']['0'] = __( 'Default for %2$s, currently: %1$s', 'wordpress-seo' );
- 76: WPSEO_Meta::$meta_fields['advanced']['meta-robots-noindex']['options']['2'] = __( 'Yes', 'wordpress-seo' );
- 77: WPSEO_Meta::$meta_fields['advanced']['meta-robots-noindex']['options']['1'] = __( 'No', 'wordpress-seo' );
- admin/class-admin-user-profile.php
- 74: update_user_meta( $user_id, 'wpseo_noindex_author', $this->filter_input_post( 'wpseo_noindex_author' ) );
- admin/import/plugins/class-import-aioseo.php
- 54: 'old_key' => '_aioseop_noindex',
- 55: 'new_key' => 'meta-robots-noindex',
- admin/import/plugins/class-import-wpseo.php
- 92: // In wpSEO: noindex.
- 97: // In wpSEO: noindex, follow.
- 102: // In wpSEO: noindex, nofollow.
- 186: $this->maybe_save_post_meta( 'meta-robots-noindex', $robot_value['index'], $post_id );
- 239: $new_robot_value = 'noindex';
- 245: $tax_meta[ $taxonomy ][ $term_id ]['wpseo_noindex'] = $new_robot_value;
- admin/import/plugins/class-import-ultimate-seo.php
- 54: 'old_key' => '_su_meta_robots_noindex',
- 55: 'new_key' => 'meta-robots-noindex',
- admin/import/plugins/class-import-headspace.php
- 44: 'old_key' => '_headspace_noindex',
- 45: 'new_key' => 'meta-robots-noindex',
- admin/import/plugins/class-import-seopressor.php
- 141: $this->maybe_save_post_meta( 'meta-robots-noindex', $robot_value['index'], $post_id );
- 160: if ( in_array( 'noindex', $seopressor_robots, true ) ) {
- admin/import/plugins/class-import-woothemes-seo.php
- 44: 'old_key' => 'seo_noindex',
- 45: 'new_key' => 'meta-robots-noindex',
- 60: 'seo_noindex',
- admin/import/plugins/class-import-seo-framework.php
- 42: 'old_key' => '_genesis_noindex',
- 43: 'new_key' => 'meta-robots-noindex',
- admin/import/plugins/class-import-wp-meta-seo.php
- 67: 'new_key' => 'meta-robots-noindex',
- 70: 'noindex' => 1,
- admin/import/plugins/class-import-platinum-seo-pack.php
- 81: * - noindex,follow
- 82: * - noindex,nofollow
- 90: $this->import_by_meta_robots( 'noindex,follow', array( 'noindex' ) );
- 91: $this->import_by_meta_robots( 'noindex,nofollow', array( 'noindex', 'nofollow' ) );
- admin/import/plugins/class-import-smartcrawl.php
- 50: 'old_key' => '_wds_meta-robots-noindex',
- 51: 'new_key' => 'meta-robots-noindex',
- admin/import/plugins/class-import-squirrly.php
- 40: 'noindex' => 'meta-robots-noindex',
- admin/services/class-indexable-term-provider.php
- 27: 'is_robots_noindex' => 'noindex',
- 130: if ( WPSEO_Validator::key_exists( $indexable_data, 'is_robots_noindex' ) ) {
- 131: $indexable_data['is_robots_noindex'] = $this->convert_noindex( $indexable_data['is_robots_noindex'] );
- 151: * Converts the noindex value to a database compatible one.
- 153: * @param bool $noindex The current noindex value.
- 157: protected function convert_noindex( $noindex ) {
- 158: if ( $noindex === 'false' ) {
- 162: if ( $noindex === 'true' ) {
- 163: return 'noindex';
- admin/services/class-indexable-post-provider.php
- 27: 'is_robots_noindex' => 'meta-robots-noindex',
- 140: if ( WPSEO_Validator::key_exists( $indexable_data, 'is_robots_noindex' ) ) {
- 141: $indexable_data['is_robots_noindex'] = $this->convert_noindex( $indexable_data['is_robots_noindex'] );
- 215: * Converts the noindex value to a database compatible one.
- 217: * @param string $noindex The current noindex value.
- 221: protected function convert_noindex( $noindex ) {
- 222: if ( $noindex === 'false' ) {
- 226: if ( $noindex === 'true' ) {
- admin/config-ui/fields/class-field-choice-post-type.php
- 64: $key = 'noindex-' . $this->get_post_type();
- 83: return WPSEO_Options::set( 'noindex-' . $post_type, ( $visible === 'false' ) );
- admin/taxonomy/class-taxonomy-columns.php
- 133: __( 'Term is set to noindex.', 'wordpress-seo' )
- 184: $no_index = WPSEO_Taxonomy_Meta::get_term_meta( $term->term_id, $this->taxonomy, 'noindex' );
- 192: $no_index_key = 'noindex-tax-' . $term->taxonomy;
- admin/taxonomy/class-taxonomy-settings-fields.php
- 36: 'noindex' => $this->get_field_config(
- 41: $this->get_noindex_options()
- 71: $this->no_index_options['noindex'] = __( 'No', 'wordpress-seo' );
- 75: * Getting the data for the noindex fields.
- 79: private function get_noindex_options() {
- 81: $noindex_options['options'] = $this->no_index_options;
- 82: $noindex_options['options']['default'] = sprintf( $noindex_options['options']['default'], $labels->name, $this->get_robot_index() );
- 84: return $noindex_options;
- 105: $index_option = 'noindex-tax-' . $this->term->taxonomy;
- 107: $robot_index = $this->no_index_options['noindex'];
- inc/class-wpseo-statistics.php
- 37: 'meta_key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
- inc/options/class-wpseo-option-titles.php
- 47: 'noindex-author-wpseo' => false,
- 48: 'noindex-author-noposts-wpseo' => true,
- 49: 'noindex-archive-wpseo' => true,
- 84: * - 'noindex-' . $pt->name => false;
- 91: * - 'noindex-ptarchive-' . $pt->name => false;
- 95: * - 'noindex-tax-' . $tax->name => false;
- 115: 'noindex-',
- 266: $enriched_defaults[ 'noindex-' . $pt->name ] = false;
- 275: $enriched_defaults[ 'noindex-ptarchive-' . $pt->name ] = false;
- 291: $enriched_defaults[ 'noindex-tax-' . $tax->name ] = ( $tax->name === 'post_format' );
- 523: * 'noindex-author-wpseo', 'noindex-author-noposts-wpseo', 'noindex-archive-wpseo'
- 524: * 'noindex-' . $pt->name
- 525: * 'noindex-ptarchive-' . $pt->name
- 526: * 'noindex-tax-' . $tax->name
- 533: * 'noindex-'
- 629: 'noindexauthor' => 'noindex-author',
- 631: 'noindexdate' => 'noindex-archive',
- 632: 'noindexcat' => 'noindex-category',
- 633: 'noindextag' => 'noindex-post_tag',
- 634: 'noindexpostformat' => 'noindex-post_format',
- 669: 'noindex-author' => 'noindex-author-wpseo',
- 670: 'noindex-archive' => 'noindex-archive-wpseo',
- 689: 'noindex-' => 'noindex-tax-',
- 760: * 'noindex-'
- inc/options/class-wpseo-taxonomy-meta.php
- 58: 'wpseo_noindex' => 'default',
- 88: 'noindex' => '',
- 261: case 'wpseo_noindex':
- 391: case 'noindex':
- 393: // Convert 'on' to 'noindex'.
- 394: $option_value[ $taxonomy ][ $term_id ][ $key ] = 'noindex';
- inc/options/class-wpseo-options-backfill.php
- 117: 'disable_author_sitemap' => 'noindex-author-wpseo',
- 118: 'disable_author_noposts' => 'noindex-author-noposts-wpseo',
- 229: return get_user_meta( $object_id, 'wpseo_noindex_author' );
- inc/class-upgrade.php
- 477: * Removes some no longer used options for noindexing subpages and for meta keywords and its associated templates.
- 550: // Moves the user meta for excluding from the XML sitemap to a noindex.
- 552: $wpdb->query( "UPDATE $wpdb->usermeta SET meta_key = 'wpseo_noindex_author' WHERE meta_key = 'wpseo_excludeauthorsitemap'" );
- 610: if ( WPSEO_Options::get( 'noindex-attachment' ) === true ) {
- 841: $noindex = WPSEO_Meta::get_value( 'meta-robots-noindex', $shop_page_id );
- 843: if ( $noindex === '0' ) {
- 844: $option_noindex = WPSEO_Options::get( 'noindex-ptarchive-product' );
- 847: 'meta-robots-noindex',
- 848: $option_noindex,
- 852: WPSEO_Options::set( 'noindex-ptarchive-product', false );
- inc/class-post-type.php
- 62: return ( false === WPSEO_Options::get( 'noindex-' . $post_type_name, false ) );
- inc/sitemaps/class-author-sitemap-provider.php
- 22: if ( WPSEO_Options::get( 'disable-author', false ) || WPSEO_Options::get( 'noindex-author-wpseo', false ) ) {
- 112: 'key' => 'wpseo_noindex_author',
- 117: 'key' => 'wpseo_noindex_author',
- 124: if ( WPSEO_Options::get( 'noindex-author-noposts-wpseo', true ) ) {
- inc/sitemaps/class-sitemaps-cache.php
- 198: WPSEO_Options::get( 'noindex-' . $type ) === false ||
- 199: WPSEO_Options::get( 'noindex-tax-' . $type ) === false
- inc/sitemaps/class-post-type-sitemap-provider.php
- 262: if ( WPSEO_Meta::get_value( 'meta-robots-noindex', $post->ID ) === '1' ) {
- 474: if ( WPSEO_Options::get( 'noindex-ptarchive-' . $post_type, false ) ) {
- 495: if ( $post_id > 0 && WPSEO_Meta::get_value( 'meta-robots-noindex', $post_id ) === '1' ) {
- inc/sitemaps/class-taxonomy-sitemap-provider.php
- 198: $tax_noindex = WPSEO_Taxonomy_Meta::get_term_meta( $term, $term->taxonomy, 'noindex' );
- 200: if ( $tax_noindex === 'noindex' ) {
- 237: if ( WPSEO_Options::get( "noindex-tax-{$taxonomy_name}" ) === true ) {
- inc/sitemaps/class-sitemaps.php
- 421: header( 'X-Robots-Tag: noindex, follow', true );
- 441: header( 'X-Robots-Tag: noindex, follow', true );
- inc/sitemaps/class-sitemaps-admin.php
- 61: if ( WPSEO_Options::get( 'noindex-' . $post_type, false ) ) {
- 119: if ( WPSEO_Options::get( 'noindex-' . $post_type, false ) === false ) {
- inc/class-wpseo-rank.php
- 36: const NO_INDEX = 'noindex';
- 108: self::NO_INDEX => 'noindex',
- inc/indexables/class-term-indexable.php
- 29: 'is_robots_noindex',
- 66: 'is_robots_noindex' => self::get_robots_noindex_value( self::get_meta_value( 'noindex', $term ) ),
- 115: protected static function get_robots_noindex_value( $value ) {
- 116: if ( $value === 'noindex' ) {
- inc/indexables/class-post-indexable.php
- 29: 'is_robots_noindex',
- 74: 'is_robots_noindex' => self::get_robots_noindex_value( WPSEO_Meta::get_value( 'meta-robots-noindex', $post_object_id ) ),
- inc/indexables/validators/class-robots-validator.php
- 23: 'is_robots_noindex',
- inc/indexables/class-indexable.php
- 60: protected static function get_robots_noindex_value( $value ) {
- inc/class-wpseo-meta.php
- 148: 'meta-robots-noindex' => array(
- 357: $field_defs['meta-robots-noindex']['title'] = sprintf( $field_defs['meta-robots-noindex']['title'], $post_type_object->labels->singular_name );
- 358: $field_defs['meta-robots-noindex']['options']['0'] = sprintf( $field_defs['meta-robots-noindex']['options']['0'], ( ( WPSEO_Options::get( 'noindex-' . $post_type, false ) === true ) ? $field_defs['meta-robots-noindex']['options']['1'] : $field_defs['meta-robots-noindex']['options']['2'] ), $post_type_object->label );
- 777: self::$meta_prefix . 'meta-robots-noindex',
- 786: if ( $value === 'noindex' ) {
- 787: update_post_meta( $old->post_id, self::$meta_prefix . 'meta-robots-noindex', 1 );
- migrations/20171228151840_WpYoastIndexable.php
- 47: $indexable_table->column( 'is_robots_noindex', 'boolean', array( 'null' => true, 'default' => false ) );
- 127: 'is_robots_noindex',
- 133: 'name' => 'robots_noindex',
- src/formatters/indexable-term-formatter.php
- 61: $indexable->is_robots_noindex = $this->get_noindex_value( $this->get_meta_value( 'wpseo_noindex', $term_meta ) );
- 82: * Converts the meta noindex value to the indexable value.
- 88: protected function get_noindex_value( $meta_value ) {
- 89: if ( $meta_value === 'noindex' ) {
- src/formatters/indexable-author-formatter.php
- 47: $indexable->is_robots_noindex = $this->get_noindex_value( $meta_data['wpseo_noindex_author'] );
- 65: 'wpseo_noindex_author',
- 77: * Retrieves the value for noindex.
- 79: * @param string $noindex Current noindex value.
- 81: * @return bool True if noindex is selected, false if not.
- 83: protected function get_noindex_value( $noindex ) {
- 84: return $noindex === 'on';
- src/formatters/indexable-post-formatter.php
- 52: $indexable->is_robots_noindex = $this->get_robots_noindex(
- 53: $this->get_meta_value( 'meta-robots-noindex' )
- 57: $noindex_advanced = $this->get_meta_value( 'meta-robots-adv' );
- 58: $meta_robots = explode( ',', $noindex_advanced );
- 77: * Converts the meta robots noindex value to the indexable value.
- 81: * @return bool|null True for noindex, false for index, null for default of parent/type.
- 83: protected function get_robots_noindex( $value ) {
- src/models/indexable.php
- 29: * @property boolean $is_robots_noindex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement