swissspidy / keep-my-theme

Keeps the zeitgeist of your blog
GNU General Public License v2.0
7 stars 1 forks source link

Keep my Theme for pages? #1

Open zu opened 7 years ago

zu commented 7 years ago

I recognized a notice: Only variables should be passed by reference in /wp-content/plugins/keep-my-theme/keep-my-theme.php on line 62

and I realised: it's for posts only. Could it be used for pages too?

swissspidy commented 7 years ago

Hmm yeah, support for other post types is probably as easy as replacing is_single() with is_singular().

https://github.com/swissspidy/keep-my-theme/blob/8e9f74c1e737e4afe8828fbc574c2a8d6a8503c1/keep-my-theme.php#L121-L127

Haven't touched that code in a while though :)

And good catch with the notice. I'll try to fix it when I got time.