Changeset 49108 for trunk/src/wp-admin/includes/class-wp-importer.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-importer.php
r47855 r49108 38 38 foreach ( $results as $r ) { 39 39 // Set permalinks into array. 40 $hashtable[ $r->meta_value ] = intval( $r->post_id );40 $hashtable[ $r->meta_value ] = (int) $r->post_id; 41 41 } 42 42 } … … 70 70 71 71 if ( ! empty( $result ) ) { 72 $count = intval( $result[0]->cnt );72 $count = (int) $result[0]->cnt; 73 73 } 74 74 … … 107 107 // Explode comment_agent key. 108 108 list ( $ca_bid, $source_comment_id ) = explode( '-', $r->comment_agent ); 109 $source_comment_id = intval( $source_comment_id );109 $source_comment_id = (int) $source_comment_id; 110 110 111 111 // Check if this comment came from this blog. 112 112 if ( $bid == $ca_bid ) { 113 $hashtable[ $source_comment_id ] = intval( $r->comment_ID );113 $hashtable[ $source_comment_id ] = (int) $r->comment_ID; 114 114 } 115 115 }
Note: See TracChangeset
for help on using the changeset viewer.