Changeset 3337914
- Timestamp:
- 08/01/2025 03:48:13 PM (8 months ago)
- Location:
- administrator-z/trunk
- Files:
-
- 9 edited
-
administrator-z.php (modified) (1 diff)
-
includes/functions/__woocommerce.php (modified) (1 diff)
-
src/Controller/AdministratorZ.php (modified) (1 diff)
-
src/Controller/Flatsome.php (modified) (1 diff)
-
src/Controller/Test.php (modified) (1 diff)
-
src/Controller/Tools.php (modified) (2 diffs)
-
src/Controller/Woocommerce.php (modified) (1 diff)
-
src/Controller/Wordpress.php (modified) (5 diffs)
-
vendor/quyle91/wp-database-helper/src/WpField.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
administrator-z/trunk/administrator-z.php
r3319014 r3337914 50 50 define('ADMINZ_SLUG', 'administrator-z'); 51 51 require __DIR__ . "/vendor/autoload.php"; 52 -
administrator-z/trunk/includes/functions/__woocommerce.php
r3295523 r3337914 157 157 158 158 function adminz_flatsome_is_shop_archive() { 159 if(!adminz_is_woocommerce()){ 160 return false; 161 } 162 159 163 $queried_object = get_queried_object(); 160 164 $taxonomy = ($queried_object && property_exists($queried_object, 'taxonomy')) ? $queried_object->taxonomy : false; -
administrator-z/trunk/src/Controller/AdministratorZ.php
r3318141 r3337914 61 61 function () { 62 62 $list = [ 63 'Tools - Test user field and meta', 63 64 'Wpcf7 - Date time placeholder', 64 65 'Wordpress - Move plugins to must use', -
administrator-z/trunk/src/Controller/Flatsome.php
r3295523 r3337914 896 896 add_settings_field( 897 897 wp_rand(), 898 ' [beta]Menu item active anchor link',898 'Menu item active anchor link', 899 899 function () { 900 900 // field -
administrator-z/trunk/src/Controller/Test.php
r3295523 r3337914 1229 1229 } 1230 1230 1231 // 1232 if ($_GET['adminz_test_userfield'] ?? '') { 1233 $user_id = esc_attr($_GET['adminz_test_userfield']); 1234 global $wpdb; 1235 $results = get_user_by('id', $user_id); 1236 if (!empty($results)) { 1237 echo "<pre>"; 1238 print_r($results); 1239 echo "</pre>"; 1240 } else { 1241 echo 'User not found: user_id = ' . $user_id; 1242 } 1243 die; 1244 } 1245 1246 // 1247 if ($_GET['adminz_test_usermeta'] ?? '') { 1248 $user_id = esc_attr($_GET['adminz_test_usermeta']); 1249 global $wpdb; 1250 $results = $wpdb->get_results( 1251 $wpdb->prepare("SELECT * FROM {$wpdb->prefix}usermeta WHERE user_id = %d", $user_id) 1252 ); 1253 if (!empty($results)) { 1254 echo "<pre>"; 1255 print_r($results); 1256 echo "</pre>"; 1257 } else { 1258 echo 'User not found: user_id = ' . $user_id; 1259 } 1260 die; 1261 } 1262 1231 1263 1232 1264 // -
administrator-z/trunk/src/Controller/Tools.php
r3311656 r3337914 345 345 add_settings_section( 346 346 'adminz_tools_clone', 347 ' [BETA]Clone post',347 'Clone post', 348 348 function () { 349 349 // … … 1667 1667 echo adminz_copy(add_query_arg(['adminz_test_postmeta' => 'XXX',], get_site_url())) . "<br>"; 1668 1668 echo adminz_copy(add_query_arg(['adminz_test_termfield' => 'XXX',], get_site_url())) . "<br>"; 1669 echo adminz_copy(add_query_arg(['adminz_test_userfield' => 'XXX',], get_site_url())) . "<br>"; 1670 echo adminz_copy(add_query_arg(['adminz_test_usermeta' => 'XXX',], get_site_url())) . "<br>"; 1669 1671 echo adminz_copy(add_query_arg(['adminz_test_termmeta' => 'XXX',], get_site_url())) . "<br>"; 1670 1672 echo adminz_copy(add_query_arg(['adminz_test_theme_template' => 'XXX',], get_site_url())) . "<br>"; -
administrator-z/trunk/src/Controller/Woocommerce.php
r3295523 r3337914 529 529 add_settings_field( 530 530 wp_rand(), 531 ' [beta]Validate fields',531 'Validate fields', 532 532 function () { 533 533 $current = $this->settings['validate_fields'] ?? []; -
administrator-z/trunk/src/Controller/Wordpress.php
r3311656 r3337914 786 786 add_settings_field( 787 787 wp_rand(), 788 ' [beta]No index support',788 'No index support', 789 789 function () { 790 790 … … 807 807 add_settings_field( 808 808 wp_rand(), 809 ' [beta]Meta tags support',809 'Meta tags support', 810 810 function () { 811 811 // … … 833 833 add_settings_field( 834 834 wp_rand(), 835 ' [beta]Meta Og, twitter support',835 'Meta Og, twitter support', 836 836 function () { 837 837 // … … 955 955 add_settings_field( 956 956 wp_rand(), 957 ' [BETA]Register post type',957 'Register post type', 958 958 function () { 959 959 $current = $this->settings['register_post_type'] ?? ['']; … … 1078 1078 add_settings_field( 1079 1079 wp_rand(), 1080 ' [BETA]Register Taxonomy',1080 'Register Taxonomy', 1081 1081 function () { 1082 1082 $current = $this->settings['register_taxonomy'] ?? []; -
administrator-z/trunk/vendor/quyle91/wp-database-helper/src/WpField.php
r3295523 r3337914 231 231 $html_items = []; 232 232 $this->args['value'] = (array) $this->args['value']; 233 233 234 234 // repeater 235 if (($this->args['field'] ?? '') == 'repeater'){235 if (($this->args['field'] ?? '') == 'repeater') { 236 236 return 'Repeater'; 237 237 } … … 312 312 $label_before = $this->args['label_position'] == 'before' ? $this->get_label() : ''; 313 313 $label_after = $this->args['label_position'] == 'after' ? $this->get_label() : ''; 314 315 // force santizie value for textarea 316 if (!is_string($this->args['value'] ?? '')) { 317 $this->args['value'] = serialize($this->args['value']); 318 } 319 // force santizie value for input 320 if (!is_string($this->args['attribute']['value'] ?? '')) { 321 $this->args['attribute']['value'] = serialize($this->args['attribute']['value']); 322 } 323 314 324 $field_output = method_exists($this, $field) ? $this->{$field}() : "<mark>{$field} method does not exist</mark>"; 315 325
Note: See TracChangeset
for help on using the changeset viewer.