From 838f9884d74da765a2979d747387f4e53a36691f Mon Sep 17 00:00:00 2001 From: Mike Schroder Date: Mon, 27 Jul 2020 09:06:58 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@48632 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index af7def5aae..f9f5be10ce 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -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 );