Bez popisu

minileven.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 automattic/jetpack
  18. */
  19. /**
  20. * Deactivate module if it is still active.
  21. *
  22. * @since 8.3.0
  23. */
  24. if ( Jetpack::is_module_active( 'minileven' ) ) {
  25. Jetpack::deactivate_module( 'minileven' );
  26. }
  27. // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
  28. _deprecated_file( basename( __FILE__ ), 'jetpack-8.3.0' );
  29. /**
  30. * Check if we are on mobile.
  31. */
  32. function jetpack_check_mobile() {
  33. _deprecated_function( __FUNCTION__, 'jetpack-8.3.0', 'jetpack_is_mobile' );
  34. return jetpack_is_mobile();
  35. }
  36. /**
  37. * Should exclude from mobile?
  38. */
  39. function jetpack_mobile_exclude() {
  40. _deprecated_function( __FUNCTION__, 'jetpack-8.3.0' );
  41. }
  42. /**
  43. * Setup function for the Mobile theme.
  44. * Can be overwritten in child themes.
  45. */
  46. function minileven_setup() {
  47. _deprecated_function( __FUNCTION__, 'jetpack-8.3.0' );
  48. }