Changeset 2501344
- Timestamp:
- 03/22/2021 09:39:26 PM (5 years ago)
- Location:
- woo-mainstem
- Files:
-
- 11 added
- 3 edited
-
tags/1.1.1/includes/admin.php (modified) (1 diff)
-
tags/1.1.2 (added)
-
tags/1.1.2/MainStemLogo.png (added)
-
tags/1.1.2/includes (added)
-
tags/1.1.2/includes/admin.php (added)
-
tags/1.1.2/includes/rest-api.php (added)
-
tags/1.1.2/languages (added)
-
tags/1.1.2/languages/mainstem-pt_BR.mo (added)
-
tags/1.1.2/languages/mainstem-pt_BR.po (added)
-
tags/1.1.2/languages/mainstem.pot (added)
-
tags/1.1.2/mainstem.php (added)
-
tags/1.1.2/readme.txt (added)
-
trunk/mainstem.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-mainstem/tags/1.1.1/includes/admin.php
r2225719 r2501344 248 248 $orderby = 'id'; 249 249 $order = 'desc'; 250 250 251 251 // If orderby is set, use this as the sort column 252 252 if (!empty($_GET['orderby'])) { -
woo-mainstem/trunk/mainstem.php
r2225717 r2501344 6 6 * Author: MainStem 7 7 * Author URI: https://www.mainstem.io 8 * Version: 1.1. 18 * Version: 1.1.2 9 9 * Text Domain: mainstem 10 10 * Domain Path: /languages … … 13 13 */ 14 14 15 if ( ! defined( 'ABSPATH' )) {16 exit; // Exit if accessed directly.15 if (!defined('ABSPATH')) { 16 exit; // Exit if accessed directly. 17 17 } 18 18 … … 20 20 * Plugin constants. 21 21 */ 22 define( 'MAINSTEN_MAIN_FILE', __FILE__);23 define( 'MAINSTEN_API_KEY_OPTION', 'MainStemAPIKey');24 define( 'MAINSTEM_REST_API_NS', 'mainstem/v1');22 define('MAINSTEN_MAIN_FILE', __FILE__); 23 define('MAINSTEN_API_KEY_OPTION', 'MainStemAPIKey'); 24 define('MAINSTEM_REST_API_NS', 'mainstem/v1'); 25 25 26 26 /** 27 27 * Set the installation hook and includes. 28 28 */ 29 function mainstem_main_hooks() { 30 register_activation_hook( __FILE__, 'mainstem_activate' ); 29 function mainstem_main_hooks() 30 { 31 register_activation_hook(__FILE__, 'mainstem_activate'); 31 32 32 add_action( 'init', 'mainstem_load_textdomain');33 add_action('init', 'mainstem_load_textdomain'); 33 34 34 require_once __DIR__ . '/includes/admin.php';35 require_once __DIR__ . '/includes/rest-api.php';35 require_once __DIR__ . '/includes/admin.php'; 36 require_once __DIR__ . '/includes/rest-api.php'; 36 37 } 37 add_action( 'plugins_loaded', 'mainstem_main_hooks', 9);38 add_action('plugins_loaded', 'mainstem_main_hooks', 9); 38 39 39 40 /** 40 41 * Create the WP Option for the API Key. 41 42 */ 42 function mainstem_activate() { 43 add_option( MAINSTEN_API_KEY_OPTION, '' ); 43 function mainstem_activate() 44 { 45 add_option(MAINSTEN_API_KEY_OPTION, ''); 44 46 } 45 47 … … 47 49 * Load plugin textdomain. 48 50 */ 49 function mainstem_load_textdomain() { 50 load_plugin_textdomain( 'mainstem', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 51 function mainstem_load_textdomain() 52 { 53 load_plugin_textdomain('mainstem', false, dirname(plugin_basename(__FILE__)) . '/languages'); 51 54 } -
woo-mainstem/trunk/readme.txt
r2225717 r2501344 3 3 Tags: mainstem, woocommerce 4 4 Requires at least: 5.0 5 Tested up to: 5. 3.26 Stable tag: 1.1. 15 Tested up to: 5.7 6 Stable tag: 1.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.