Opened 3 years ago

Last modified 10 months ago

#14273 assigned enhancement

maybe_create_table cleanup

Reported by: dragoonis Owned by: pento
Priority: normal Milestone: Future Release
Component: Database Version: 3.0
Severity: normal Keywords: has-patch
Cc:

Description

Cleaned up maybe_create_table() - no more iterations.
Cheers. Dragoonis aka Dr4g(irc).

Attachments (3)

install-helper.php (6.1 KB) - added by dragoonis 3 years ago.
maybe_create_table.diff (968 bytes) - added by dragoonis 3 years ago.
Sanitisation of table name
maybe_create_table.2.diff (1.2 KB) - added by pento 10 months ago.

Download all attachments as: .zip

Change History (8)

Ignore the .php attachment.

Sanitisation of table name

  • Keywords has-patch added

You should use $wpdb->prepare() instead of $wpdb->escape()

  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to Future Release
  • Keywords needs-refresh removed
  • Owner set to pento
  • Status changed from new to assigned

New patch cleans up the code, updates to use prepare() instead of escape().

Note: See TracTickets for help on using tickets.