Use EXTR_SKIP when extracting. see #4468

git-svn-id: https://develop.svn.wordpress.org/trunk@5708 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-06-14 22:45:40 +00:00
parent 0f0788d24d
commit 09da00f7fe
15 changed files with 33 additions and 33 deletions

View File

@@ -185,7 +185,7 @@ function get_posts($args) {
);
$r = wp_parse_args( $args, $defaults );
extract( $r );
extract( $r, EXTR_SKIP );
$numberposts = (int) $numberposts;
$offset = (int) $offset;
@@ -495,7 +495,7 @@ function wp_insert_post($postarr = array()) {
$postarr = get_object_vars($postarr);
// export array as variables
extract($postarr);
extract($postarr, EXTR_SKIP);
// Are we updating or creating?
$update = false;
@@ -863,7 +863,7 @@ function trackback_url_list($tb_list, $post_id) {
$postdata = wp_get_single_post($post_id, ARRAY_A);
// import postdata as variables
extract($postdata);
extract($postdata, EXTR_SKIP);
// form an excerpt
$excerpt = strip_tags($post_excerpt?$post_excerpt:$post_content);
@@ -1050,7 +1050,7 @@ function &get_pages($args = '') {
);
$r = wp_parse_args( $args, $defaults );
extract( $r );
extract( $r, EXTR_SKIP );
$key = md5( serialize( $r ) );
if ( $cache = wp_cache_get( 'get_pages', 'page' ) )
@@ -1204,7 +1204,7 @@ function wp_insert_attachment($object, $file = false, $post_parent = 0) {
$object = get_object_vars($object);
// Export array as variables
extract($object);
extract($object, EXTR_SKIP);
// Get the basics.
$post_content = apply_filters('content_save_pre', $post_content);