Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#882 closed defect (bug) (fixed)

manage/pages shows pages from user with higher user level

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


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 19 years ago.
manage-pages.patch (1.4 KB) - added by adsworth 19 years ago.

Download all attachments as: .zip

Change History (7)

#1 @adsworth
19 years ago

  • Patch set to No

#2 @ryan
19 years ago

  • Patch changed from No to Yes

#3 @mdawaffe
19 years ago

Easier to change edit-pages.php
Patch submitted

#4 @adsworth
19 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.



#5 @mdawaffe
19 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

#6 @filosofo
18 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.