Skip to content

Commit 468010a

Browse files
Copilotswissspidy
andcommitted
Address code review feedback - improve documentation and add error suppression in tests
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 22f703d commit 468010a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

features/plugin-activate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Feature: Activate WordPress plugins
189189
*/
190190
191191
register_activation_hook( __FILE__, function() {
192-
file_put_contents( WP_CONTENT_DIR . '/activation-test.txt', 'Activation hook was run' );
192+
@file_put_contents( WP_CONTENT_DIR . '/activation-test.txt', 'Activation hook was run' );
193193
});
194194
"""
195195

features/plugin-install.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Feature: Install WordPress plugins
319319
*/
320320
321321
register_activation_hook( __FILE__, function() {
322-
file_put_contents( WP_CONTENT_DIR . '/install-activation-test.txt', 'Activation hook was run' );
322+
@file_put_contents( WP_CONTENT_DIR . '/install-activation-test.txt', 'Activation hook was run' );
323323
});
324324
"""
325325

src/Plugin_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ protected function get_all_items() {
322322
* : If set, the plugin will be activated for the entire multisite network.
323323
*
324324
* [--force]
325-
* : If set, the plugin activation hooks will be run even if the plugin is already active.
325+
* : If set, deactivates and reactivates the plugin to re-run activation hooks, even if already active.
326326
*
327327
* ## EXAMPLES
328328
*

0 commit comments

Comments
 (0)