Plugin Directory

Changeset 3470715


Ignore:
Timestamp:
02/26/2026 10:14:57 PM (5 weeks ago)
Author:
basecraft
Message:

Version 1.2.0

Location:
admin-documentation
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • admin-documentation/trunk/admin-documentation.php

    r3341824 r3470715  
    33 * Plugin Name: Admin Documentation
    44 * Description: Adds a simple documentation page to your WordPress admin to keep instructions, notes, and other helpful information for maintaining your website.
    5  * Version: 1.1
     5 * Version: 1.2.0
    66 * Author: Basecraft
    77 * Author URI: https://basecraft.com
     
    7272        <div id="basecraftad-doc-container">
    7373            <div id="basecraftad-doc-toc"></div>
    74             <div id="basecraftad-doc-content-container"><div id="basecraftad-doc-content"><?php echo wp_kses_post(wpautop($content)); ?></div></div>
     74            <div id="basecraftad-doc-content-container"><div id="basecraftad-doc-content"><?php
     75                $allowed_html = array_merge(wp_kses_allowed_html('post'), array(
     76                    'video' => array(
     77                        'src'      => true,
     78                        'controls' => true,
     79                        'width'    => true,
     80                        'height'   => true,
     81                        'loop'     => true,
     82                        'autoplay' => true,
     83                        'muted'    => true,
     84                        'preload'  => true,
     85                        'class'    => true,
     86                        'style'    => true,
     87                    ),
     88                    'source' => array(
     89                        'src'  => true,
     90                        'type' => true,
     91                    ),
     92                ));
     93                echo wp_kses(do_shortcode(wpautop($content)), $allowed_html);
     94            ?></div></div>
    7595        </div>
    7696    </div>
     
    83103        return;
    84104    }
    85     wp_enqueue_style('basecraftad-admin-style', plugin_dir_url(__FILE__) . 'admin-documentation.css', array(), '1.1');
    86     wp_enqueue_script('basecraftad-admin-script', plugin_dir_url(__FILE__) . 'admin-documentation.js', array(), '1.1', true);
     105    wp_enqueue_style('basecraftad-admin-style', plugin_dir_url(__FILE__) . 'admin-documentation.css', array(), '1.2.0');
     106    wp_enqueue_script('basecraftad-admin-script', plugin_dir_url(__FILE__) . 'admin-documentation.js', array(), '1.2.0', true);
    87107}
    88108add_action('admin_enqueue_scripts', 'basecraftad_enqueue_admin_assets');
  • admin-documentation/trunk/readme.txt

    r3341824 r3470715  
    22Contributors: basecraft
    33Tags: admin, documentation, docs, wiki, help
    4 Stable tag: 1.1
    5 Tested up to: 6.8
     4Stable tag: 1.2.0
     5Tested up to: 6.9
    66Requires at least: 5.0
    77Requires PHP: 7.4
     
    2222== Changelog ==
    2323
     24= 1.2.0 =
     25
     26* Improved - Embedded video support
     27
    2428= 1.1.0 =
    2529
Note: See TracChangeset for help on using the changeset viewer.