#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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9.5 |
| Component: | Networks and Sites | Version: | 4.9 |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: | multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [41579].
%scan be changed to a numbered placeholder.