[buddypress-trac] [BuddyPress Trac] #5919: Xprofile field meta values not deleted with field

buddypress-trac noreply at wordpress.org
Sat Oct 4 06:48:18 UTC 2014

#5919: Xprofile field meta values not deleted with field
 Reporter:  tometzky      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  2.2
Component:  XProfile      |     Version:  2.1
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |

Comment (by tometzky):

 Replying to [comment:5 boonebgorges]:

 > * Uses a regular expression to locate all quoted content. This will
 include all content (meta_key, meta_value) provided by the user.

 I'd rather use a function that would find a substring and replace only
 this one substring. I may assume that "WHERE ", that we need to replace,
 would be the first in "SELECT", and the last in "UPDATE ".

 This regular expression is too [http://en.wikipedia.org/wiki/Write-
 only_language write only] for me. And it assumes that there's only one
 quoted text, which I'm not convinced that it is.

 > * Replaces each instance with a placeholder.

 I'd rather use some random placeholder like `uniqid('__QUOTE__')`.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5919#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list