Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25431 closed enhancement (duplicate)

like_escape in meta_query

Reported by: lucas_lobosque's profile Lucas_Lobosque Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6.1
Component: Query Keywords:
Focuses: Cc:

Description

Array (
  [post_type] => gallery_post
  [posts_per_page] => 4  
  [paged] => 1
  [meta_query] => Array (
    [0] => Array (
      [key] => author
      [value] => B%
      [compare] => LIKE
    )
  )
)

Right now, like_escape is used in the meta_query value, but what if I want values starting with letter B, like in the example above?
Why not let the user explicitly use like_escape or add a flag or something to keep backwards compatibility?

Change History (1)

#1 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.