Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#50114 closed defect (bug) (invalid)

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

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


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
4 years 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@…
4 years ago

thanks for the update

Note: See TracTickets for help on using tickets.