diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/includes/class-wp-importer.php --- a/wp/wp-admin/includes/class-wp-importer.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/includes/class-wp-importer.php Fri Sep 05 18:40:08 2025 +0200 @@ -2,6 +2,7 @@ /** * WP_Importer base class */ +#[AllowDynamicProperties] class WP_Importer { /** * Class Constructor @@ -9,7 +10,7 @@ public function __construct() {} /** - * Returns array with imported permalinks from WordPress database + * Returns array with imported permalinks from WordPress database. * * @global wpdb $wpdb WordPress database abstraction object. * @@ -40,13 +41,13 @@ $hashtable[ $r->meta_value ] = (int) $r->post_id; } } - } while ( count( $results ) == $limit ); + } while ( count( $results ) === $limit ); return $hashtable; } /** - * Return count of imported permalinks from WordPress database + * Returns count of imported permalinks from WordPress database. * * @global wpdb $wpdb WordPress database abstraction object. * @@ -73,7 +74,7 @@ } /** - * Set array with imported comments from WordPress database + * Sets array with imported comments from WordPress database. * * @global wpdb $wpdb WordPress database abstraction object. * @@ -104,12 +105,12 @@ $source_comment_id = (int) $source_comment_id; // Check if this comment came from this blog. - if ( $blog_id == $comment_agent_blog_id ) { + if ( (int) $blog_id === (int) $comment_agent_blog_id ) { $hashtable[ $source_comment_id ] = (int) $r->comment_ID; } } } - } while ( count( $results ) == $limit ); + } while ( count( $results ) === $limit ); return $hashtable; } @@ -175,7 +176,7 @@ } /** - * Sort by strlen, longest string first + * Sorts by strlen, longest string first. * * @param string $a * @param string $b @@ -186,7 +187,7 @@ } /** - * GET URL + * Gets URL. * * @param string $url * @param string $username @@ -213,7 +214,7 @@ } /** - * Bump up the request timeout for http requests + * Bumps up the request timeout for http requests. * * @param int $val * @return int @@ -223,7 +224,7 @@ } /** - * Check if user has exceeded disk quota + * Checks if user has exceeded disk quota. * * @return bool */ @@ -238,7 +239,7 @@ } /** - * Replace newlines, tabs, and multiple spaces with a single space. + * Replaces newlines, tabs, and multiple spaces with a single space. * * @param string $text * @return string