Docs: Correct wp_opcache_invalidate_file filter docs.

Changes incorrectly named `$filename` variable to `$filepath` and adjusts wording to align with PHP docs.

See #36455.
Built from https://develop.svn.wordpress.org/trunk@48632


git-svn-id: http://core.svn.wordpress.org/trunk@48394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mike Schroder 2020-07-27 09:08:05 +00:00
parent 4c0a764adc
commit 9ec7f2febd
2 changed files with 3 additions and 3 deletions

View File

@ -2365,8 +2365,8 @@ function wp_opcache_invalidate( $filepath, $force = false ) {
*
* @since 5.5.0
*
* @param bool $will_invalidate Whether WordPress will invalidate `$filename`. Default true.
* @param string $filename The PHP filename to invalidate.
* @param bool $will_invalidate Whether WordPress will invalidate `$filepath`. Default true.
* @param string $filepath The path to the PHP file to invalidate.
*/
if ( apply_filters( 'wp_opcache_invalidate_file', true, $filepath ) ) {
return opcache_invalidate( $filepath, $force );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta3-48631';
$wp_version = '5.5-beta3-48632';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.