1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
// Exit if accessed directly |
4
|
|
|
if ( ! defined( 'ABSPATH' ) ) { |
5
|
|
|
exit; |
6
|
|
|
} |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Deprecated functions |
10
|
|
|
* |
11
|
|
|
* @package Black_Studio_TinyMCE_Widget |
12
|
|
|
*/ |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Global var with plugin version for backward compatibility |
16
|
|
|
* |
17
|
|
|
* @since 0.6.3 |
18
|
|
|
* @deprecated 2.0.0 |
19
|
|
|
*/ |
20
|
|
|
global $black_studio_tinymce_widget_version; // global is necessary because this file is included in a non-global context |
21
|
|
|
$black_studio_tinymce_widget_version = Black_Studio_TinyMCE_Plugin::$version; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Global var used for development |
25
|
|
|
* |
26
|
|
|
* @since 0.9.4 |
27
|
|
|
* @deprecated 1.4 |
28
|
|
|
*/ |
29
|
|
|
global $black_studio_tinymce_widget_dev_mode ; // global is necessary because this file is included in a non-global context |
30
|
|
|
$black_studio_tinymce_widget_dev_mode = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @since 1.4.0 |
34
|
|
|
* @deprecated 2.0.0 |
35
|
|
|
*/ |
36
|
|
|
function black_studio_tinymce_get_version() { |
37
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->get_version()' ); |
38
|
|
|
bstw()->get_version(); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @since 0.7.0 |
43
|
|
|
* @deprecated 2.0.0 |
44
|
|
|
*/ |
45
|
|
|
function black_studio_tinymce_widgets_init() { |
46
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->widgets_init()' ); |
47
|
|
|
bstw()->widgets_init(); |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @since 0.8.0 |
52
|
|
|
* @deprecated 2.0.0 |
53
|
|
|
*/ |
54
|
|
|
function black_studio_tinymce_admin_init() { |
55
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->admin()->admin_init()' ); |
56
|
|
|
bstw()->admin()->admin_init(); |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @since 0.5.0 |
61
|
|
|
* @deprecated 2.0.0 |
62
|
|
|
*/ |
63
|
|
|
function black_studio_tinymce_load_tiny_mce() { |
64
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->admin()->enqueue_media()' ); |
65
|
|
|
bstw()->admin()->enqueue_media(); |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @since 0.5.0 |
70
|
|
|
* @deprecated 2.0.0 |
71
|
|
|
*/ |
72
|
|
|
function black_studio_tinymce_init_editor( $arg ) { |
73
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0' ); |
74
|
|
|
return $arg; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @since 0.5.0 |
79
|
|
|
* @deprecated 2.0.0 |
80
|
|
|
*/ |
81
|
|
|
function black_studio_tinymce_styles() { |
82
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->admin()->admin_print_styles()' ); |
83
|
|
|
bstw()->admin()->admin_print_styles(); |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @since 0.5.0 |
88
|
|
|
* @deprecated 2.0.0 |
89
|
|
|
*/ |
90
|
|
|
function black_studio_tinymce_scripts() { |
91
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->admin()->admin_print_scripts()' ); |
92
|
|
|
bstw()->admin()->admin_print_scripts(); |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @since 0.7.0 |
97
|
|
|
* @deprecated 2.0.0 |
98
|
|
|
*/ |
99
|
|
|
function black_studio_tinymce_footer_scripts() { |
100
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->admin()->admin_print_footer_scripts()' ); |
101
|
|
|
bstw()->admin()->admin_print_footer_scripts(); |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @since 0.6.0 |
106
|
|
|
* @deprecated 0.7.0 |
107
|
|
|
*/ |
108
|
|
|
function black_studio_tinymce_preload_dialogs() { |
109
|
|
|
_deprecated_function( __FUNCTION__, '0.7', 'bstw()->admin()->admin_print_footer_scripts()' ); |
110
|
|
|
bstw()->admin()->admin_print_footer_scripts(); |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @uses get_option() |
115
|
|
|
* |
116
|
|
|
* @since 1.3.0 |
117
|
|
|
* @deprecated 2.0.0 |
118
|
|
|
*/ |
119
|
|
|
function black_studio_tinymce_apply_smilies_to_widget_text( $text ) { |
120
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->text_filters()->convert_smilies( ... )' ); |
121
|
|
|
if ( get_option( 'use_smilies' ) ) { |
122
|
|
|
$text = bstw()->text_filters()->convert_smilies( $text ); |
123
|
|
|
} |
124
|
|
|
return $text; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @since 1.0.0 |
129
|
|
|
* @deprecated 2.0.0 |
130
|
|
|
*/ |
131
|
|
|
function black_studio_tinymce_upload_iframe_src( $arg ){ |
132
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->compatibility()->wordpress()->wp_pre_35_upload_iframe_src( ... )' ); |
133
|
|
|
bstw()->compatibility()->wordpress()->wp_pre_35_upload_iframe_src( $arg ); |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @since 1.2.0 |
138
|
|
|
* @deprecated 2.0.0 |
139
|
|
|
*/ |
140
|
|
|
function black_studio_tinymce_editor_accessibility_mode( $editor ) { |
141
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()->admin()->editor_accessibility_mode( ... )' ); |
142
|
|
|
bstw()->admin()->editor_accessibility_mode( $editor ); |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @since 1.4.5 |
147
|
|
|
* @deprecated 2.0.0 |
148
|
|
|
*/ |
149
|
|
|
function black_studio_tinymce_siteorigin_panels_widget_object( $the_widget ) { |
150
|
|
|
_deprecated_function( __FUNCTION__, '2.0.0', 'bstw()-compatibility()->plugins()->siteorigin_panels_widget_object( ... )' ); |
151
|
|
|
bstw()->compatibility()->plugins()->siteorigin_panels_widget_object( $the_widget ); |
152
|
|
|
} |
153
|
|
|
|