classes.php
40 lines
| 1 | <?php |
| 2 | // phpcs:ignoreFile |
| 3 | |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | exit; |
| 6 | } |
| 7 | |
| 8 | if ( ! class_exists( 'Kirki_Active_Callback' ) ) { |
| 9 | // Removed in https://github.com/aristath/kirki/pull/1682/files |
| 10 | class Kirki_Active_Callback { |
| 11 | public static function evaluate() { |
| 12 | _deprecated_function( __METHOD__, '3.0.17', null ); |
| 13 | return true; |
| 14 | } |
| 15 | private static function evaluate_requirement() { |
| 16 | _deprecated_function( __METHOD__, '3.0.17', null ); |
| 17 | return true; |
| 18 | } |
| 19 | public static function compare( $value1, $value2, $operator ) { |
| 20 | _deprecated_function( __METHOD__, '3.0.17', 'Kirki_Helper::compare_values' ); |
| 21 | return Kirki_Helper::compare_values( $value1, $value2, $operator ); |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Deprecated in v3.0.36 |
| 28 | * |
| 29 | * Keeping it here in case a theme or plugin was using one of its public methods. |
| 30 | * This is just to avoid fatal errors, it does not do anything. |
| 31 | */ |
| 32 | if ( ! class_exists( 'Kirki_CSS_To_File' ) ) { |
| 33 | class Kirki_CSS_To_File { |
| 34 | public function __construct() {} |
| 35 | public function get_url() {} |
| 36 | public function get_timestamp() {} |
| 37 | public function write_file() {} |
| 38 | } |
| 39 | } |
| 40 |