More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions

View File

@ -330,7 +330,7 @@ class Theme_Limits {
*/
protected function get_forced_theme_stylesheet() {
if ($this->forced_theme_stylesheet === null) {
if (null === $this->forced_theme_stylesheet) {
$this->forced_theme_stylesheet = wu_get_current_site()->get_limitations()->themes->get_forced_active_theme();
}
@ -346,7 +346,7 @@ class Theme_Limits {
*/
protected function get_forced_theme_template() {
if ($this->forced_theme_template === null) {
if (null === $this->forced_theme_template) {
$stylesheet = $this->get_forced_theme_stylesheet();
$this->forced_theme_template = $stylesheet ? wp_get_theme($stylesheet)->get_template() : false;