/** * Returns the Charitable_Deprecated class, loading the file if required. * * @return Charitable_Deprecated * @since 1.4.0 */ function charitable_get_deprecated() { if (!class_exists('Charitable_Deprecated')) { require_once charitable()->get_path('includes') . 'deprecated/class-charitable-deprecated.php'; } return Charitable_Deprecated::get_instance(); }
/** * Returns whether logging is enabled. * * @return boolean * @access public * @since 1.4.0 */ private function is_logging_enabled() { if (!isset(self::$logging)) { self::$logging = WP_DEBUG && apply_filters('charitable_log_deprecated_notices', true); } return self::$logging; }