Plugin Directory

Changeset 2489591


Ignore:
Timestamp:
03/08/2021 02:20:55 PM (5 years ago)
Author:
allan.casilum
Message:

release version 1.11.33

Location:
searchie/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • searchie/trunk/README.txt

    r2402490 r2489591  
    44Tags: video, audio, content
    55Requires at least: 5.4
    6 Tested up to: 5.5.1
    7 Stable tag: 1.11.30
     6Tested up to: 5.6.2
     7Stable tag: 1.11.33
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    2727
    2828== Changelog ==
     29
     30= 1.11.33 =
     31* Update the current version to latest WordPress stable version.
     32* Fix some bug due to some incompatible.
    2933
    3034= 1.11.30 =
  • searchie/trunk/SIO/API/Widgets.php

    r2340379 r2489591  
    8989    $res = SIO_API::get_instance()->get($args);
    9090
    91     if ( $res['http_code'] == 200 ) {
     91    if ( isset($res['http_code']) && $res['http_code'] == 200 ) {
    9292      $body = json_decode($res['body']);
    9393            $msg = $res['msg'];
     
    9999            ];
    100100    } else {
    101       $body = json_decode($res['body']);
    102       $msg = $res['msg'];
     101            $resBody = isset($res['body']) ?? [];
     102      $body = json_decode($resBody);
     103      $msg = $res['msg'] ?? '';
    103104
    104105            $ret = [
     
    106107                'msg' => $msg,
    107108                'status' => false,
    108                 'http_code' => $res['http_code'],
     109                'http_code' => $res['http_code'] ?? '',
    109110            ];
    110111    }
  • searchie/trunk/SIO/Media/Controller.php

    r2325888 r2489591  
    4343    public function sync() {
    4444        SIO_Media_Index::get_instance()->sync();
    45         sio_redirect_to( admin_url('?page=searchie-media') );   
     45        sio_redirect_to( admin_url('?page=searchie-media') );
    4646    }
    4747
  • searchie/trunk/SIO/Media/Index.php

    r2340379 r2489591  
    8585
    8686                $res = SIO_API_Files::get_instance()->search([ 'search' => $search, 'paged' => $paged ]);
     87
    8788                if ( $res['http_code'] == 200 && $res['body']->meta->total > 0 ) {
    8889                    $data = [
     
    129130  }
    130131
    131   public function content( $args = [] ) {
     132  public function content($args = [])
     133    {
    132134        $defaults = [];
    133135        $data = wp_parse_args( $args, $defaults );
     
    173175
    174176            $medias = sio_get_local_media();
    175        
     177
    176178            $data = [
    177179                'limit' => $limit,
     
    185187                'media_data_source' => $media_data_source
    186188            ];
     189
    187190            SIO_View::get_instance()->admin_partials('dashboard/media/local-index.php', $data);
    188191        }
    189 
    190 
    191192
    192193  }
     
    222223            } else {
    223224                //many pages
    224                 $result_data[] = $data['medias'];
     225                $result_data = $data['medias'];
     226
    225227                for($i = 2; $i <= $last_page; $i++) {
    226228                    $paged = $i;
     
    229231                    ];
    230232                    $files = sio_get_media($api_file_args);
    231                     $result_data[] = $files['body']->data;
    232                 }
    233             }
    234         }
     233
     234                    $totalFiles = $files['body']->data;
     235                }
     236                $result_data += $totalFiles;
     237            }
     238        }
     239        $result_data = array_merge_recursive($result_data, $totalFiles ?? []);
    235240
    236241        sio_store_media_files( $result_data );
    237 
    238242    }
    239243
  • searchie/trunk/SIO/Settings/Controller.php

    r2340379 r2489591  
    102102
    103103        $args['username'] = false;
    104         if ( isset($_POST['username']) && sanitize_text_field( $_POST['username'] ) !== '' ) {
    105             $args['username'] = sanitize_text_field( $_POST['username'] );
     104        if ( isset($_POST['username']) && $_POST['username'] !== '' ) {
     105            $args['username'] = $_POST['username'];
    106106        }
    107107
    108108        $args['password'] = false;
    109         if ( isset($_POST['password']) && sanitize_text_field( $_POST['password'] ) !== '' ) {
    110             $args['password'] = sanitize_text_field( $_POST['password'] );
     109        if ( isset($_POST['password']) && $_POST['password'] !== '' ) {
     110            $args['password'] = $_POST['password'];
    111111        }
    112112
  • searchie/trunk/admin/partials/dashboard/media/local-index.php

    r2340379 r2489591  
    4343          <li class="media media-item">
    4444            <?php
     45              $title = $media->title ?? '';
     46              $embed_url = $media->embed_url ?? '';
    4547              $ajax_url = add_query_arg(
    4648                  array(
    4749                      'action' => 'tb_show_media',
    48                       'embed_url' => $media->embed_url,
    49                       'title' => $media->title,
     50                      'embed_url' => $embed_url,
     51                      'title' => $title,
    5052                      'width' => 600,
    5153                      'height' => 650,
     
    5860            </a>
    5961            <div class="media-body">
    60               <h5 class="mt-0 mb-1"><?php echo $media->title;?></h5>
     62              <h5 class="mt-0 mb-1"><?php echo $title;?></h5>
    6163              <div class="input-group mb-3">
    6264                <input
    6365                  type="text"
    6466                  class="form-control form-control-sm copy-clipboard"
    65                   value="[sio_embed_media embed_url='<?php echo $media->embed_url;?>' width='560' height='315' responsive='0']"
     67                  value="[sio_embed_media embed_url='<?php echo $embed_url;?>' width='560' height='315' responsive='0']"
    6668                  style="height:75%;"
    6769                  readonly
     
    8082  <div class="row">
    8183    <?php
    82       sio_paginator($limit, $page, $total_page, admin_url($link_href));
     84      sio_paginator($limit, $page, $total_page ?? 0, admin_url($link_href));
    8385    ?>
    8486  </div>
  • searchie/trunk/functions/api.php

    r2325888 r2489591  
    88  define('SIO_API_CLIENT_ID', 14);
    99  define('SIO_API_CLIENT_SECRET', 'tK0G7BlgOWCuY712PUm0XPIWnJvuMft7ZlwCueJL');
    10 } else {
    11   define('SIO_API_URL', 'https://fkwhwvg9azgw.searchie.io/');
    12   define('SIO_API_CLIENT_ID', 14);
    13   define('SIO_API_CLIENT_SECRET', 'NR22qtpXfEfB15w6B1G9vu3qTMsj9JAOtnaKxsqy');
    14 }
     10}
  • searchie/trunk/functions/helper.php

    r2327514 r2489591  
    6060}
    6161
    62 function sio_dd( $arr = [] ) {
     62function sio_dd( $arr = [], $exit = false ) {
    6363  echo '<pre>';
    6464  print_r($arr);
    6565  echo '</pre>';
     66    if ( $exit )
     67    {
     68        exit();
     69    }
    6670}
    6771
  • searchie/trunk/functions/media.php

    r2327514 r2489591  
    3737    if ( $get_data ) {
    3838        foreach( $get_data as $key => $val ) {
    39             if ( is_array( $val ) ) {
    40                 foreach( $val  as $val_array ) {
    41                     $get_data_array[] = $val_array;
    42                 }
    43             }
     39            // if ( is_array( $val ) ) {
     40            //  foreach( $val  as $val_array ) {
     41            //      $get_data_array[] = $val_array;
     42            //  }
     43            // }
     44            $get_data_array[] = $val;
    4445        }
    4546    }
  • searchie/trunk/functions/widgets.php

    r2340379 r2489591  
    2626        $ret = new SIO_API_Widgets;
    2727        $widgets = $ret->get( $args );
    28         return $widgets['body']->data;
     28        return $widgets['body']->data ?? [];
    2929    } elseif ( $data_source == 'local' ) {
    3030        return sio_get_local_widgets();
  • searchie/trunk/searchie.php

    r2402490 r2489591  
    44 *
    55 * @link              https://www.searchie.io/
    6  * @since             1.11.30
     6 * @since             1.11.33
    77 * @package           Searchie
    88 *
     
    1111 * Plugin URI:        https://www.searchie.io/
    1212 * Description:       Unlock the full potential of your video and audio content Searchie helps reduce content overwhelm for your customers and team, making your content more accessible and easier to consume.  You create� And let Searchie do the work for you.
    13  * Version:           1.11.30
     13 * Version:           1.11.33
    1414 * Author:            Searchie
    1515 * License:           GPL-2.0+
     
    2929 * Rename this for the plugin and update it as you release new versions.
    3030 */
    31 define( 'SEARCHIE_VERSION', '1.11.30' );
     31define( 'SEARCHIE_VERSION', '1.11.33' );
    3232/**
    3333 * Get the root url file.
Note: See TracChangeset for help on using the changeset viewer.