Changeset 3428185
- Timestamp:
- 12/27/2025 11:47:14 AM (3 months ago)
- Location:
- light-code-block/trunk
- Files:
-
- 4 edited
-
includes/class-singleton.php (modified) (3 diffs)
-
includes/class-tinymce.php (modified) (1 diff)
-
light-code-block.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
light-code-block/trunk/includes/class-singleton.php
r3313460 r3428185 17 17 * Object instance 18 18 * 19 * @var object19 * @var static|null 20 20 */ 21 21 protected static $instance = null; … … 24 24 * Gets the instance 25 25 * 26 * @return s elf26 * @return static 27 27 */ 28 28 final public static function instance() { 29 if ( is_null( self::$instance )) {30 self::$instance = new s elf();29 if ( null === self::$instance ) { 30 self::$instance = new static(); 31 31 } 32 32 return self::$instance; … … 37 37 */ 38 38 final protected function __construct() { 39 /** @phpstan-ignore-next-line ignore */ 39 40 if ( method_exists( $this, 'init' ) ) { 40 41 $this->init(); -
light-code-block/trunk/includes/class-tinymce.php
r3313460 r3428185 25 25 */ 26 26 protected function init() { 27 add_ filter( 'init', array( $this, 'run' ) );27 add_action( 'init', array( $this, 'run' ) ); 28 28 add_filter( 'mce_external_plugins', array( $this, 'mce_external_plugins' ) ); 29 29 add_filter( 'mce_buttons', array( $this, 'mce_buttons' ) ); -
light-code-block/trunk/light-code-block.php
r3314137 r3428185 8 8 * Description: Adds a button to the TinyMCE editor to display a popup and enter code into it. 9 9 * Plugin URI: https://plance.top/ 10 * Version: 1.0. 110 * Version: 1.0.2 11 11 * Author: plance 12 12 * License: GPL v2 or later -
light-code-block/trunk/readme.txt
r3314137 r3428185 3 3 Tags: code, sourcecode, source, editor, syntax highlighting 4 4 Requires at least: 6.0 5 Tested up to: 6. 86 Stable tag: 1.0. 15 Tested up to: 6.9 6 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 47 = 1.0.2 = 48 * Tested up to WordPress 6.9 49 47 50 = 1.0.1 = 48 51 * For backward compatibility, the class "mce-simple-block-code" has been added.
Note: See TracChangeset
for help on using the changeset viewer.