Changeset 1468150
- Timestamp:
- 08/04/2016 11:36:01 PM (10 years ago)
- Location:
- elevio/trunk
- Files:
-
- 4 edited
-
elevio.php (modified) (1 diff)
-
plugin_files/ElevioSync.class.php (modified) (2 diffs)
-
plugin_files/models/post.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elevio/trunk/elevio.php
r1466578 r1468150 6 6 Author: Elevio 7 7 Author URI: https://elev.io 8 Version: 3.5. 48 Version: 3.5.5 9 9 */ 10 10 -
elevio/trunk/plugin_files/ElevioSync.class.php
r1459968 r1468150 51 51 // categories, not custom taxonomies. 52 52 if (isset($_GET['cat'])) { 53 $ _GET['tax_query']= array(53 $tax_query = array( 54 54 array( 55 55 'taxonomy' => Elevio::get_instance()->get_category_taxonomy(), … … 58 58 ), 59 59 ); 60 61 // Allow the running of some extra filters on the retrieved topics 62 $tax_query = apply_filters('elevio_posts_tax_query', $tax_query); 63 $_GET['tax_query'] = $tax_query; 60 64 61 65 // We get rid of the 'cat' parameter too. -
elevio/trunk/plugin_files/models/post.php
r1466578 r1468150 31 31 $this->import_wp_object($wp_post); 32 32 } 33 // do_action("json_api_{$this->type}_constructor", $this);34 33 } 35 34 … … 37 36 function import_wp_object($wp_post) { 38 37 global $json_api, $post; 39 // $date_format = $json_api->query->date_format;40 38 $this->id = (int) $wp_post->ID; 41 39 setup_postdata($wp_post); … … 46 44 $this->set_categories_value(); 47 45 $this->set_tags_value(); 48 49 // do_action("json_api_import_wp_post", $this, $wp_post);50 46 } 51 47 … … 57 53 global $json_api; 58 54 $content = get_post_field('post_content', $this->id); 59 // $content = apply_filters('the_content', $content); 55 $content = apply_filters('elevio_post_content_before', $content); // This the users theme modify post content before... 60 56 $content = do_shortcode($content); 57 $content = apply_filters('elevio_post_content_after', $content); // ...and after processing. 61 58 $this->content = $content; 62 59 } -
elevio/trunk/readme.txt
r1466578 r1468150 2 2 Contributors: Elevio 3 3 Tags: zendesk, desk.com, uservoice, zopim, olark, snapengage, livechat, knowledge base, live chat, support, intercom, statuspage, freshdesk, intercom 4 Stable tag: 3.5. 44 Stable tag: 3.5.5 5 5 Requires at least: 2.8 6 6 Tested up to: 4.4.2
Note: See TracChangeset
for help on using the changeset viewer.