|
@@ 467-469 (lines=3) @@
|
| 464 |
|
|
| 465 |
|
$value = $args['default']; |
| 466 |
|
if ( $args['type'] == 'get' ) { |
| 467 |
|
if ( $_GET && isset( $_GET[ $args['param'] ] ) ) { |
| 468 |
|
$value = wp_unslash( $_GET[ $args['param'] ] ); |
| 469 |
|
} |
| 470 |
|
} elseif ( $args['type'] == 'post' ) { |
| 471 |
|
if ( isset( $_POST[ $args['param'] ] ) ) { |
| 472 |
|
$value = maybe_unserialize( wp_unslash( $_POST[ $args['param'] ] ) ); |
|
@@ 471-473 (lines=3) @@
|
| 468 |
|
$value = wp_unslash( $_GET[ $args['param'] ] ); |
| 469 |
|
} |
| 470 |
|
} elseif ( $args['type'] == 'post' ) { |
| 471 |
|
if ( isset( $_POST[ $args['param'] ] ) ) { |
| 472 |
|
$value = maybe_unserialize( wp_unslash( $_POST[ $args['param'] ] ) ); |
| 473 |
|
} |
| 474 |
|
} else { |
| 475 |
|
if ( isset( $_REQUEST[ $args['param'] ] ) ) { |
| 476 |
|
$value = wp_unslash( $_REQUEST[ $args['param'] ] ); |
|
@@ 474-478 (lines=5) @@
|
| 471 |
|
if ( isset( $_POST[ $args['param'] ] ) ) { |
| 472 |
|
$value = maybe_unserialize( wp_unslash( $_POST[ $args['param'] ] ) ); |
| 473 |
|
} |
| 474 |
|
} else { |
| 475 |
|
if ( isset( $_REQUEST[ $args['param'] ] ) ) { |
| 476 |
|
$value = wp_unslash( $_REQUEST[ $args['param'] ] ); |
| 477 |
|
} |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
self::sanitize_value( $args['sanitize'], $value ); |
| 481 |
|
|