Plugin Directory

Changeset 1815787


Ignore:
Timestamp:
02/05/2018 05:28:48 PM (8 years ago)
Author:
rveitch
Message:

Updating plugin 3.0.2

Location:
coschedule-by-todaymade
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • coschedule-by-todaymade/trunk/readme.txt

    r1808887 r1815787  
    44Tags: Content marketing calendar, drag and drop editorial calendar plugin, social media scheduling, editorial calendar plugin, content marketing, social automation tool, pinterest integration, schedule facebook posts, schedule to twitter, social media, tumblr, schedule posts to google+, schedule posts to Linkedin, Google Analytics, social media analytics, Google Docs integration, Evernote integration, Click to Tweet
    55Requires at least: 3.5
    6 Tested up to: 4.9.1
    7 Stable tag: 3.0.1
     6Tested up to: 4.9.2
     7Stable tag: 3.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9191
    9292== Changelog ==
     93
     94= 3.0.2 =
     95* Internal changes to get_post action.
    9396
    9497= 3.0.1 =
     
    304307
    305308== Upgrade Notice ==
     309
     310= 3.0.2 =
     311* Internal changes to get_post action.
     312
    306313= 3.0.1 =
    307314* Fixes issue with calendar site name updating.
  • coschedule-by-todaymade/trunk/tm-scheduler.php

    r1808887 r1815787  
    33Plugin Name: CoSchedule
    44Description: Plan, organize, and execute every content marketing project in one place with CoSchedule, an all-in-one content marketing editorial calendar solution.
    5 Version: 3.0.1
     5Version: 3.0.2
    66Author: CoSchedule
    77Author URI: http://coschedule.com/
     
    2323        private $app = "https://app.coschedule.com";
    2424        private $assets = "https://d2lbmhk9kvi6z5.cloudfront.net";
    25         private $version = "3.0.1";
     25        private $version = "3.0.2";
    2626        private $build;
    2727        private $connected = false;
     
    4747
    4848            // Load variables
    49             $this->build                  = intval( "73" );
     49            $this->build                  = intval( "74" );
    5050            $this->token                  = get_option( 'tm_coschedule_token' );
    5151            $this->calendar_id            = get_option( 'tm_coschedule_calendar_id' );
     
    691691
    692692      /**
    693        * Retrieves a post with HTML and encoded shortcodes
     693       * Retrieves a post with HTML
    694694       *
    695695       * @param $data_args
    696696       */
    697         public function tm_aj_get_html_post ( $data_args ) {
     697        public function tm_aj_get_html_post( $data_args ) {
    698698            try {
    699699                if ( isset( $data_args['post_id'] ) ) {
     
    705705                $output = $this->get_value_or_default( $data_args['output'], 'ARRAY_A' );
    706706                $filter = $this->get_value_or_default( $data_args['filter'], 'raw');
     707                $apply_filters = $this->get_value_or_default( $data_args['apply_filters'], false);
    707708
    708709                $post = get_post( $post_id, $output, $filter );
     
    711712                   throw new Exception( "Failed to retrieve post with id $post_id");
    712713                }
    713 
    714                 $content = apply_filters( 'the_content', $post['post_content'] );
    715 
    716                 if ( is_wp_error( $content ) ) {
    717                    throw new Exception( 'Failed to apply filters to post content');
    718                 }
    719 
     714                if ( $apply_filters ) {
     715                    $content = apply_filters( 'the_content', $post['post_content'] );
     716
     717                    if ( is_wp_error( $content ) ) {
     718                        throw new Exception('Failed to apply filters to post content');
     719                    }
     720                } else {
     721                    $content = wpautop( $post['post_content'] );
     722                }
    720723                $post['post_content'] = base64_encode( $content );
    721724
Note: See TracChangeset for help on using the changeset viewer.