[buddypress-trac] [BuddyPress] #2983: sprintf content needs to be in single quotes
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Dec 30 15:49:51 UTC 2010
#2983: sprintf content needs to be in single quotes
--------------------------+-----------------
Reporter: boonebgorges | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.3
Component: Core | Version:
Keywords: |
--------------------------+-----------------
When you use the swappable characters notation for sprintf (%1$s vs %s),
the pattern needs to be enclosed in single quotes, not double quotes.
Otherwise PHP will attempt to read the $s as a variable, resulting in a
PHP warning (because $s has not been defined) and, more importantly, a
failed replacement.
--
Ticket URL: <http://trac.buddypress.org/ticket/2983>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list