Plugin Directory

Changeset 1958621


Ignore:
Timestamp:
10/18/2018 01:31:22 PM (7 years ago)
Author:
gtanyware
Message:

Version 2.0.1 - bug fixes

Location:
easycoder/trunk
Files:
6 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • easycoder/trunk/easycoder.js

    r1958084 r1958621  
    590590      }
    591591    };
    592     script.src = 'https://easycoder.software/public/rest.php/plugins/' + list.join();
     592    script.src = '/rest//plugins/' + list.join();
    593593    head.appendChild(script);
    594594  },
  • easycoder/trunk/easycoder.php

    r1958084 r1958621  
    11<?php
    2    /**
    3    * Plugin Name: EasyCoder
    4    * Plugin URI: https://easycoder.software
    5    * Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
    6    * Version: 2.0.0
    7    * Author: EasyCoder Software
    8    */
    9    
    10    // The EasyCoder library
    11    function easycoder_enqueue_script() {   
    12       wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ ) . 'easycoder-min.js', array(), '2.0.0');
    13    }
     2    /**
     3    * Plugin Name: EasyCoder
     4    * Plugin URI: https://easycoder.software
     5    * Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
     6    * Version: 2.0.1
     7    * Author: EasyCoder Software
     8    */
    149
    15    add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
     10    register_activation_hook( __FILE__, 'set_uri' );
     11   
     12    function set_uri() {
     13        $here = $_SERVER['SCRIPT_URI'];
     14        $here = substr($here, 0, strrpos($here, 'wp-admin'));
     15        $there = $here.'wp-content/plugins/easycoder/rest.php';
     16        $text = file_get_contents('../wp-content/plugins/easycoder/easycoder-temp.js');
     17        $text = str_replace('/rest/', $there, $text);
     18        file_put_contents('../wp-content/plugins/easycoder/easycoder-min.js', $text);
     19    }
    1620
    17 ?>
     21    // The EasyCoder library
     22    function easycoder_enqueue_script() {   
     23        wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ ) . 'easycoder-min.js', array(), '2.0.1');
     24    }
     25
     26    add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
  • easycoder/trunk/readme.txt

    r1958084 r1958621  
    4747== Changelog ==
    4848
     49= 2.0.1 18-oct-2018 =
     50* Bug fixes.
     51
    4952= 2.0.0 17-oct-2018 =
    5053* New pluggable architecture.
Note: See TracChangeset for help on using the changeset viewer.