From 2d7e5afa3e2516d3f457160f30a4244c1899b536 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 22 Sep 2023 01:18:18 +0000 Subject: [PATCH] Media: Use correct option name for attachment pages in `upgrade_640()`. Follow-up to [56657]. See #57913. Built from https://develop.svn.wordpress.org/trunk@56658 git-svn-id: http://core.svn.wordpress.org/trunk@56170 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index f4aac0e764..fc1ab3792f 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -2339,7 +2339,7 @@ function upgrade_640() { if ( $wp_current_db_version < 56657 ) { // Enable attachment pages. - update_option( 'wp_media_use_attachment_pages', 1 ); + update_option( 'wp_attachment_pages_enabled', 1 ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2920ba7159..21000286f0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56657'; +$wp_version = '6.4-alpha-56658'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.