WordPress.org

Make WordPress Core

Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#50114 closed defect (bug) (invalid)

wp-config-sample.php missing () in last line of code

Reported by: jajosolo@… Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

In wordpress version 5.4.1, in the wp-config-sample.php file:

Last 2 lines are:
/ Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';

it SHOULD be:
/ Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

the difference is the () in the last line.

Change History (2)

#1 @SergeyBiryukov
19 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the report.

The parentheses were intentionally removed in [47198/trunk/wp-config-sample.php].

require and include are language constructs, not function calls, so the parentheses are unnecessary.

See also [47207] for more details.

#2 @jajosolo@…
19 months ago

thanks for the update

Note: See TracTickets for help on using tickets.