Fixes a bug where one robots meta tag is nested inside another when SEO for the Post is disabled.
Types of changes
Bugfix (non-breaking change which fixes an issue)
Checklist
[x] I've selected the appropriate branch (ie x.y rather than master).
[x] I've created an appropriate title, descriptive of what the PR does.
[ ] Travis-ci runs with no errors.
Testing instructions
To reproduce this, disable SEO for a Post and toggle either NOINDEX, NOFOLLOW or both. Check the source code. You'll notice one robots meta tag is nested inside another.
Issue #3080
Proposed changes
Fixes a bug where one robots meta tag is nested inside another when SEO for the Post is disabled.
Types of changes
Checklist
Testing instructions
To reproduce this, disable SEO for a Post and toggle either NOINDEX, NOFOLLOW or both. Check the source code. You'll notice one robots meta tag is nested inside another.
Install the PR and confirm the fix.