#16806 closed defect (bug) (fixed)
Duplicate strings in XML-RPC
Reported by: | pavelevap | Owned by: | |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
Description
In class-wp-xmlrpc-server.php file there are 2 almost same strings:
"You are not allowed to upload files to this site."
"You are not allowed to upload files on this site."
Maybe they should be the same and we can save one string?
Attachments (1)
Change History (8)
#2
@
14 years ago
Sorry, I wanted to create patch but was not sure which variant is right.
Lines 1525 and 2969.
#3
@
14 years ago
Now that I've looked through the file again, there are a lot of duplicate strings ... not just those two. What's the value of reducing the number of duplicates? What's the damage in leaving them?
#4
@
14 years ago
No damage, I guess.
But easier work for translators and smaller .mo file (and so less memory used).
#5
@
14 years ago
- Keywords has-patch added
- Version set to 3.1
I misread your original ticket :-( I agree with you 100% and have posted a patch. Since both sections are checking the same permission, they should output the same error message:
You are not allowed to upload files to this site.
I'd agree. Any chance you can save us a lookup and reference line numbers?