Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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:

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

thanks for the update

Note: See TracTickets for help on using tickets.