#43568 closed defect (bug) (fixed)
E_WARNING: sprintf(): Too few arguments. [ wp-activate.php wp-activate.php (113) ]
Reported by: | conner_bw | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.9.5 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Networks and Sites | Keywords: | good-first-bug has-patch |
Focuses: | multisite | Cc: |
Description
We keep seeing E_WARNING: sprintf(): Too few arguments. [ wp-activate.php wp-activate.php (113) ] In our New Relic logs.
The problem is this line:
<?php sprintf( '<a href="http://%s">%s</a>', $signup->domain )
Count the number of %s. Count the args. Should probably be:
<?php sprintf( '<a href="http://%s">%s</a>', $signup->domain, $signup->domain )
Thanks.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Introduced in [41579].
%s
can be changed to a numbered placeholder.