Incorrect Meta Behaviour?
-
Hi,
I have noticed an issue with your plugin which seems to display the following meta tag to pages which are not payment related? and is therefore causing pages to be no indexed as a result.
<meta name="robots" content="noindex,nofollow" />
Which appears to be down to this logic in code:
function wpinv_checkout_meta_tags() { $pages = array(); $pages[] = wpinv_get_option( 'success_page' ); $pages[] = wpinv_get_option( 'failure_page' ); $pages[] = wpinv_get_option( 'invoice_history_page' ); $pages[] = wpinv_get_option( 'invoice_subscription_page' ); if ( ! wpinv_is_checkout() && ! is_page( $pages ) ) { return; } echo '<meta name="robots" content="noindex,nofollow" />' . "\n"; } add_action( 'wp_head', 'wpinv_checkout_meta_tags' );
Does this logic need inverting so that if $pages is true or checkout is true then display the meta-tag?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Incorrect Meta Behaviour?’ is closed to new replies.