Commit 6aca6fc7 authored by Mike Schroder's avatar Mike Schroder
Browse files

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: https://core.svn.wordpress.org/trunk@48394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 5ec52d8b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 );
+1 −1
Original line number Diff line number Diff line
@@ -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.