Skip to content

Commit 9fad9de

Browse files
committed
Prevent dynamic property creation
1 parent 62735e4 commit 9fad9de

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/WP_Export_WXR_Formatter.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
* Responsible for formatting the data in WP_Export_Query to WXR
1313
*/
1414
class WP_Export_WXR_Formatter {
15+
private $export;
16+
private $wxr_version;
17+
1518
public function __construct( $export ) {
1619
$this->export = $export;
1720
$this->wxr_version = WXR_VERSION;

‎src/WP_Map_Iterator.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

33
class WP_Map_Iterator extends IteratorIterator {
4+
private $callback;
5+
46
public function __construct( $iterator, $callback ) {
57
$this->callback = $callback;
68
parent::__construct( $iterator );

‎src/WP_Post_IDs_Iterator.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ class WP_Post_IDs_Iterator implements Iterator {
44
private $limit = 100;
55
private $post_ids;
66
private $ids_left;
7-
private $results = array();
7+
private $results = array();
8+
private $global_index = 0;
9+
private $index_in_results = 0;
10+
private $db;
811

912
public function __construct( $post_ids, $limit = null ) {
1013
$this->db = $GLOBALS['wpdb'];

0 commit comments

Comments
 (0)