Completed
Push — renovate/mapbox-gl-1.x ( 21e252...a0a67d )
by Jeremy
08:07
created

minileven.php ➔ jetpack_check_mobile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Deprecated since 8.3.0
4
 *
5
 * Originally we created the mobile theme feature as a fall-back
6
 * when the regular theme did not include a mobile view.
7
 * Most themes include a mobile view by default now, so the feature is no longer necessary.
8
 *
9
 * Visit this page for some alternatives:
10
 * https://jetpack.com/support/mobile-theme/
11
 *
12
 * If you MUST continue to use this module, you can use this standalone plugin as a temporary solution:
13
 * https://github.com/Automattic/minileven
14
 * However, we do not recommend it.
15
 *
16
 * @deprecated
17
 * @package Jetpack
18
 */
19
20
/**
21
 * Deactivate module if it is still active.
22
 *
23
 * @since 8.3.0
24
 */
25
if ( Jetpack::is_module_active( 'minileven' ) ) {
26
	Jetpack::deactivate_module( 'minileven' );
27
}
28
29
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
30
_deprecated_file( basename( __FILE__ ), 'jetpack-8.3.0' );
31
32
/**
33
 * Check if we are on mobile.
34
 */
35
function jetpack_check_mobile() {
36
	_deprecated_function( __FUNCTION__, 'jetpack-8.3.0', 'jetpack_is_mobile' );
37
38
	return jetpack_is_mobile();
39
}
40
41
/**
42
 * Should exclude from mobile?
43
 */
44
function jetpack_mobile_exclude() {
45
	_deprecated_function( __FUNCTION__, 'jetpack-8.3.0' );
46
}
47
48
/**
49
 * Setup function for the Mobile theme.
50
 * Can be overwritten in child themes.
51
 */
52
function minileven_setup() {
53
	_deprecated_function( __FUNCTION__, 'jetpack-8.3.0' );
54
}
55