Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not index comment pages and replytocom #187

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

nhatrangnet
Copy link
Contributor

@nhatrangnet nhatrangnet commented Jan 14, 2025

@nhatrangnet nhatrangnet requested a review from rilwis January 14, 2025 11:20
src/MetaTags/Robots.php Outdated Show resolved Hide resolved
src/MetaTags/Robots.php Outdated Show resolved Hide resolved
@@ -65,6 +65,11 @@ private function get_indexed() {
return false;
}

// Do not index comment pages and replytocom
if ( is_singular() && get_query_var('cpage' ) || isset( $_GET['replytocom'] ) ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sửa lại điều kiện, thêm ngoặc vào cho hợp lý:

if ( is_singular() && ( get_query_var('cpage' ) || isset( $_GET['replytocom'] ) ) ) {

@rilwis rilwis merged commit b99b661 into master Jan 16, 2025
@rilwis rilwis deleted the Fix/not_index_comment_pages_and_replytocom branch January 16, 2025 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants