Plugin Directory

Changeset 2534739


Ignore:
Timestamp:
05/20/2021 10:03:38 AM (5 years ago)
Author:
contentstudio
Message:

tagging version 1.1.2

Location:
contentstudio
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • contentstudio/tags/1.1.2/contentstudio-plugin.php

    r2489347 r2534739  
    33Plugin Name: ContentStudio
    44Description: 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.9
     5Version: 1.1.2
    66Author: ContentStudio
    77Author URI: http://contentstudio.io/
     
    4040        protected $assets = 'https://contentstudio.io/img';
    4141
    42         private $version = "1.0.9";
     42        private $version = "1.1.2";
    4343
    4444        protected $contentstudio_id = '';
    4545
    4646        protected $blog_id = '';
    47        
     47
    4848        public $cstu_plugin;
    4949
     
    5959        public function __construct()
    6060        {
    61            
     61
    6262            $this->cstu_plugin = plugin_basename(__FILE__);
    6363
     
    7979        }
    8080
    81        
     81
    8282
    8383        /**
     
    115115         */
    116116        public function register_global_hooks()
    117         {   
     117        {
    118118
    119119            add_action('init', [$this, 'cstu_check_token']);
     
    173173         */
    174174        public function register_admin_hooks()
    175         {   
     175        {
    176176            if(current_user_can('editor') || current_user_can('administrator')){
    177177                add_action('admin_menu', [$this, 'add_menu']);
     
    574574                    "rss2_url"               => get_bloginfo( "rss2_url" ),
    575575                );
    576                
     576
    577577                $varsbloginfo["debug"] = array();
    578578
     
    747747                    }
    748748
     749                    $tags = [];
     750                    if(isset($_REQUEST['post']['tags'])) $tags = $_REQUEST['post']['tags'];
     751
    749752                    // insert the post
    750753
     
    762765                        'post_status' => $post_status,
    763766                        'post_category' => $categories,
     767                        'tags_input' => $tags
    764768                    ]);
    765769
     
    770774                            'post_status' => $post_status,
    771775                            'post_category' => $categories,
     776                            'tags_input' => $tags
    772777                        ]);
    773778                        global $wpdb;
     
    14951500
    14961501        wp_enqueue_style('contentstudio-dashboard');
    1497    
     1502
    14981503    }
    14991504
  • contentstudio/trunk/contentstudio-plugin.php

    r2489347 r2534739  
    33Plugin Name: ContentStudio
    44Description: 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.9
     5Version: 1.1.2
    66Author: ContentStudio
    77Author URI: http://contentstudio.io/
     
    4040        protected $assets = 'https://contentstudio.io/img';
    4141
    42         private $version = "1.0.9";
     42        private $version = "1.1.2";
    4343
    4444        protected $contentstudio_id = '';
    4545
    4646        protected $blog_id = '';
    47        
     47
    4848        public $cstu_plugin;
    4949
     
    5959        public function __construct()
    6060        {
    61            
     61
    6262            $this->cstu_plugin = plugin_basename(__FILE__);
    6363
     
    7979        }
    8080
    81        
     81
    8282
    8383        /**
     
    115115         */
    116116        public function register_global_hooks()
    117         {   
     117        {
    118118
    119119            add_action('init', [$this, 'cstu_check_token']);
     
    173173         */
    174174        public function register_admin_hooks()
    175         {   
     175        {
    176176            if(current_user_can('editor') || current_user_can('administrator')){
    177177                add_action('admin_menu', [$this, 'add_menu']);
     
    574574                    "rss2_url"               => get_bloginfo( "rss2_url" ),
    575575                );
    576                
     576
    577577                $varsbloginfo["debug"] = array();
    578578
     
    747747                    }
    748748
     749                    $tags = [];
     750                    if(isset($_REQUEST['post']['tags'])) $tags = $_REQUEST['post']['tags'];
     751
    749752                    // insert the post
    750753
     
    762765                        'post_status' => $post_status,
    763766                        'post_category' => $categories,
     767                        'tags_input' => $tags
    764768                    ]);
    765769
     
    770774                            'post_status' => $post_status,
    771775                            'post_category' => $categories,
     776                            'tags_input' => $tags
    772777                        ]);
    773778                        global $wpdb;
     
    14951500
    14961501        wp_enqueue_style('contentstudio-dashboard');
    1497    
     1502
    14981503    }
    14991504
Note: See TracChangeset for help on using the changeset viewer.