kollapsminoriteten/wp-content/plugins/jetpack/modules/minileven.php

55 lines
1.3 KiB
PHP
Raw Normal View History

2019-11-15 23:26:29 +01:00
<?php
/**
2020-03-03 18:49:45 +01:00
* Deprecated since 8.3.0
*
* Originally we created the mobile theme feature as a fall-back
* when the regular theme did not include a mobile view.
* Most themes include a mobile view by default now, so the feature is no longer necessary.
*
* Visit this page for some alternatives:
* https://jetpack.com/support/mobile-theme/
*
* If you MUST continue to use this module, you can use this standalone plugin as a temporary solution:
* https://github.com/Automattic/minileven
* However, we do not recommend it.
*
* @deprecated
2021-04-27 08:32:47 +02:00
* @package automattic/jetpack
2019-11-15 23:26:29 +01:00
*/
2020-03-03 18:49:45 +01:00
/**
* Deactivate module if it is still active.
*
* @since 8.3.0
*/
if ( Jetpack::is_module_active( 'minileven' ) ) {
Jetpack::deactivate_module( 'minileven' );
2019-11-15 23:26:29 +01:00
}
2020-03-03 18:49:45 +01:00
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
_deprecated_file( basename( __FILE__ ), 'jetpack-8.3.0' );
2019-11-15 23:26:29 +01:00
2020-03-03 18:49:45 +01:00
/**
* Check if we are on mobile.
*/
function jetpack_check_mobile() {
_deprecated_function( __FUNCTION__, 'jetpack-8.3.0', 'jetpack_is_mobile' );
2019-11-15 23:26:29 +01:00
2020-03-03 18:49:45 +01:00
return jetpack_is_mobile();
2019-11-15 23:26:29 +01:00
}
2020-03-03 18:49:45 +01:00
/**
* Should exclude from mobile?
*/
function jetpack_mobile_exclude() {
_deprecated_function( __FUNCTION__, 'jetpack-8.3.0' );
2019-11-15 23:26:29 +01:00
}
2020-03-03 18:49:45 +01:00
/**
* Setup function for the Mobile theme.
* Can be overwritten in child themes.
*/
function minileven_setup() {
_deprecated_function( __FUNCTION__, 'jetpack-8.3.0' );
2019-11-15 23:26:29 +01:00
}