Plugin Directory

Changeset 3359038


Ignore:
Timestamp:
09/10/2025 08:41:08 AM (7 months ago)
Author:
macha795
Message:

v0.0.7

Location:
editorheadlinejump/trunk
Files:
6 added
6 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • editorheadlinejump/trunk/mch-editor-headline-jump.php

    r2472803 r3359038  
    44Description: Add a heading list to the post edit screen. Click on the heading to move to the edit position.
    55Author: macha795
    6 Version: 0.0.6
     6Version: 0.0.7
    77*/
    88
     
    2222if ( function_exists( 'add_action' ) && class_exists('Mch_Editor_Headline_Jump') ) {
    2323    add_action( 'plugins_loaded', array('Mch_Editor_Headline_Jump', 'get_object' ) );
    24     add_action( 'plugins_loaded', ['Mch_Editor_Headline_Jump', 'myplugin_load_textdomain'] );
     24    add_action( 'plugins_loaded', array('Mch_Editor_Headline_Jump', 'myplugin_load_textdomain') );
    2525}
    2626
  • editorheadlinejump/trunk/mch_ehj_main.php

    r2472784 r3359038  
    4242    public static function get_object() {
    4343        static $instance = null;
    44         if ( NULL === $instance ) {
     44        if ( null === $instance ) {
    4545            $instance = new self();
    4646        }
     
    110110
    111111
    112     private $_test = '';
    113 
    114112    function my_admin_print_styles() {
    115113        if( !$this->isEditorPage() ){
     
    134132        foreach ($strList as $key => $str){
    135133        ?>
    136         _mchEhjStr['<?php echo $key ?>'] = '<?php echo $str ?>';
     134        _mchEhjStr['<?php echo esc_js($key) ?>'] = '<?php echo esc_js($str) ?>';
    137135        <?php
    138136        }
     
    156154            wp_enqueue_script(
    157155                'my-admin-script_com',
    158                 plugin_dir_url( __FILE__ ). '/js/'.$wpVerDir."/{$miniStr}mch_ehj_com.js"
     156                plugin_dir_url( __FILE__ ). '/js/'.$wpVerDir."/{$miniStr}mch_ehj_com.min.js"
    159157                , array( 'jquery')
    160158                , null
     
    162160            wp_enqueue_script(
    163161                'my-admin-script',
    164                 plugin_dir_url( __FILE__ ). '/js/'.$wpVerDir."/{$miniStr}mch_ehj.js"
     162                plugin_dir_url( __FILE__ ). '/js/'.$wpVerDir."/{$miniStr}mch_ehj.min.js"
    165163                , array( 'jquery')
    166164                , null
     
    171169                'my-admin-script_com',
    172170//              plugin_dir_url( __FILE__ ). '/js/mch_ehj_com'.$miniStr.'.js'
    173                 plugin_dir_url( __FILE__ ). '/js/mch_ehj_com.js'
     171                plugin_dir_url( __FILE__ ). '/js/old/mch_ehj_com.min.js'
    174172                , array( 'jquery')
    175173                , null
     
    178176                'my-admin-script',
    179177//              plugin_dir_url( __FILE__ ). '/js/mch_ehj'.$miniStr.'.js'
    180                 plugin_dir_url( __FILE__ ). '/js/mch_ehj.js'
     178                plugin_dir_url( __FILE__ ). '/js/old/mch_ehj.min.js'
    181179                , array( 'jquery')
    182180                , null
  • editorheadlinejump/trunk/readme.txt

    r2472803 r3359038  
    33Tags: editor, headline, ClassicEditor, editor headline, jump
    44Requires at least: 4.9
    5 Tested up to: 5.6
    6 Stable tag: 0.0.6
     5Tested up to: 6.8
     6Stable tag: 0.0.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919
    2020Only ClassicEditor is supported. Gutenberg is not supported yet.
    21 
    2221
    2322
     
    4948== Changelog ==
    5049
     50
     51= 0.0.7 =
     52* WordPress 6.8 compatibility
     53* Updated compatibility information
     54
    5155= 0.0.5 =
    5256bug fix
Note: See TracChangeset for help on using the changeset viewer.