Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#50114 closed defect (bug) (invalid)

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

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

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
7 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → 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@…
7 years ago

thanks for the update

Note: See TracTickets for help on using tickets.