Skip to content

Commit e413569

Browse files
Media: Use correct option name for attachment pages in upgrade_640().
Follow-up to [56657]. See #57913. git-svn-id: https://develop.svn.wordpress.org/trunk@56658 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 15e3700 commit e413569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ function upgrade_640() {
23392339

23402340
if ( $wp_current_db_version < 56657 ) {
23412341
// Enable attachment pages.
2342-
update_option( 'wp_media_use_attachment_pages', 1 );
2342+
update_option( 'wp_attachment_pages_enabled', 1 );
23432343
}
23442344
}
23452345

0 commit comments

Comments
 (0)