Plugin Directory

Changeset 2629801


Ignore:
Timestamp:
11/15/2021 12:46:15 PM (4 years ago)
Author:
contentstudio
Message:

tagging version 1.1.4

Location:
contentstudio
Files:
2 edited
1 copied

Legend:

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

    r2603576 r2629801  
    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.1.3
     5Version: 1.1.4
    66Author: ContentStudio
    77Author URI: http://contentstudio.io/
     
    1212 * add the meta SEO title for the web page if the post has SEO title available
    1313 */
    14 include_once(ABSPATH . 'wp-includes/pluggable.php');
     14// include_once(ABSPATH . 'wp-includes/pluggable.php');
    1515function cstu_add_wpseo_title()
    1616{
     
    4040        protected $assets = 'https://contentstudio.io/img';
    4141
    42         private $version = "1.1.3";
     42        private $version = "1.1.4";
    4343
    4444        protected $contentstudio_id = '';
     
    101101        public function add_menu()
    102102        {
    103             add_menu_page('ContentStudio Publisher', 'ContentStudio', 'edit_posts', 'contentstudio_settings', [
    104                 $this,
    105                 'connection_page',
    106             ], 'https://storage.googleapis.com/lumotive-web-storage/favicon-16x16.png', '50.505');
    107             // Settings link to the plugin listing page.
     103           if(current_user_can('editor') || current_user_can('administrator')){           
     104                add_menu_page('ContentStudio Publisher', 'ContentStudio', 'edit_posts', 'contentstudio_settings', [
     105                    $this,
     106                    'connection_page',
     107                ], 'https://storage.googleapis.com/lumotive-web-storage/favicon-16x16.png', '50.505');
     108                // Settings link to the plugin listing page.
     109            }
    108110        }
    109111
     
    172174        public function register_admin_hooks()
    173175        {
    174             if(current_user_can('editor') || current_user_can('administrator')){
    175                 add_action('admin_menu', [$this, 'add_menu']);
    176             }
     176           
     177            add_action('admin_menu', [$this, 'add_menu']);
     178           
    177179            add_filter("plugin_action_links_$this->cstu_plugin", [$this, 'plugin_settings_link'], 2, 2);
    178180
  • contentstudio/trunk/contentstudio-plugin.php

    r2603576 r2629801  
    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.1.3
     5Version: 1.1.4
    66Author: ContentStudio
    77Author URI: http://contentstudio.io/
     
    1212 * add the meta SEO title for the web page if the post has SEO title available
    1313 */
    14 include_once(ABSPATH . 'wp-includes/pluggable.php');
     14// include_once(ABSPATH . 'wp-includes/pluggable.php');
    1515function cstu_add_wpseo_title()
    1616{
     
    4040        protected $assets = 'https://contentstudio.io/img';
    4141
    42         private $version = "1.1.3";
     42        private $version = "1.1.4";
    4343
    4444        protected $contentstudio_id = '';
     
    101101        public function add_menu()
    102102        {
    103             add_menu_page('ContentStudio Publisher', 'ContentStudio', 'edit_posts', 'contentstudio_settings', [
    104                 $this,
    105                 'connection_page',
    106             ], 'https://storage.googleapis.com/lumotive-web-storage/favicon-16x16.png', '50.505');
    107             // Settings link to the plugin listing page.
     103           if(current_user_can('editor') || current_user_can('administrator')){           
     104                add_menu_page('ContentStudio Publisher', 'ContentStudio', 'edit_posts', 'contentstudio_settings', [
     105                    $this,
     106                    'connection_page',
     107                ], 'https://storage.googleapis.com/lumotive-web-storage/favicon-16x16.png', '50.505');
     108                // Settings link to the plugin listing page.
     109            }
    108110        }
    109111
     
    172174        public function register_admin_hooks()
    173175        {
    174             if(current_user_can('editor') || current_user_can('administrator')){
    175                 add_action('admin_menu', [$this, 'add_menu']);
    176             }
     176           
     177            add_action('admin_menu', [$this, 'add_menu']);
     178           
    177179            add_filter("plugin_action_links_$this->cstu_plugin", [$this, 'plugin_settings_link'], 2, 2);
    178180
Note: See TracChangeset for help on using the changeset viewer.