From 97f222db9513dc78633693a95f55615389cb872c Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Tue, 20 Feb 2024 13:51:55 +0100 Subject: [PATCH] doc(migration.md) fix indentation --- docs/migration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/migration.md b/docs/migration.md index 6f9b5ed4c..58e273bd2 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -63,25 +63,25 @@ back-compatibility purposes. class MyTestUsingDeprecatedCode extends WPTestCase { public function test_deprecatd_function() { - // add_filter( 'deprecated_function_trigger_error', '__return_false' ); + // add_filter( 'deprecated_function_trigger_error', '__return_false' ); $this->setExpectedDeprecated( 'my_deprecated_function' ); my_deprecated_function(); } public function test_deprecated_class(){ - // add_filter( 'deprecated_class_trigger_error', '__return_false' ); + // add_filter( 'deprecated_class_trigger_error', '__return_false' ); $this->setExpectedDeprecated( 'MyDeprecatedClass' ); new MyDeprecatedClass(); } public function test_deprecated_file(){ - // add_filter( 'deprecated_file_trigger_error', '__return_false' ); + // add_filter( 'deprecated_file_trigger_error', '__return_false' ); $this->setExpectedDeprecated( '/path/to/my_deprecated_file.php' ); require_once 'my_deprecated_file.php'; } public function test_deprecated_hook(){ - // add_filter( 'deprecated_hook_trigger_error', '__return_false' ); + // add_filter( 'deprecated_hook_trigger_error', '__return_false' ); $this->setExpectedDeprecated( 'my_deprecated_hook' ); do_action( 'my_deprecated_hook' ); }