Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions features/plugin-activate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Feature: Activate WordPress plugins
function ( $all_plugins ) {
unset( $all_plugins['site-secrets/site-secrets.php'] );
return $all_plugins;
}
}
);
"""

Expand All @@ -73,8 +73,8 @@ Feature: Activate WordPress plugins
<?php
// Plugin Name: Example Plugin
function example_plugin_activate( bool $network_wide = false ) {
// Doesn't matter what we do here, we just need a function definition to check the type
return;
// Doesn't matter what we do here, we just need a function definition to check the type
return;
}
register_activation_hook( __FILE__, 'example_plugin_activate' );
"""
Expand Down Expand Up @@ -191,8 +191,8 @@ Feature: Activate WordPress plugins
register_activation_hook(
__FILE__,
function () {
@file_put_contents( WP_CONTENT_DIR . '/activation-test.txt', 'Activation hook was run' );
}
@file_put_contents( WP_CONTENT_DIR . '/activation-test.txt', 'Activation hook was run' );
}
);
"""

Expand Down
2 changes: 1 addition & 1 deletion features/plugin-deactivate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Feature: Deactivate WordPress plugins
function ( $all_plugins ) {
unset( $all_plugins['akismet/akismet.php'] );
return $all_plugins;
}
}
);
"""

Expand Down
2 changes: 1 addition & 1 deletion features/plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ Feature: Manage WordPress plugins
function ( $all_plugins ) {
unset( $all_plugins['site-secrets/site-secrets.php'] );
return $all_plugins;
}
}
);
"""

Expand Down