Plugin Directory

Changeset 2280223


Ignore:
Timestamp:
04/09/2020 01:43:19 PM (6 years ago)
Author:
therealwebdisrupt
Message:

1.0.2 was a misfire, this is the bad data filtering

Location:
task-runner
Files:
68 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • task-runner/trunk/README.txt

    r2280212 r2280223  
    33Tags: easy, build, out, script, commands, better, cli, one-click, setup, install, activate, web disrupt
    44Tested up to: 5.4
    5 Stable tag: 1.0.2
     5Stable tag: 1.0.3
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6565== Changelog ==
    6666
    67 = 1.0.2 =
     67= 1.0.3 =
    6868* Increased filtering against bad data for getting library items
    6969= 1.0.1 =
  • task-runner/trunk/base/components/editor.js

    r2150878 r2280223  
    6262        let libraryHtml = "";
    6363        for (i=0; i < data.length; i++) {
    64             let libraryData = ((data[i].split("---"))[1]).trim().replace(/\r?\n/g, ":").split(":");         
    65             let item = [];
    66             for (x=0; x < libraryData.length; x+=2) {
    67                 item[libraryData[x].trim().toLowerCase()] = libraryData[x+1];
     64            if(data[i].indexOf("---") !== -1){ // Does not contain meta data Updated 1.0.3
     65                let libraryData = ((data[i].split("---"))[1]).trim().replace(/\r?\n/g, ":").split(":");         
     66                let item = [];
     67                for (x=0; x < libraryData.length; x+=2) {
     68                    item[libraryData[x].trim().toLowerCase()] = libraryData[x+1];
     69                }
     70                    libraryHtml += "<div data-tasks='"+data[i]+"' class='wdtr-library-item'>";
     71                    libraryHtml += "<h2>"+item.name+"</h2>";
     72                    libraryHtml += "<div class='wdtr-library-version'>"+item.version+"</div>";
     73                    libraryHtml += "<div class='wdtr-library-description'>" + item.description + "</div>";
     74                    libraryHtml += "<div class='wdtr-library-action-bar'>";
     75                    libraryHtml += "<button class='wdtr-library-action-run'> Run </button>";
     76                    libraryHtml += "<button class='wdtr-library-action-edit'> Edit </button>";
     77                    libraryHtml += "</div>";
     78                    libraryHtml += "</div>";
    6879            }
    69                 libraryHtml += "<div data-tasks='"+data[i]+"' class='wdtr-library-item'>";
    70                 libraryHtml += "<h2>"+item.name+"</h2>";
    71                 libraryHtml += "<div class='wdtr-library-version'>"+item.version+"</div>";
    72                 libraryHtml += "<div class='wdtr-library-description'>" + item.description + "</div>";
    73                 libraryHtml += "<div class='wdtr-library-action-bar'>";
    74                 libraryHtml += "<button class='wdtr-library-action-run'> Run </button>";
    75                 libraryHtml += "<button class='wdtr-library-action-edit'> Edit </button>";
    76                 libraryHtml += "</div>";
    77                 libraryHtml += "</div>";
    7880        }
    7981        // Draw Library
  • task-runner/trunk/task-runner.php

    r2280212 r2280223  
    44 * Description: Powerful task automator that can be used to make repeatable tasks and build processes inside WordPress.
    55 * Plugin URI: https://www.webdisrupt.com/task-runner/
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Author: Web Disrupt
    88 * Author URI: https://webdisrupt.com
     
    7575     * Main Constructor that sets up all static data associated with this plugin.
    7676     *
    77      * @since  1.0.2
     77     * @since  1.0.3
    7878     * @return void
    7979     */
     
    8484            "name"            => "Task Runner",
    8585            "slug"            => "task-runner",
    86             "version"         => "1.0.2",
     86            "version"         => "1.0.3",
    8787            "author"          => "Web Disrupt",
    8888            "description"     => "Powerful task automator that can be used to make repeatable tasks and build processes inside WordPress.",
Note: See TracChangeset for help on using the changeset viewer.