Changeset 2279772
- Timestamp:
- 04/09/2020 12:46:45 AM (6 years ago)
- Location:
- task-runner/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (3 diffs)
-
base/components/console.js (modified) (1 diff)
-
library/wdtr-test-runner.txt (modified) (4 diffs)
-
modules/WordPress/wordpress.php (modified) (4 diffs)
-
task-runner.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
task-runner/trunk/README.txt
r2150878 r2279772 2 2 Contributors: therealwebdisrupt 3 3 Tags: easy, build, out, script, commands, better, cli, one-click, setup, install, activate, web disrupt 4 Tested up to: 5. 2.25 Stable tag: 1.0. 04 Tested up to: 5.4 5 Stable tag: 1.0.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 * One-click sales Funnel build outs via Elementor Unlimited library 41 41 * Checking, alerting, and fixing security vulnerabilities 42 * Automation trigger to run scripts.42 * Automation triggers to run scripts. 43 43 44 44 = Mission = 45 45 I have created this plugin to help me facilitate the standardization of WordPress 46 46 tweaking, building, best practices, and settings. To make it easy for agencies/business owners to 47 create, update, and maintain their own Wordpress website .47 create, update, and maintain their own Wordpress websites hassle free. 48 48 49 49 = This plugin needs you = … … 65 65 == Changelog == 66 66 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 67 71 = 1.0.0 = 68 72 * Initial release. -
task-runner/trunk/base/components/console.js
r2150878 r2279772 49 49 WDTasker.console.writeLog = function(logType, message){ 50 50 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); 52 54 return guid; 53 55 } -
task-runner/trunk/library/wdtr-test-runner.txt
r2150878 r2279772 1 1 --- 2 2 Name: WDTR Test Runner 3 Version: 1.0. 03 Version: 1.0.1 4 4 Description: What is the end result of this task. 5 5 The 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. … … 30 30 console log "*** Test Plugin Functions ***" 31 31 var testPluginName = "hello-dolly/hello.php" 32 plugin status {{testPluginName}} 32 33 plugin install {{testPluginName}} 33 34 plugin status {{testPluginName}} … … 37 38 plugin status {{testPluginName}} 38 39 plugin delete {{testPluginName}} 39 40 plugin status {{testPluginName}} 40 41 # Test multi-plugin functions 41 42 console log "*** Test Plugins Functions ***" … … 48 49 theme install {{testThemeName}} 49 50 theme activate {{testThemeName}} 50 theme current 51 var newTheme = theme current 52 # v1.0.1 Added to Test if new theme installed successfully 53 console comment "Current active theme is {{newTheme}}" 51 54 theme activate {{currentTheme}} 52 55 theme delete {{testThemeName}} 56 # v1.0.1 Added to Test of old theme is reinstalled successfully 57 console comment "Current active theme is {{currentTheme}}" 53 58 54 59 # Test WordPress Page functions -
task-runner/trunk/modules/WordPress/wordpress.php
r2150878 r2279772 43 43 */ 44 44 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])); 47 47 echo admin_url('update.php?action=install-plugin&plugin='.$pluginSlug.'&_wpnonce='.wp_create_nonce("install-plugin_".$pluginSlug)); 48 48 wp_die(); … … 56 56 */ 57 57 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)); 60 60 wp_die(); 61 61 } … … 68 68 */ 69 69 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)); 72 72 wp_die(); 73 73 } … … 113 113 if(is_plugin_active($_post_id)) { $_message .= "<span style='color:#228822'>Enabled</span>"; $_value = true; } else { $_message .= "Disabled"; $_value = false; } 114 114 } else { // If it doesn't exists 115 $_message = $_post_id ." does not exist.";115 $_message = $_post_id ." does not exist."; 116 116 $_value = false; 117 117 } -
task-runner/trunk/task-runner.php
r2150878 r2279772 4 4 * Description: Powerful task automator that can be used to make repeatable tasks and build processes inside WordPress. 5 5 * Plugin URI: https://www.webdisrupt.com/task-runner/ 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Web Disrupt 8 8 * Author URI: https://webdisrupt.com … … 84 84 "name" => "Task Runner", 85 85 "slug" => "task-runner", 86 "version" => "1.0. 0",86 "version" => "1.0.1", 87 87 "author" => "Web Disrupt", 88 88 "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.