Plugin Directory

Changeset 3416968


Ignore:
Timestamp:
12/11/2025 05:05:44 AM (3 months ago)
Author:
liaison
Message:

1.1.0

  • Add PHPUnit test cases.
Location:
liaison-site-prober/trunk
Files:
13 added
4 edited

Legend:

Unmodified
Added
Removed
  • liaison-site-prober/trunk/README.txt

    r3408825 r3416968  
    6262== Screenshots ==
    6363
    64 1. Dashboard: Liaison Site Prober Settings panel. 
    65 2. Example view of logged activities. 
     641. Dashboard: Liaison Site Prober Settings panel. Example view of logged activities. 
    6665
    6766== Changelog ==
     67
     68= 1.1.0 =
     69* Add PHPUnit test cases.
    6870
    6971= 1.0.0 =
     
    7274== Upgrade Notice ==
    7375
     76= 1.1.0 =
     77* Add PHPUnit test cases.
     78
    7479= 1.0.0 =
    7580First stable release.
  • liaison-site-prober/trunk/includes/class-liaison-site-prober-actions.php

    r3408825 r3416968  
    3636        //add_action( 'export_wp', [ $this, 'wpsp_export_csv' ] );
    3737
     38        if ( defined('WP_RUNNING_PHPUNIT') ) {
     39            return;
     40        }
    3841        add_action( 'activated_plugin', [ $this, 'wpsp_plugin_activated' ], 10, 2 );
    3942        add_action( 'deactivated_plugin', [ $this, 'wpsp_plugin_deactivated' ], 10, 2 );
     
    204207       
    205208        $action = 'created';
     209        $term_id = $comment->comment_post_ID;
    206210        switch ( current_filter() ) {
    207211            case 'wp_insert_comment' :
  • liaison-site-prober/trunk/includes/class-liaison-site-prober-list-table.php

    r3408825 r3416968  
    2121        );
    2222
    23         $this->table_name = $wpdb->wpsp_activity;       
     23        //$this->table_name = $wpdb->wpsp_activity;       
     24        $this->table_name = $args['table_name'] ?? $wpdb->wpsp_activity;
    2425    }
    2526
     
    169170        echo '<div class="alignleft actions">';
    170171
    171         //$table = sanitize_key( $this->table_name );
    172172        $cache_key   = 'site_prober_logs_page_';
    173173        $cache_group = 'liaison-site-prober';
     
    230230                    $output[ $user->ID ] = $user->user_nicename;
    231231            }
    232 
    233             // if ( ! empty( $output ) ) {
    234             //  echo '<select name="usershow" id="hs-filter-usershow">';
    235             //  printf( '<option value="">%s</option>', __( 'All Users', 'aryo-activity-log' ) );
    236             //  foreach ( $output as $key => $value ) {
    237             //      printf( '<option value="%s"%s>%s</option>', $key, selected( $_REQUEST['usershow'], $key, false ), $value );
    238             //  }
    239             //  echo '</select>';
    240             // }
    241232
    242233            $selected_value = isset( $_REQUEST['usershow'] )
     
    271262            }
    272263
    273             // echo '<select name="typeshow" id="hs-filter-typeshow">';
    274             // printf( '<option value="">%s</option>', __( 'All Objects', 'liaison-site-prober' ) );
    275             // echo implode( '', $output );
    276             // echo '</select>';
    277264            $output = array();
    278265
     
    362349
    363350        $items_per_page = 20;       
    364         //$table = $this->table_name;
    365351       
    366352        $clear  = isset( $_POST['clearLogs'] ) ? sanitize_text_field( wp_unslash( $_POST['clearLogs'] ) ) : '';
    367353        if ( $clear ){
    368             //error_log(  'clearLogs');
    369354            check_admin_referer( 'wpsp_list_table_action', 'wpsp_nonce' );
    370355            $this->delete_all_items();
     
    412397        $results = wp_cache_get( $cache_key, $cache_group );
    413398
    414         if (  ( is_array( $results['items'] ) )
    415             && ( false !== $results['total_items'] ) 
    416         ) {
     399        if (   is_array( $results )
     400            && isset( $results['items'], $results['total_items'] )
     401            && is_array( $results['items'] ) )
     402        {
    417403            $this->items = $results['items'];
    418404            $total_items = $results['total_items'];
  • liaison-site-prober/trunk/liaison-site-prober.php

    r3408825 r3416968  
    99 * that starts the plugin.
    1010 *
    11  * @link              https://github.com/liaisontw/wp-site-prober
     11 * @link              https://github.com/liaisontw/liaison-site-prober_svn_git
    1212 * @since             1.0.0
    1313 * @package           liaison-site-prober
     
    1515 * @wordpress-plugin
    1616 * Plugin Name:       Liaison Site Prober
    17  * Plugin URI:        https://github.com/liaisontw/wp-site-prober
     17 * Plugin URI:        https://github.com/liaisontw/liaison-site-prober_svn_git
    1818 * Description:       Simple activity / audit logger for WordPress. Creates activity table, hooks common events, admin UI and CSV export.
    19  * Version:           1.0.0
     19 * Version:           1.1.0
    2020 * Author:            liason
    2121 * Author URI:        https://github.com/liaisontw/
Note: See TracChangeset for help on using the changeset viewer.