Changeset 1892216
- Timestamp:
- 06/13/2018 02:07:43 PM (8 years ago)
- Location:
- trendmd/trunk
- Files:
-
- 5 edited
-
admin/class-trendmd-admin.php (modified) (1 diff)
-
includes/class-trendmd.php (modified) (1 diff)
-
public/class-trendmd-public.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
trendmd.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trendmd/trunk/admin/class-trendmd-admin.php
r1782221 r1892216 226 226 if (!$trendmd_id) { 227 227 $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(); 229 229 $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 234 230 } 235 231 } 236 237 238 232 } 239 233 -
trendmd/trunk/includes/class-trendmd.php
r1782221 r1892216 73 73 74 74 $this->plugin_name = 'trendmd'; 75 $this->version = '2.4. 3';75 $this->version = '2.4.4'; 76 76 77 77 $this->load_dependencies(); -
trendmd/trunk/public/class-trendmd-public.php
r1782221 r1892216 65 65 66 66 public static function trendmd_add_html($content) { 67 $content .= '<!--TrendMD v2.4. 3-->';67 $content .= '<!--TrendMD v2.4.4-->'; 68 68 if (Trendmd_Admin::show_widget() && !Trendmd_Admin::custom_widget_location()) { 69 69 $content .= "<div id='trendmd-suggestions'></div>"; -
trendmd/trunk/readme.txt
r1782221 r1892216 2 2 Contributors: TrendMD 3 3 Tags: TrendMD 4 Tested up to: 4. 8.15 Stable tag: 2.4. 34 Tested up to: 4.9.6 5 Stable tag: 2.4.4 6 6 Requires at least: 3.0 7 7 License: GPLv2 or later … … 142 142 143 143 == Changelog == 144 = 2.4.4 = 145 146 * Update indexing endpoint 147 144 148 = 2.4.3 = 145 149 -
trendmd/trunk/trendmd.php
r1782221 r1892216 11 11 * Plugin URI: http://www.trendmd.com 12 12 * 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. 313 * Version: 2.4.4 14 14 * Author: TrendMD Team 15 15 * Author URI: http://www.trendmd.com
Note: See TracChangeset
for help on using the changeset viewer.