Changeset 44569
- Timestamp:
- 01/12/2019 03:19:23 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/inc/widgets.php
r43571 r44569 69 69 70 70 ob_start(); 71 extract( $args, EXTR_SKIP );72 71 73 72 /** This filter is documented in wp-includes/default-widgets.php */ -
trunk/src/wp-includes/template.php
r42678 r44569 685 685 686 686 if ( is_array( $wp_query->query_vars ) ) { 687 /* 688 * This use of extract() cannot be removed. There are many possible ways that 689 * templates could depend on variables that it creates existing, and no way to 690 * detect and deprecate it. 691 * 692 * Passing the EXTR_SKIP flag is the safest option, ensuring globals and 693 * function variables cannot be overwritten. 694 */ 695 // phpcs:ignore WordPress.PHP.DontExtract.extract_extract 687 696 extract( $wp_query->query_vars, EXTR_SKIP ); 688 697 } -
trunk/tests/phpunit/tests/post/output.php
r43571 r44569 30 30 31 31 function _shortcode_paragraph( $atts, $content ) { 32 extract( 33 shortcode_atts( 34 array( 35 'class' => 'graf', 36 ), 37 $atts 38 ) 32 $processed_atts = shortcode_atts( 33 array( 34 'class' => 'graf', 35 ), 36 $atts 39 37 ); 40 return "<p class='$class'>$content</p>\n"; 38 39 return "<p class='{$processed_atts['class']}'>$content</p>\n"; 41 40 } 42 41 -
trunk/tests/phpunit/tests/shortcode.php
r44136 r44569 44 44 // [bartag foo="bar"] 45 45 function _shortcode_bartag( $atts ) { 46 extract( 47 shortcode_atts( 48 array( 49 'foo' => 'no foo', 50 'baz' => 'default baz', 51 ), 52 $atts, 53 'bartag' 54 ) 55 ); 56 57 return "foo = {$foo}"; 46 $processed_atts = shortcode_atts( 47 array( 48 'foo' => 'no foo', 49 'baz' => 'default baz', 50 ), 51 $atts, 52 'bartag' 53 ); 54 55 return "foo = {$processed_atts['foo']}"; 58 56 } 59 57
Note: See TracChangeset
for help on using the changeset viewer.