themehybrid / hybrid-core

Official repository for the Hybrid Core WordPress development framework.
GNU General Public License v2.0
689 stars 144 forks source link

tweak: adding conditional check around class_alias to avoid warnings #188

Closed saas786 closed 3 years ago

saas786 commented 3 years ago

'\Hybrid\App' is already declared warning is thrown, when HC is being used in theme & plugin at same time, so to supress that warning, adding conditional check before setting class alias.

old commit ref: https://github.com/saas786/hybrid-core/commit/ba5ec87