Changeset 2504873
- Timestamp:
- 03/28/2021 10:33:32 PM (5 years ago)
- Location:
- brads-entity-attribute-value-database
- Files:
-
- 4 edited
- 5 copied
-
tags/2.05 (copied) (copied from brads-entity-attribute-value-database/trunk)
-
tags/2.05/entity-attribute-value-database.php (copied) (copied from brads-entity-attribute-value-database/trunk/entity-attribute-value-database.php) (1 diff)
-
tags/2.05/includes (copied) (copied from brads-entity-attribute-value-database/trunk/includes)
-
tags/2.05/includes/admin_menu.php (modified) (5 diffs)
-
tags/2.05/readme.txt (copied) (copied from brads-entity-attribute-value-database/trunk/readme.txt) (2 diffs)
-
tags/2.05/uninstall.php (copied) (copied from brads-entity-attribute-value-database/trunk/uninstall.php)
-
trunk/entity-attribute-value-database.php (modified) (1 diff)
-
trunk/includes/admin_menu.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
brads-entity-attribute-value-database/tags/2.05/entity-attribute-value-database.php
r2504283 r2504873 4 4 * Plugin URI: http://mobilebsmith.hopto.org 5 5 * Description: Brad's Entity Attribute Value Database 6 * Version: 2.0 46 * Version: 2.05 7 7 * Author: Bradley Smith 8 8 * Author URI: http://mobilebsmith.hopto.org -
brads-entity-attribute-value-database/tags/2.05/includes/admin_menu.php
r2504283 r2504873 258 258 $wpdb->flush(); 259 259 } else if (sanitize_text_field($_POST['eav_submit']) == 'Delete Field') { 260 $table= 'eav_attrib';260 $table= $wpdb->base_prefix . 'eav_attrib'; 261 261 $id = sanitize_text_field($_POST['entity_attrib']); 262 262 $wpdb->delete( $table, array( 'entity_attrib' => $id ) ); … … 470 470 // okay this finds if we are adding a field via submit/post 471 471 if (isset($_POST['fldname']) && (strlen(sanitize_text_field($_POST['fldname'])) > 0)){ 472 $sql1= 'select max(entity_order) as maxnu from " . $wpdb->base_prefix . "eav_layout where entity = '. sanitize_text_field($_POST['recname']);472 $sql1="select max(entity_order) as maxnu from " . $wpdb->base_prefix . "eav_layout where entity = " . sanitize_text_field($_POST['recname']); 473 473 $max = $wpdb->get_row($sql1); 474 474 if (isset($max->maxnu)) … … 524 524 $sql="select a.entity, a.entity_attrib, a.entity_order, " . 525 525 "b.entity_name, b.entity_format, b.entity_desc " . 526 "from eav_layout a,eav_attrib b where a.entity=" . $eav_recname .526 "from " . $wpdb->base_prefix . "eav_layout a, " . $wpdb->base_prefix . "eav_attrib b where a.entity=" . $eav_recname . 527 527 " and a.entity_attrib = b.entity_attrib order by a.entity_order"; 528 528 $results = $wpdb->get_results($sql); … … 555 555 $sql="select a.entity, a.entity_attrib, a.entity_order, " . 556 556 "b.entity_name, b.entity_format, b.entity_desc " . 557 "from eav_layout a,eav_attrib b where a.entity=" . $eav_ent .557 "from " . $wpdb->base_prefix . "eav_layout a, " . $wpdb->base_prefix . "eav_attrib b where a.entity=" . $eav_ent . 558 558 " and a.entity_attrib = b.entity_attrib order by a.entity_order"; 559 559 $results = $wpdb->get_results($sql); … … 576 576 577 577 $sql = "select a.entity, a.entity_attrib, a.entity_order,b.entity_name, b.entity_format, b.entity_desc 578 from eav_layout a,eav_attrib b where a.entity=" . $eav_ent .578 from " . $wpdb->base_prefix . "eav_layout a, " . $wpdb->base_prefix . "eav_attrib b where a.entity=" . $eav_ent . 579 579 " and b.entity_attrib=" . $eav_att . 580 580 " and a.entity_attrib = b.entity_attrib -
brads-entity-attribute-value-database/tags/2.05/readme.txt
r2504283 r2504873 8 8 Requires at least: 5.7 9 9 Tested up to: 5.7 10 Stable tag: 2.0 411 Version: 2.0 410 Stable tag: 2.05 11 Version: 2.05 12 12 License: GPLv2 or later 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 79 79 80 80 == Changelog == 81 = v2.05 [3/28/2021] 82 * bug fixes for missing prefix on tables 83 81 84 = v2.04 [3/26/2021] 82 85 * include directory missing - all v2.X still apply -
brads-entity-attribute-value-database/trunk/entity-attribute-value-database.php
r2504283 r2504873 4 4 * Plugin URI: http://mobilebsmith.hopto.org 5 5 * Description: Brad's Entity Attribute Value Database 6 * Version: 2.0 46 * Version: 2.05 7 7 * Author: Bradley Smith 8 8 * Author URI: http://mobilebsmith.hopto.org -
brads-entity-attribute-value-database/trunk/includes/admin_menu.php
r2504283 r2504873 258 258 $wpdb->flush(); 259 259 } else if (sanitize_text_field($_POST['eav_submit']) == 'Delete Field') { 260 $table= 'eav_attrib';260 $table= $wpdb->base_prefix . 'eav_attrib'; 261 261 $id = sanitize_text_field($_POST['entity_attrib']); 262 262 $wpdb->delete( $table, array( 'entity_attrib' => $id ) ); … … 470 470 // okay this finds if we are adding a field via submit/post 471 471 if (isset($_POST['fldname']) && (strlen(sanitize_text_field($_POST['fldname'])) > 0)){ 472 $sql1= 'select max(entity_order) as maxnu from " . $wpdb->base_prefix . "eav_layout where entity = '. sanitize_text_field($_POST['recname']);472 $sql1="select max(entity_order) as maxnu from " . $wpdb->base_prefix . "eav_layout where entity = " . sanitize_text_field($_POST['recname']); 473 473 $max = $wpdb->get_row($sql1); 474 474 if (isset($max->maxnu)) … … 524 524 $sql="select a.entity, a.entity_attrib, a.entity_order, " . 525 525 "b.entity_name, b.entity_format, b.entity_desc " . 526 "from eav_layout a,eav_attrib b where a.entity=" . $eav_recname .526 "from " . $wpdb->base_prefix . "eav_layout a, " . $wpdb->base_prefix . "eav_attrib b where a.entity=" . $eav_recname . 527 527 " and a.entity_attrib = b.entity_attrib order by a.entity_order"; 528 528 $results = $wpdb->get_results($sql); … … 555 555 $sql="select a.entity, a.entity_attrib, a.entity_order, " . 556 556 "b.entity_name, b.entity_format, b.entity_desc " . 557 "from eav_layout a,eav_attrib b where a.entity=" . $eav_ent .557 "from " . $wpdb->base_prefix . "eav_layout a, " . $wpdb->base_prefix . "eav_attrib b where a.entity=" . $eav_ent . 558 558 " and a.entity_attrib = b.entity_attrib order by a.entity_order"; 559 559 $results = $wpdb->get_results($sql); … … 576 576 577 577 $sql = "select a.entity, a.entity_attrib, a.entity_order,b.entity_name, b.entity_format, b.entity_desc 578 from eav_layout a,eav_attrib b where a.entity=" . $eav_ent .578 from " . $wpdb->base_prefix . "eav_layout a, " . $wpdb->base_prefix . "eav_attrib b where a.entity=" . $eav_ent . 579 579 " and b.entity_attrib=" . $eav_att . 580 580 " and a.entity_attrib = b.entity_attrib -
brads-entity-attribute-value-database/trunk/readme.txt
r2504283 r2504873 8 8 Requires at least: 5.7 9 9 Tested up to: 5.7 10 Stable tag: 2.0 411 Version: 2.0 410 Stable tag: 2.05 11 Version: 2.05 12 12 License: GPLv2 or later 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 79 79 80 80 == Changelog == 81 = v2.05 [3/28/2021] 82 * bug fixes for missing prefix on tables 83 81 84 = v2.04 [3/26/2021] 82 85 * include directory missing - all v2.X still apply
Note: See TracChangeset
for help on using the changeset viewer.