Plugin Directory

Changeset 2279772


Ignore:
Timestamp:
04/09/2020 12:46:45 AM (6 years ago)
Author:
therealwebdisrupt
Message:

Fix broken plugin manipulation scripts

Location:
task-runner/trunk
Files:
5 edited

Legend:

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

    r2150878 r2279772  
    22Contributors: therealwebdisrupt
    33Tags: easy, build, out, script, commands, better, cli, one-click, setup, install, activate, web disrupt
    4 Tested up to: 5.2.2
    5 Stable tag: 1.0.0
     4Tested up to: 5.4
     5Stable tag: 1.0.1
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040* One-click sales Funnel build outs via Elementor Unlimited library
    4141* Checking, alerting, and fixing security vulnerabilities
    42 * Automation trigger to run scripts.
     42* Automation triggers to run scripts.
    4343
    4444 = Mission =
    4545I have created this plugin to help me facilitate the standardization of WordPress
    4646tweaking, building, best practices, and settings. To make it easy for agencies/business owners to
    47 create, update, and maintain their own Wordpress website.
     47create, update, and maintain their own Wordpress websites hassle free.
    4848
    4949 = This plugin needs you =
     
    6565== Changelog ==
    6666
     67= 1.0.1 =
     68* Fixed sanitation issues that were cause plugin manipulation issues.
     69* Updated test script
     70* Added downward scrolling to console to track long scripts as they execute
    6771= 1.0.0 =
    6872* Initial release.
  • task-runner/trunk/base/components/console.js

    r2150878 r2279772  
    4949WDTasker.console.writeLog = function(logType, message){
    5050    let guid = WDTasker.helpers.guid();
    51     jQuery(".wdtr-console-window").append("<div id='"+guid+"' class='wdtr-"+logType+"'>"+message+"</div>");
     51    var consoleWindow = jQuery(".wdtr-console-window");
     52    consoleWindow.append("<div id='"+guid+"' class='wdtr-"+logType+"'>"+message+"</div>");
     53    consoleWindow.scrollTop(consoleWindow[0].scrollHeight);
    5254    return guid;
    5355}
  • task-runner/trunk/library/wdtr-test-runner.txt

    r2150878 r2279772  
    11---
    22Name: WDTR Test Runner
    3 Version: 1.0.0
     3Version: 1.0.1
    44Description: What is the end result of this task.
    55The Key to an awesome site is ythe fact that nybody can change he world. It is onlt possible to change it if you have the power.
     
    3030console log "*** Test Plugin Functions ***"
    3131var testPluginName = "hello-dolly/hello.php"
     32plugin status {{testPluginName}}
    3233plugin install {{testPluginName}}
    3334plugin status {{testPluginName}}
     
    3738plugin status {{testPluginName}}
    3839plugin delete {{testPluginName}}
    39 
     40plugin status {{testPluginName}}
    4041# Test multi-plugin functions
    4142console log "*** Test Plugins Functions ***"
     
    4849theme install {{testThemeName}}
    4950theme activate {{testThemeName}}
    50 theme current
     51var newTheme = theme current
     52# v1.0.1 Added to Test if new theme installed successfully
     53console comment "Current active theme is {{newTheme}}"
    5154theme activate {{currentTheme}}
    5255theme delete {{testThemeName}}
     56# v1.0.1 Added to Test of old theme is reinstalled successfully
     57console comment "Current active theme is {{currentTheme}}"
    5358
    5459# Test WordPress Page functions
  • task-runner/trunk/modules/WordPress/wordpress.php

    r2150878 r2279772  
    4343     */
    4444  public function install_plugin(){
    45     $pluginSlug = explode("/", sanitize_file_name($_POST['options'][0]));
    46     $pluginSlug = $pluginSlug[0];
     45    $pluginSlug = explode("/", $_POST['options'][0]);
     46    $pluginSlug = sanitize_text_field(($pluginSlug[0]));
    4747    echo admin_url('update.php?action=install-plugin&plugin='.$pluginSlug.'&_wpnonce='.wp_create_nonce("install-plugin_".$pluginSlug));
    4848    wp_die();
     
    5656     */
    5757  public function activate_plugin(){
    58     $pluginFullName = sanitize_file_name($_POST['options'][0]);
    59     echo admin_url('plugins.php?action=activate&plugin='.$pluginFullName.'&_wpnonce='.wp_create_nonce("activate-plugin_".$pluginFullName));
     58    $pluginFullName = sanitize_text_field($_POST['options'][0]);
     59    echo admin_url('plugins.php?action=activate&plugin='.$pluginFullName.'&plugin_status=all&_wpnonce='.wp_create_nonce("activate-plugin_".$pluginFullName));
    6060    wp_die();
    6161  }
     
    6868     */
    6969  public function deactivate_plugin(){
    70     $pluginFullName = sanitize_file_name($_POST['options'][0]);
    71     echo admin_url('plugins.php?action=deactivate&plugin='.$pluginFullName.'&_wpnonce='.wp_create_nonce("deactivate-plugin_".$pluginFullName));
     70    $pluginFullName = sanitize_text_field($_POST['options'][0]);
     71    echo admin_url('plugins.php?action=deactivate&plugin='.$pluginFullName.'&plugin_status=all&_wpnonce='.wp_create_nonce("deactivate-plugin_".$pluginFullName));
    7272    wp_die();
    7373  }
     
    113113      if(is_plugin_active($_post_id)) { $_message .= "<span style='color:#228822'>Enabled</span>"; $_value = true; } else { $_message .= "Disabled"; $_value = false; }
    114114    } else { // If it doesn't exists
    115       $_message = $_post_id." does not exist.";
     115      $_message = $_post_id ." does not exist.";
    116116      $_value = false;
    117117    }
  • task-runner/trunk/task-runner.php

    r2150878 r2279772  
    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.0
     6 * Version: 1.0.1
    77 * Author: Web Disrupt
    88 * Author URI: https://webdisrupt.com
     
    8484            "name"            => "Task Runner",
    8585            "slug"            => "task-runner",
    86             "version"         => "1.0.0",
     86            "version"         => "1.0.1",
    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.