Plugin Directory

Changeset 3110119


Ignore:
Timestamp:
06/30/2024 11:13:00 PM (21 months ago)
Author:
service2client
Message:

4.02 Update cron code to solver user permission for posting videos

Location:
dynamic-post/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dynamic-post/trunk/post-types/post_type_dynamic_post.php

    r3060774 r3110119  
    831831   }
    832832 }
     833
     834
     835 if (!defined('ABSPATH')) {
     836    exit; // Exit if accessed directly
     837}
     838
     839function allow_iframes_for_editor_and_author($initArray) {
     840    // Add additional allowed HTML elements
     841    $initArray['extended_valid_elements'] = 'iframe[src|frameborder|style|scrolling|class|width|height|name|align]';
     842    return $initArray;
     843}
     844
     845function add_editor_and_author_capabilities() {
     846    $roles = array('editor', 'author');
     847    foreach ($roles as $role_name) {
     848        $role = get_role($role_name);
     849        if ($role) {
     850            // Allow unfiltered HTML for Editors and Authors
     851            $role->add_cap('unfiltered_html');
     852        }
     853    }
     854}
     855
     856// Hook the functions
     857add_filter('tiny_mce_before_init', 'allow_iframes_for_editor_and_author');
     858add_action('init', 'add_editor_and_author_capabilities');
     859?>
  • dynamic-post/trunk/readme.txt

    r3091662 r3110119  
    55Tags: financial articles,financial content,CPA content, tax content,free seo content,syndicate articles,blog content,articles for my blog,financial news,business articles,cpa articles,accounting news,cpa newsletter,business newsletter,financial newsletter,accountant newsletter
    66Requires at least: 3.0
    7 Tested up to: 6.5.3
    8 Stable tag: 4.01
     7Tested up to: 6.5.5
     8Stable tag: 4.02
    99License: GPLv2 or later, Contact sales@service2client.com for duel licensing options.
    1010
     
    227227
    228228= 4.01 =
    229 *Disclaimer update for only Dynamic Posts, Image Rules for only Dynamic Posts, Save Category for Tech article not working, User Permission Access to Plugin, Plugin Freeze up fixes, Script iframe stripping for video
     229*Disclaimer update for only Dynamic Posts, Image Rules for only Dynamic Posts, Save Category for Tech article not working, User Permission Access to Plugin, Plugin Freeze up fixes, Script iframe stripping for video*
     230
     231= 4.02 =
     232*Update Cron code for higer compatibility*
    230233
    231234== Upgrade Notice ==
     
    337340
    338341= 4.01 =Disclaimer update for only Dynamic Posts, Image Rules for only Dynamic Posts, Save Category for Tech article not working, User Permission Access to Plugin, Plugin Freeze up fixes, Script iframe stripping for video
     342
     343= 4.02 =Update Cron code for higer compatibility
  • dynamic-post/trunk/wp_plugin_dynamic_post.php

    r3091662 r3110119  
    44Plugin URI: https://www.service2client.com/dynamicpost
    55Description: Auto post Service2Clients Dynamic Content articles to your blog on a monthly basis. CPA Content, Tax Content, Accounting Content.
    6 Version: 4.01
     6Version: 4.02
    77Author: Service2Client
    88Author URI: https://www.service2client.com
Note: See TracChangeset for help on using the changeset viewer.