Changeset 2534739
- Timestamp:
- 05/20/2021 10:03:38 AM (5 years ago)
- Location:
- contentstudio
- Files:
-
- 2 edited
- 1 copied
-
tags/1.1.2 (copied) (copied from contentstudio/trunk)
-
tags/1.1.2/contentstudio-plugin.php (modified) (11 diffs)
-
trunk/contentstudio-plugin.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contentstudio/tags/1.1.2/contentstudio-plugin.php
r2489347 r2534739 3 3 Plugin Name: ContentStudio 4 4 Description: ContentStudio provides you with powerful blogging & social media tools to keep your audience hooked by streamlining the process for you to discover and share engaging content on multiple blogging & social media networks 5 Version: 1. 0.95 Version: 1.1.2 6 6 Author: ContentStudio 7 7 Author URI: http://contentstudio.io/ … … 40 40 protected $assets = 'https://contentstudio.io/img'; 41 41 42 private $version = "1. 0.9";42 private $version = "1.1.2"; 43 43 44 44 protected $contentstudio_id = ''; 45 45 46 46 protected $blog_id = ''; 47 47 48 48 public $cstu_plugin; 49 49 … … 59 59 public function __construct() 60 60 { 61 61 62 62 $this->cstu_plugin = plugin_basename(__FILE__); 63 63 … … 79 79 } 80 80 81 81 82 82 83 83 /** … … 115 115 */ 116 116 public function register_global_hooks() 117 { 117 { 118 118 119 119 add_action('init', [$this, 'cstu_check_token']); … … 173 173 */ 174 174 public function register_admin_hooks() 175 { 175 { 176 176 if(current_user_can('editor') || current_user_can('administrator')){ 177 177 add_action('admin_menu', [$this, 'add_menu']); … … 574 574 "rss2_url" => get_bloginfo( "rss2_url" ), 575 575 ); 576 576 577 577 $varsbloginfo["debug"] = array(); 578 578 … … 747 747 } 748 748 749 $tags = []; 750 if(isset($_REQUEST['post']['tags'])) $tags = $_REQUEST['post']['tags']; 751 749 752 // insert the post 750 753 … … 762 765 'post_status' => $post_status, 763 766 'post_category' => $categories, 767 'tags_input' => $tags 764 768 ]); 765 769 … … 770 774 'post_status' => $post_status, 771 775 'post_category' => $categories, 776 'tags_input' => $tags 772 777 ]); 773 778 global $wpdb; … … 1495 1500 1496 1501 wp_enqueue_style('contentstudio-dashboard'); 1497 1502 1498 1503 } 1499 1504 -
contentstudio/trunk/contentstudio-plugin.php
r2489347 r2534739 3 3 Plugin Name: ContentStudio 4 4 Description: ContentStudio provides you with powerful blogging & social media tools to keep your audience hooked by streamlining the process for you to discover and share engaging content on multiple blogging & social media networks 5 Version: 1. 0.95 Version: 1.1.2 6 6 Author: ContentStudio 7 7 Author URI: http://contentstudio.io/ … … 40 40 protected $assets = 'https://contentstudio.io/img'; 41 41 42 private $version = "1. 0.9";42 private $version = "1.1.2"; 43 43 44 44 protected $contentstudio_id = ''; 45 45 46 46 protected $blog_id = ''; 47 47 48 48 public $cstu_plugin; 49 49 … … 59 59 public function __construct() 60 60 { 61 61 62 62 $this->cstu_plugin = plugin_basename(__FILE__); 63 63 … … 79 79 } 80 80 81 81 82 82 83 83 /** … … 115 115 */ 116 116 public function register_global_hooks() 117 { 117 { 118 118 119 119 add_action('init', [$this, 'cstu_check_token']); … … 173 173 */ 174 174 public function register_admin_hooks() 175 { 175 { 176 176 if(current_user_can('editor') || current_user_can('administrator')){ 177 177 add_action('admin_menu', [$this, 'add_menu']); … … 574 574 "rss2_url" => get_bloginfo( "rss2_url" ), 575 575 ); 576 576 577 577 $varsbloginfo["debug"] = array(); 578 578 … … 747 747 } 748 748 749 $tags = []; 750 if(isset($_REQUEST['post']['tags'])) $tags = $_REQUEST['post']['tags']; 751 749 752 // insert the post 750 753 … … 762 765 'post_status' => $post_status, 763 766 'post_category' => $categories, 767 'tags_input' => $tags 764 768 ]); 765 769 … … 770 774 'post_status' => $post_status, 771 775 'post_category' => $categories, 776 'tags_input' => $tags 772 777 ]); 773 778 global $wpdb; … … 1495 1500 1496 1501 wp_enqueue_style('contentstudio-dashboard'); 1497 1502 1498 1503 } 1499 1504
Note: See TracChangeset
for help on using the changeset viewer.