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 / compatibility-acf-5.8.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
compatibility-acf-5.8.php
136 lines
1 <?php
2
3 if(!defined('ABSPATH')){
4 exit;
5 }
6
7 // check version
8 if(!acfe_is_acf('5.8', '5.9')){
9 return;
10 }
11
12 if(!class_exists('acfe_compatibility_acf_58')):
13
14 class acfe_compatibility_acf_58{
15
16 /**
17 * construct
18 */
19 function __construct(){
20
21 add_action('current_screen', array($this, 'current_screen'));
22 add_action('after_plugin_row_' . plugin_basename(ACFE_FILE), array($this, 'after_plugin_row'), 5, 3);
23
24 }
25
26
27 /**
28 * current_screen
29 *
30 * @param $screen
31 *
32 * @return void
33 */
34 function current_screen($screen){
35
36 // global
37 global $pagenow;
38
39 // check screen
40 if($pagenow === 'plugins.php' || $pagenow === 'plugin-install.php'){
41 acf_log('[ACF Extended] Support of ACF Pro 5.8 (2019) will be dropped on September 2026. Please upgrade to ACF Pro 5.9 or higher to maintain compatibility with future versions of ACF Extended.');
42 }
43
44 }
45
46
47 /**
48 * after_plugin_row
49 *
50 * @param $plugin_file
51 * @param $plugin_data
52 * @param $status
53 *
54 * @return void
55 */
56 function after_plugin_row($plugin_file, $plugin_data, $status){
57
58 // vars
59 $colspan = version_compare($GLOBALS['wp_version'], '5.5', '<') ? 3 : 4;
60
61 // message
62 $message = __('Support of ACF Pro 5.8 (2019) will be dropped on September 2026. Please upgrade to ACF Pro 5.9 or higher to maintain compatibility with future versions of ACF Extended.', 'acfe');
63
64 // class
65 $class = 'acfe-plugin-tr';
66 if(isset($plugin_data['update']) && !empty($plugin_data['update'])){
67 $class .= ' acfe-plugin-tr-update';
68 }
69
70 ?>
71 <style>
72 .plugins tr[data-plugin='<?php echo $plugin_file; ?>'] th,
73 .plugins tr[data-plugin='<?php echo $plugin_file; ?>'] td{
74 box-shadow:none;
75 }
76 </style>
77
78 <tr class="plugin-update-tr active <?php echo $class; ?>">
79 <td colspan="<?php echo $colspan; ?>" class="plugin-update colspanchange">
80 <div class="update-message notice inline notice-error notice-alt">
81 <p><?php echo $message; ?></p>
82 </div>
83 </td>
84 </tr>
85 <?php
86
87 }
88
89 }
90
91 acf_new_instance('acfe_compatibility_acf_58');
92
93 endif;
94
95 if(!function_exists('acf_get_location_type')){
96 function acf_get_location_type(){
97 return array();
98 }
99 }
100
101 if(!function_exists('acf_enqueue_script')){
102 function acf_enqueue_script(){
103 acf_enqueue_scripts();
104 }
105 }
106
107 if(!function_exists('acf_esc_attrs')){
108 function acf_esc_attrs($atts = array()){
109 return acf_esc_atts($atts);
110 }
111 }
112
113 if(!function_exists('acf_get_user_result')){
114 function acf_get_user_result($user){
115
116 // Vars.
117 $id = $user->ID;
118 $text = $user->user_login;
119
120 // Add name.
121 if($user->first_name && $user->last_name){
122 $text .= " ({$user->first_name} {$user->last_name})";
123 }elseif($user->first_name){
124 $text .= " ({$user->first_name})";
125 }
126 return compact('id', 'text');
127 }
128 }
129
130 if(!function_exists('acf_not_empty')){
131 function acf_not_empty($var){
132 return ($var || is_numeric($var));
133 }
134 }
135
136