Is it OK if I only add (or remove) tags for my edit suggestion?
Yes.
We all try to get tags "clean" from time to time. The more people jump in and "adopt" a tag, the better.
Am I wrong in those minor changes?
A "minor" edit was defined as "less than 6 characters". Yours was 7 :)
While it was technically correct, and I tend to agree with such edits, yes, HTTP should not be written in lower case letters, the edit itself could have improved all the things in need of an edit.
Any ideas?
could have been removed as it does not add any value. It's a question per se, so no need to ask.
Now, I want to only inject the headers on pages in category x
.
could get clarifications with a comment up front that asks why the pages have categories on this specific site. This might have an impact on the answer.
I've wrapped the function in if ( in_category('x') ) {}
but that didn't work.
obviously the code is out of the scope of this "conditional". This means that there might be clarification needed around when and where the code in the question is executed.
The same goes for the code that was meant to be an edit, but came out as comment.
I've also tried with wp_headers, and that fails too: function add_header_xua($headers) { // var_dump($headers); #=> if you want to see the current headers... if ( in_category('x') ) { $headers['X-UA-Compatible'] = 'IE=edge,chrome=1'; } return $headers; } add_filter('wp_headers', 'add_header_xua');
– Jim Duggan 14 hours ago
…which was 1 hour before the edit.
As you can see, there were some things which really needed an edit and that's the reason I rejected the edit.
Summed up: The community can be glad about everyone who jumps in and wants to edit. Still we need more full edits to help questions become better and receive upvotes, than we need minor edits that put the focus on correcting the inner Woody Allen and fix http vs. the correct HTTP version ;)
Hope that helps! If you have further questions, feel free to leave a comment.