Skip to content

Commit 208889b

Browse files
committed
Docs: Fix note about not using new functions in update-core.php and class-core-upgrader.php.
Props costdev. See #62165. git-svn-id: https://develop.svn.wordpress.org/trunk@59182 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c847d7b commit 208889b

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/wp-admin/includes/class-core-upgrader.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
* It allows for WordPress to upgrade itself in combination with
1414
* the wp-admin/includes/update-core.php file.
1515
*
16-
* Note: newly introduced functions and methods cannot be used here.
17-
* All functions must be present in both the previous version being upgraded from,
18-
* and the later version that's being installed (e.g. when rolling back Core)
19-
* as this file is used in both.
16+
* Note: Newly introduced functions and methods cannot be used here.
17+
* All functions must be present in the previous version being upgraded from
18+
* as this file is used there too.
2019
*
2120
* @since 2.8.0
2221
* @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader.php.

src/wp-admin/includes/update-core.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
/**
33
* WordPress core upgrade functionality.
44
*
5-
* Note: newly introduced functions and methods cannot be used here.
6-
* All functions must be present in both the previous version being upgraded from,
7-
* and the later version that's being installed (e.g. when rolling back Core)
8-
* as this file is used in both.
5+
* Note: Newly introduced functions and methods cannot be used here.
6+
* All functions must be present in the previous version being upgraded from
7+
* as this file is used there too.
98
*
109
* @package WordPress
1110
* @subpackage Administration

0 commit comments

Comments
 (0)