classes
2 weeks ago
dist
4 years ago
inc
2 weeks ago
lib
2 weeks ago
res
1 year ago
missing-functions.php
2 weeks ago
missing-functions.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! function_exists( 'wcml_wpml_get_admin_notices' ) ) { |
| 4 | function wcml_wpml_get_admin_notices() { |
| 5 | global $wpml_admin_notices; |
| 6 | |
| 7 | if ( ! $wpml_admin_notices ) { |
| 8 | $wpml_admin_notices = new WPML_Notices( new WPML_Notice_Render() ); |
| 9 | $wpml_admin_notices->init_hooks(); |
| 10 | } |
| 11 | |
| 12 | return $wpml_admin_notices; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | if ( ! function_exists( 'wpml_is_ajax' ) ) { |
| 17 | function wpml_is_ajax() { |
| 18 | if ( defined( 'DOING_AJAX' ) ) { |
| 19 | return true; |
| 20 | } |
| 21 | |
| 22 | return ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && wpml_mb_strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) == 'xmlhttprequest' ) ? true : false; |
| 23 | } |
| 24 | } |