Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24706 closed defect (bug) (fixed)

Use $wpdb->prefix to verify query in tests/meta/query.php (WP_Meta_Query test)

Reported by: codebykat's profile codebykat Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: Unit Tests Keywords: has-patch
Focuses: Cc:


wp-tests-config-sample.php sets the table_prefix to "wptests_", which was causing tests/meta/query.php to fail on a test where it assumed the prefix was "wp_".

Attachments (1)

24706-use-table-prefix-in-meta-query-test.diff (563 bytes) - added by codebykat 11 years ago.
Use $wpdb->prefix instead of hardcoding "wp_postmeta"

Download all attachments as: .zip

Change History (3)

11 years ago

Use $wpdb->prefix instead of hardcoding "wp_postmeta"

#1 @SergeyBiryukov
11 years ago

  • Milestone changed from Awaiting Review to 3.6

#2 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 1304/tests:

Use correct table prefix. props codebykat. fixes #24706.

Note: See TracTickets for help on using tickets.