Opened 12 years ago
Closed 11 years ago
#22429 closed enhancement (fixed)
Usage of @$_GET/@$_POST
Reported by: | juliobox | Owned by: | dd32 |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Performance | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Hello
I think we should use isset() in place of @ in front of 6 $_GET and $_POST in the following files:
/wp-admin/includes/ajax-actions.php
/wp-admin/includes/media.php
/wp-includes/theme.php
Example in ajax-actions.php:
<?php selected( @$_GET['m'], 0 ); ?>
becomes
<?php selected( isset( $_GET['m'] ) ? $_GET['m'] : 0, 0 ); ?>
@ is also bad at perf.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Related: #22325