Make WordPress Core


Ignore:
Timestamp:
03/21/2020 03:42:57 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Return a more appropriate HTTP response status code (409 Conflict) if the wp-config.php file already exists.

Props linyows, ocean90.
Fixes #42466.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/setup-config.php

    r47344 r47478  
    6464                        '<code>wp-config.php</code>',
    6565                        'install.php'
    66                 ) . '</p>'
     66                ) . '</p>',
     67                409
    6768        );
    6869}
    … …  
    7677                        '<code>wp-config.php</code>',
    7778                        'install.php'
    78                 ) . '</p>'
     79                ) . '</p>',
     80                409
    7981        );
    8082}
Note: See TracChangeset for help on using the changeset viewer.