PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.9.2.7
Advanced Custom Fields: Extended v0.9.2.7
0.9.2.7 0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / includes / acfe-deprecated-functions.php
acf-extended / includes Last commit date
admin 3 months ago field-groups 3 months ago fields 1 week ago fields-settings 3 months ago forms 3 months ago locations 3 months ago modules 1 week ago screens 3 months ago acfe-deprecated-functions.php 2 years ago acfe-field-functions.php 3 months ago acfe-field-group-functions.php 3 months ago acfe-file-functions.php 1 year ago acfe-form-functions.php 3 months ago acfe-helper-array-functions.php 3 months ago acfe-helper-functions.php 3 months ago acfe-helper-multi-functions.php 3 months ago acfe-helper-string-functions.php 3 months ago acfe-meta-functions.php 3 months ago acfe-post-functions.php 3 months ago acfe-screen-functions.php 3 months ago acfe-template-functions.php 3 months ago acfe-term-functions.php 3 months ago acfe-user-functions.php 3 months ago acfe-wp-functions.php 3 years ago assets.php 3 months ago compatibility-acf-5.8.php 4 months ago compatibility-acf-5.9.php 3 months ago compatibility-acf-6.5.php 3 months ago compatibility-acf-6.8.6.php 1 week ago compatibility.php 3 months ago field-extend.php 4 months ago field.php 4 months ago hooks.php 3 months ago init.php 3 months ago local-meta.php 3 years ago media.php 3 months ago module-acf.php 3 months ago module-db.php 3 months ago module-l10n.php 3 months ago module-legacy.php 3 years ago module-manager.php 4 months ago module-post.php 3 months ago module-posts.php 4 months ago module-upgrades.php 3 years ago module.php 3 months ago multilang.php 3 months ago revisions.php 4 months ago screen.php 3 months ago settings.php 3 months ago template-tags.php 3 months ago third-party.php 3 years ago upgrades.php 3 months ago
acfe-deprecated-functions.php
122 lines
1 <?php
2
3 if(!defined('ABSPATH')){
4 exit;
5 }
6
7 /**
8 * acfe_deprecated_function
9 *
10 * @param $function
11 * @param $version
12 * @param $replacement
13 */
14 function acfe_deprecated_function($function, $version, $replacement = ''){
15 acfe_trigger_error('Function', $function, $version, $replacement);
16 }
17
18
19 /**
20 * acfe_deprecated_setting
21 *
22 * @param $setting
23 * @param $version
24 * @param $replacement
25 */
26 function acfe_deprecated_setting($setting, $version, $replacement = ''){
27 acfe_trigger_error('Setting', $setting, $version, $replacement);
28 }
29
30
31 /**
32 * acfe_deprecated_constant
33 *
34 * @param $constant
35 * @param $version
36 * @param $replacement
37 */
38 function acfe_deprecated_constant($constant, $version, $replacement = ''){
39 acfe_trigger_error('Constant', $constant, $version, $replacement);
40 }
41
42
43 /**
44 * acfe_deprecated_hook
45 *
46 * @param $hook
47 * @param $version
48 * @param $replacement
49 */
50 function acfe_deprecated_hook($hook, $version, $replacement = ''){
51 acfe_trigger_error('Hook', $hook, $version, $replacement);
52 }
53
54
55 /**
56 * acfe_apply_filters_deprecated
57 *
58 * @param $hook
59 * @param $args
60 * @param $version
61 * @param $replacement
62 *
63 * @return mixed
64 */
65 function acfe_apply_filters_deprecated($hook, $args, $version, $replacement = ''){
66
67 if(!has_filter($hook)){
68 return $args[0];
69 }
70
71 acfe_deprecated_hook($hook, $version, $replacement);
72 return apply_filters_ref_array($hook, $args);
73
74 }
75
76
77 /**
78 * acfe_do_action_deprecated
79 *
80 * @param $hook
81 * @param $args
82 * @param $version
83 * @param $replacement
84 */
85 function acfe_do_action_deprecated($hook, $args, $version, $replacement = ''){
86
87 if(!has_action($hook)){
88 return;
89 }
90
91 acfe_deprecated_hook($hook, $version, $replacement);
92 do_action_ref_array($hook, $args);
93
94 }
95
96
97 /**
98 * acfe_trigger_error
99 *
100 * @param $label
101 * @param $function
102 * @param $version
103 * @param $replacement
104 */
105 function acfe_trigger_error($label, $function, $version, $replacement = ''){
106
107 do_action('deprecated_function_run', $function, $replacement, $version);
108
109 if(WP_DEBUG && apply_filters('deprecated_function_trigger_error', true)){
110
111 if($replacement){
112 $message = 'ACF Extended: ' . $label . ' ' . sprintf(__('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement);
113 }else{
114 $message = 'ACF Extended: ' . $label . ' ' . sprintf(__('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version);
115 }
116
117 // trigger error
118 trigger_error($message, E_USER_DEPRECATED);
119
120 }
121
122 }