mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user