#16986 closed defect (bug) (invalid)
wp.getOptions do'nt have a capability check
| Reported by: | nprasath002 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | XML-RPC | Version: | 3.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
This won't be a big problem with default options.
If the blog options are extended via a plugin this would be a problem.
Better to have a check,
Attachments (2)
Change History (6)
#2
@
16 years ago
- Resolution → invalid
- Status new → closed
Actually, after putting some thought into this, we shouldn't restrict options checking with a capability check. That would disallow remote applications from getting any options values unless the user had permission to manage options.
Think about how many times a site calls get_option() for unauthenticated users or for authors without options management privileges. wp.getOptions serves a similar purpose for remote apps; a capability check here isn't really appropriate.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Considering the default behavior of the options page in WordPress is to check the same permission, I agree.
Updating patch to reference the patched file.