Skip to content

Commit

Permalink
chore: fix comment formating
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed Apr 2, 2023
1 parent 10265e7 commit ee5e552
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion includes/class-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public static function install() {
if ( $is_multisite ) {
// Get all blogs in the network and uninstall the plugin on each one.
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
// Loop over the individual sites and create tables for each.

// Loop over the individual sites and create tables for each.
foreach ( $blog_ids as $blog_id ) {
switch_to_blog( $blog_id );

Expand Down
3 changes: 2 additions & 1 deletion includes/class-uninstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* @package WP_Notifications
*/
class Uninstaller {

/**
* Uninstall the plugin and reinstall.
*
Expand All @@ -27,7 +28,7 @@ public static function full_reset() {
/**
* Uninstall the WP Notifications plugin.
*
* Delete the plugin's database tables and options
* Delete the plugin's database tables and options.
*
* @return void
*/
Expand Down
13 changes: 8 additions & 5 deletions wp-feature-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use WP\Notifications\Activator;
use WP\Notifications\Uninstaller;


define( 'WP_NOTIFICATIONS_LOG_PREFIX', 'WP_NOTIFICATIONS: ' );

if ( ! defined( 'WP_NOTIFICATION_CENTER_PLUGIN_VERSION' ) ) {
Expand Down Expand Up @@ -78,9 +77,11 @@
new REST\Notification_Controller();

/**
* Activation hook function of the Notification plugin.
* Activation hook function of the WP Notification plugin.
*
* @return void
*
* @since 0.1.0
* @package WP_Notifications
*/
function wp_notifications_activation_hook() {
require_once WP_NOTIFICATION_CENTER_PLUGIN_DIR . '/includes/class-activator.php';
Expand All @@ -90,9 +91,11 @@ function wp_notifications_activation_hook() {
register_activation_hook( __FILE__, 'wp_notifications_activation_hook' );

/**
* Uninstall hook function of the Notification plugin.
* Uninstall hook function of the WP Notification plugin.
*
* @return void
*
* @since 0.1.0
* @package WP_Notifications
*/
function wp_notifications_uninstall_hook() {
require_once WP_NOTIFICATION_CENTER_PLUGIN_DIR . '/includes/class-uninstaller.php';
Expand Down

0 comments on commit ee5e552

Please sign in to comment.