WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 9 years ago

#882 closed defect (bug) (fixed)

manage/pages shows pages from user with higher user level

Reported by: adsworth Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: Administration Keywords:
Focuses: Cc:

Description

As soon as a user has one static page then the pages from all users are displayed. Attached is a patch to solve the problem.

Attachments (2)

editpages.diff (354 bytes) - added by adsworth 10 years ago.
manage-pages.patch (1.4 KB) - added by adsworth 10 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 @adsworth11 years ago

  • Patch set to No

comment:2 @ryan10 years ago

  • Patch changed from No to Yes

comment:3 @mdawaffe10 years ago

Easier to change edit-pages.php
Patch submitted

comment:4 @adsworth10 years ago

Hi mdawaffe,

yes your fix is easier but doesn't fix the bug in page_rows.
The SELECT statement in there ignores the userID so one might aswell
delete the SELECT statement in there.

Regards

Adi

comment:5 @mdawaffe10 years ago

Depends on whether you ever want to use page_rows elsewhere or not (and what it's default behavior should be). If it's only to be used on Manage->Pages, then deleting the SQL query in edit-pages.php and applying your patch is probably best.

EDIT: typo.

edited on: 03-11-05 20:43

@adsworth10 years ago

comment:6 @filosofo9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

fixed at least by 2.0.3 by checking whether current_user_can('edit_pages') before adding "Edit" link

Note: See TracTickets for help on using tickets.