Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#38151 closed defect (bug) (fixed)

die() instead of wp_die() ?

Reported by: imath's profile imath Owned by: jeremyfelt's profile jeremyfelt
Milestone: 4.7 Priority: normal
Severity: normal Version: 3.1
Component: Users Keywords: has-patch commit
Focuses: administration, multisite Cc:

Description

After searching in all files, it's the only place die() is used instead of wp_die(), so maybe it should be changed.

Attachments (1)

38151.patch (537 bytes) - added by imath 8 years ago.

Download all attachments as: .zip

Change History (8)

@imath
8 years ago

#1 @imath
8 years ago

  • Keywords has-patch added

#2 @ocean90
8 years ago

  • Component changed from Administration to Users
  • Milestone changed from Awaiting Review to 4.7
  • Version changed from trunk to 3.1

Introduced in [16560].

#3 @johnjamesjacoby
8 years ago

  • Keywords commit added
  • Owner set to jeremyfelt
  • Status changed from new to assigned

Patch looks good to me.

Also, 6 years… 👍

#4 @jeremyfelt
8 years ago

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

Commit [38656] missed the ticket because I missed the #:

Multisite: Replace die() with wp_die() in site users list table.

wp_die() is available and appropriate when checking capabilities while processing list table actions.

Props imath.

#5 @ramiy
8 years ago

@jeremyfelt Please review ticket #34521, and update the text to: Sorry, you are not allowed to remove users.

#6 @jeremyfelt
8 years ago

Thanks @ramiy, can you create a new ticket for that? It looks like there are a couple instances in site-users.php that could be changed.

#7 @ramiy
8 years ago

@jeremyfelt New ticket at #38178.

Note: See TracTickets for help on using tickets.