Skip to content

Commit

Permalink
Media: Use correct option name for attachment pages in upgrade_640().
Browse files Browse the repository at this point in the history
Follow-up to [56657].

See #57913.

git-svn-id: https://develop.svn.wordpress.org/trunk@56658 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 22, 2023
1 parent 15e3700 commit e413569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit e413569

Please sign in to comment.