Closed mukeshpanchal27 closed 4 years ago
@jeffpaul Can you please check this?
I thought, at first, that this was a change to some docpress files (in which case I was going to recommend we push the change upstream and then update when docpress releases the change). However, this code does appear to be custom when we originally built out the docs site back in the summer of 2018. I'm generally ok with these changes, but not certain what coding standard we're following for the docs site and whether WPCS fully applies here?
Respected @jeffpaul,
Do I need to update the pull request? or it is your thought?
Yoda condition in /docs/functions/get-current-url.php as per https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#yoda-conditions document