Plugin Directory

Changeset 3428185


Ignore:
Timestamp:
12/27/2025 11:47:14 AM (3 months ago)
Author:
plance
Message:

Tested up to WordPress 6.9

Location:
light-code-block/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • light-code-block/trunk/includes/class-singleton.php

    r3313460 r3428185  
    1717     * Object instance
    1818     *
    19      * @var object
     19     * @var static|null
    2020     */
    2121    protected static $instance = null;
     
    2424     * Gets the instance
    2525     *
    26      * @return self
     26     * @return static
    2727     */
    2828    final public static function instance() {
    29         if ( is_null( self::$instance ) ) {
    30             self::$instance = new self();
     29        if ( null === self::$instance ) {
     30            self::$instance = new static();
    3131        }
    3232        return self::$instance;
     
    3737     */
    3838    final protected function __construct() {
     39        /** @phpstan-ignore-next-line ignore */
    3940        if ( method_exists( $this, 'init' ) ) {
    4041            $this->init();
  • light-code-block/trunk/includes/class-tinymce.php

    r3313460 r3428185  
    2525     */
    2626    protected function init() {
    27         add_filter( 'init', array( $this, 'run' ) );
     27        add_action( 'init', array( $this, 'run' ) );
    2828        add_filter( 'mce_external_plugins', array( $this, 'mce_external_plugins' ) );
    2929        add_filter( 'mce_buttons', array( $this, 'mce_buttons' ) );
  • light-code-block/trunk/light-code-block.php

    r3314137 r3428185  
    88 * Description: Adds a button to the TinyMCE editor to display a popup and enter code into it.
    99 * Plugin URI:  https://plance.top/
    10  * Version:     1.0.1
     10 * Version:     1.0.2
    1111 * Author:      plance
    1212 * License:     GPL v2 or later
  • light-code-block/trunk/readme.txt

    r3314137 r3428185  
    33Tags: code, sourcecode, source, editor, syntax highlighting
    44Requires at least: 6.0
    5 Tested up to: 6.8
    6 Stable tag: 1.0.1
     5Tested up to: 6.9
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 1.0.2 =
     48* Tested up to WordPress 6.9
     49
    4750= 1.0.1 =
    4851* For backward compatibility, the class "mce-simple-block-code" has been added.
Note: See TracChangeset for help on using the changeset viewer.