Plugin Directory

Changeset 2721068


Ignore:
Timestamp:
05/10/2022 08:44:24 AM (4 years ago)
Author:
technocannon
Message:

Updated PyPlugger PHP file with Function to replacewp_register_script and wp_register_style functions causing WordPress BackEnd Dashboard to stop scrolling.

Location:
pyplugger-for-pyscript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pyplugger-for-pyscript/tags/1.0/PyPluggerForPyScript.php

    r2720913 r2721068  
    1212 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    1313 */
    14 wp_register_script('pyPlugger-Script-ID', 'https://pyscript.net/alpha/pyscript.js', array(), null, true);
    1514
    16 wp_register_style('pPlugger-Style-ID', 'https://pyscript.net/alpha/pyscript.css', array(), null);
     15function pyPluggerFix_1_0() {
     16  wp_enqueue_script('pyPlugger-Script-ID', 'https://pyscript.net/alpha/pyscript.js', array(), null, true);
    1717
    18 wp_enqueue_script('pyPlugger-Script-ID', 'https://pyscript.net/alpha/pyscript.js', array(), null, true);
     18  wp_enqueue_style('pPlugger-Style-ID', 'https://pyscript.net/alpha/pyscript.css', array(), null);
    1919
    20 wp_enqueue_style('pPlugger-Style-ID', 'https://pyscript.net/alpha/pyscript.css', array(), null);
     20}
    2121
     22add_action( 'wp_enqueue_scripts', 'pyPluggerFix_1_0' );
    2223add_filter('run_wptexturize', '__return_false');
    2324
  • pyplugger-for-pyscript/trunk/PyPluggerForPyScript.php

    r2720914 r2721068  
    1212 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    1313 */
    14 wp_register_script('pyPlugger-Script-ID', 'https://pyscript.net/alpha/pyscript.js', array(), null, true);
    1514
    16 wp_register_style('pPlugger-Style-ID', 'https://pyscript.net/alpha/pyscript.css', array(), null);
     15function pyPluggerFix_1_0() {
     16  wp_enqueue_script('pyPlugger-Script-ID', 'https://pyscript.net/alpha/pyscript.js', array(), null, true);
    1717
    18 wp_enqueue_script('pyPlugger-Script-ID', 'https://pyscript.net/alpha/pyscript.js', array(), null, true);
     18  wp_enqueue_style('pPlugger-Style-ID', 'https://pyscript.net/alpha/pyscript.css', array(), null);
    1919
    20 wp_enqueue_style('pPlugger-Style-ID', 'https://pyscript.net/alpha/pyscript.css', array(), null);
     20}
    2121
     22add_action( 'wp_enqueue_scripts', 'pyPluggerFix_1_0' );
    2223add_filter('run_wptexturize', '__return_false');
    2324
Note: See TracChangeset for help on using the changeset viewer.