get_option( 'blog_public' ) always returns 0
-
I am encountering a very strange issue where get_option( ‘blog_public’ ) always returns 0. This causes WordPress to always add noindex,follow to the head.
I have checked the database entry in wp_options and wp-admin/options.php, even when ‘blog_public’ says 1 the get_option function still returns 0. The strange thing is, the checkbox for “Discourage search engines from indexing this site” displays the correct value (1 for unchecked en 0 for check).
A quick fix for the noindex problem is this remove_action( ‘wp_head’, ‘noindex’, 1 ), but does anyone have any idea why this is happening? I have no plugins installed, just using the default theme.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_option( 'blog_public' ) always returns 0’ is closed to new replies.