From 997455c982c9511c104b8a58d16a9de0261c1a87 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Sep 2024 22:12:15 +0000 Subject: [PATCH] Networks and Sites: Set `WP_Network` properties via setters upon creation. This ensures that `WP_Network::$id` is stored internally as `int`, to match the documented type. Follow-up to [37870]. Props ironprogrammer, scottculverhouse, spacedmonkey, SergeyBiryukov. See #62035. Built from https://develop.svn.wordpress.org/trunk@59020 git-svn-id: http://core.svn.wordpress.org/trunk@58416 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-network.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-network.php b/wp-includes/class-wp-network.php index d835765c6b..5bb745d796 100644 --- a/wp-includes/class-wp-network.php +++ b/wp-includes/class-wp-network.php @@ -131,7 +131,7 @@ class WP_Network { */ public function __construct( $network ) { foreach ( get_object_vars( $network ) as $key => $value ) { - $this->$key = $value; + $this->__set( $key, $value ); } $this->_set_site_name(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b2847b50b..4e9f3aea4b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59019'; +$wp_version = '6.7-alpha-59020'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.