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
This commit is contained in:
parent
581deff371
commit
838f9884d7
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user