/
wpcom-deprecated-functions.php
92 lines (80 loc) · 2.25 KB
/
wpcom-deprecated-functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
// Deprecated WordPress.com functions.
/**
* Loads the built-in WP REST API endpoints in WordPress.com VIP context.
*
* @deprecated Not applicable since VIP 2.0.0
*/
function wpcom_vip_load_wp_rest_api() {
_deprecated_function( __FUNCTION__, '2.0.0' );
}
/**
* By default HTTP is forced to be the cannonical version of URLs on WordPress.com.
*
* @deprecated Not applicable on VIP Go
*/
function wpcom_vip_enable_https_canonical() {
_deprecated_function( __FUNCTION__, '2.0.0' );
}
/**
* Requires WordPress.com internal libraries
*
* This internal function is used in some WordPress.com themes. These shared libraries
* are no longer supported on VIP Go, so they will need to be copied directly into
* VIP Go client repositories as needed.
*
* @deprecated Not supported on VIP Go
*/
function require_lib( $slug ) {
_deprecated_function( __FUNCTION__, '2.0.0' );
// Attempt to offer minimal back-compat.
// If the lib happens to exist in client-mu-plugins/lib, load it.
$lib = WPCOM_VIP_CLIENT_MU_PLUGIN_DIR . '/lib/' . $slug . '/' . $slug . '.php';
if ( file_exists( $lib ) ) {
require_once( $lib );
}
}
/*
* @deprecated Not applicable on VIP Go
*/
function vip_goog_stats( $deprecated = null ) {
_deprecated_function( __FUNCTION__, '2.0.0' );
}
/*
* Remove MP6 Styles
*
* At one point, this function was used to disable MP6 styles
* on WP.com, but this is no longer applicable
* https://wordpress.org/plugins/mp6/
*
* @deprecated Not applicable on VIP Go
*/
function wpcom_vip_remove_mp6_styles() {
_deprecated_function( __FUNCTION__, '2.0.0' );
}
/*
* @deprecated Not applicable on VIP Go
*/
function wpcom_vip_remove_bbpress2_staff_css() {
_deprecated_function( __FUNCTION__, '2.0.0' );
}
/*
* @deprecated Not part of the VIP Go platform
*/
function wpcom_vip_enabled_cap_in_oembed( $location = false ) {
_deprecated_function( __FUNCTION__, '2.0.0' );
}
/*
* @deprecated Not part of the VIP Go platform
*/
function is_wpcom_vip() {
_deprecated_function( __FUNCTION__, '2.0.0' );
return defined( 'WPCOM_IS_VIP_ENV' ) && true === WPCOM_IS_VIP_ENV ;
}
/**
* @deprecated Not part of the VIP Go platform
*/
function wpcom_vip_protected_embed_to_original( $content ) {
_deprecated_function( __FUNCTION__, '2.0.0' );
return $content;
}