Plugin Directory

Changeset 1892216


Ignore:
Timestamp:
06/13/2018 02:07:43 PM (8 years ago)
Author:
TrendMD
Message:

Update indexing endpoint

Location:
trendmd/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trendmd/trunk/admin/class-trendmd-admin.php

    r1782221 r1892216  
    226226            if (!$trendmd_id) {
    227227                $r = wp_remote_post(Trendmd::TRENDMD_URL . '/journals/' . self::get_journal_id() . '/articles', $d);
    228                 $trendmd_id = json_decode($r['body'])->solr_id;
     228                $trendmd_id = time().' '.rand();
    229229                $wpdb->query('REPLACE INTO ' . $wpdb->prefix . 'trendmd_indexed_articles(id, trendmd_id) values(' . $post->ID . ', "' . $trendmd_id . '");');
    230             } else {
    231                 $d['method'] = 'PATCH';
    232                 $r = wp_remote_post(Trendmd::TRENDMD_URL . '/journals/' . self::get_journal_id() . '/articles/' . $trendmd_id, $d);
    233 
    234230            }
    235231        }
    236 
    237 
    238232    }
    239233
  • trendmd/trunk/includes/class-trendmd.php

    r1782221 r1892216  
    7373
    7474        $this->plugin_name = 'trendmd';
    75         $this->version = '2.4.3';
     75        $this->version = '2.4.4';
    7676
    7777        $this->load_dependencies();
  • trendmd/trunk/public/class-trendmd-public.php

    r1782221 r1892216  
    6565
    6666  public static function trendmd_add_html($content) {
    67     $content .= '<!--TrendMD v2.4.3-->';
     67    $content .= '<!--TrendMD v2.4.4-->';
    6868    if (Trendmd_Admin::show_widget() && !Trendmd_Admin::custom_widget_location()) {
    6969      $content .= "<div id='trendmd-suggestions'></div>";
  • trendmd/trunk/readme.txt

    r1782221 r1892216  
    22Contributors: TrendMD
    33Tags: TrendMD
    4 Tested up to: 4.8.1
    5 Stable tag: 2.4.3
     4Tested up to: 4.9.6
     5Stable tag: 2.4.4
    66Requires at least: 3.0
    77License: GPLv2 or later
     
    142142
    143143== Changelog ==
     144= 2.4.4 =
     145
     146* Update indexing endpoint
     147
    144148= 2.4.3 =
    145149
  • trendmd/trunk/trendmd.php

    r1782221 r1892216  
    1111 * Plugin URI:        http://www.trendmd.com
    1212 * Description:       This plugin will add the TrendMD recommendations widget to your WordPress website. The TrendMD recommendations widget is used by scholarly publishers to increase their readership and revenue.
    13  * Version:           2.4.3
     13 * Version:           2.4.4
    1414 * Author:            TrendMD Team
    1515 * Author URI:        http://www.trendmd.com
Note: See TracChangeset for help on using the changeset viewer.