Plugin Directory

Changeset 2984633


Ignore:
Timestamp:
10/26/2023 08:59:25 PM (2 years ago)
Author:
ehops32
Message:

1.2.4

  • Bug fixes
Location:
sackson-web-data/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sackson-web-data/trunk/README.txt

    r2983330 r2984633  
    55Requires at least: 3.0.1
    66Tested up to: 6.0
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5050
    5151== Changelog ==
     52
     53= 1.2.4 =
     54* Bug fixes
    5255
    5356= 1.2.3 =
  • sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php

    r2983330 r2984633  
    372372    function getUserData()
    373373    {
     374        // $DBRecord = array();
     375        // $args = [
     376        //     'fields'    => 'all_with_meta',
     377        //     'orderby' => 'last_name',
     378        //     'order'   => 'ASC'
     379        // ];       
     380        // $users = get_users( $args );
     381        // return;
     382        // $i=0;
     383        // foreach ( $users as $user )
     384        // {
     385        //    $DBRecord[$i]['WPId']           = $user->ID;
     386        //     $DBRecord[$i]['FirstName']      = $user->first_name;
     387        //     $DBRecord[$i]['LastName']       = $user->last_name;
     388        //     $DBRecord[$i]['RegisteredDate'] = $user->user_registered;
     389        //     $DBRecord[$i]['Email']          = $user->user_email;
     390        //     $DBRecord[$i]['DisplayName']    = $user->display_name;
     391        //     $DBRecord[$i]['UserNiceName']    = $user->user_nice_name;
     392
     393        //   $i++;
     394        // }         
     395        // $this->collected_data['user_list'] =  json_encode($DBRecord);
     396
     397
     398
     399        global $wpdb;
    374400        $DBRecord = array();
    375         $args = array(
    376             /*'role'    => 'Subscriber',*/
    377             'orderby' => 'last_name',
    378             'order'   => 'ASC'
    379         );
    380         $users = get_users( $args );
     401        $user_table = $wpdb->prefix . 'users';
     402        $users = $wpdb->get_results("SELECT * FROM $user_table");
    381403        $i=0;
    382         foreach ( $users as $user )
    383         {
    384             // $this->debug_to_console($user->user_nice_name);
    385             // $this->debug_to_console($user->display_name);
    386             //$DBRecord[$i]['role']           = "Subscriber";
     404        foreach ($users as $user)
     405        {
    387406            $DBRecord[$i]['WPId']           = $user->ID;
    388             $DBRecord[$i]['FirstName']      = $user->first_name;
    389             $DBRecord[$i]['LastName']       = $user->last_name;
     407            // $DBRecord[$i]['FirstName']      = $user->first_name;
     408            // $DBRecord[$i]['LastName']       = $user->last_name;
    390409            $DBRecord[$i]['RegisteredDate'] = $user->user_registered;
    391410            $DBRecord[$i]['Email']          = $user->user_email;
    392411            $DBRecord[$i]['DisplayName']    = $user->display_name;
    393             $DBRecord[$i]['UserNiceName']    = $user->user_nice_name;
    394 
    395             //$UserData                       = get_user_meta( $user->ID );
    396             // $DBRecord[$i]['Company']        = $UserData['billing_company'][0];        // $DBRecord[$i]['Address']        = $UserData['billing_address_1'][0];        // $DBRecord[$i]['City']           = $UserData['billing_city'][0];
    397             // $DBRecord[$i]['State']          = $UserData['billing_state'][0];        // $DBRecord[$i]['PostCode']       = $UserData['billing_postcode'][0];        // $DBRecord[$i]['Country']        = $UserData['billing_country'][0];
    398             // $DBRecord[$i]['Phone']          = $UserData['billing_phone'][0];
     412            $DBRecord[$i]['UserNiceName']    = $user->user_nicename;
    399413            $i++;
    400414        }
    401 
    402        
    403         // require_once("../../../../wp-load.php");
    404         // $headers = array('Content-Type: text/html; charset=UTF-8');
    405         // wp_mail('[email protected]', 'user_list', print_r($DBRecord, true), $headers);
    406         //echo '#';
    407          
    408415        $this->collected_data['user_list'] =  json_encode($DBRecord);
     416
    409417    }
    410418
  • sackson-web-data/trunk/sacksonweb-data.php

    r2983330 r2984633  
    1010 *
    1111 * @link              http://data.sacksonweb.com/author
    12  * @since             1.2.3
     12 * @since             1.2.4
    1313 * @package           Sacksonweb_Data
    1414 *
     
    1717 * Plugin URI:        http://data.sacksonweb.com
    1818 * Description:       A tool to monitor security issues, performance issues, and Wordpress settings that should be changed.
    19  * Version:           1.2.3
     19 * Version:           1.2.4
    2020 * Author:            Eric Thornton
    2121 * Author URI:        http://data.sacksonweb.com/author
     
    3535 *
    3636 */
    37 define( 'SACKSONWEB_DATA_VERSION', '1.2.3' );
     37define( 'SACKSONWEB_DATA_VERSION', '1.2.4' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.