Plugin Directory

Changeset 2501344


Ignore:
Timestamp:
03/22/2021 09:39:26 PM (5 years ago)
Author:
mainstem
Message:

Update to v 1.1.2 including support for WordPress 5.7

Location:
woo-mainstem
Files:
11 added
3 edited

Legend:

Unmodified
Added
Removed
  • woo-mainstem/tags/1.1.1/includes/admin.php

    r2225719 r2501344  
    248248        $orderby = 'id';
    249249        $order = 'desc';
    250        
     250
    251251        // If orderby is set, use this as the sort column
    252252        if (!empty($_GET['orderby'])) {
  • woo-mainstem/trunk/mainstem.php

    r2225717 r2501344  
    66 * Author:      MainStem
    77 * Author URI:  https://www.mainstem.io
    8  * Version:     1.1.1
     8 * Version:     1.1.2
    99 * Text Domain: mainstem
    1010 * Domain Path: /languages
     
    1313 */
    1414
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit; // Exit if accessed directly.
     15if (!defined('ABSPATH')) {
     16    exit; // Exit if accessed directly.
    1717}
    1818
     
    2020 * Plugin constants.
    2121 */
    22 define( 'MAINSTEN_MAIN_FILE', __FILE__ );
    23 define( 'MAINSTEN_API_KEY_OPTION', 'MainStemAPIKey' );
    24 define( 'MAINSTEM_REST_API_NS', 'mainstem/v1' );
     22define('MAINSTEN_MAIN_FILE', __FILE__);
     23define('MAINSTEN_API_KEY_OPTION', 'MainStemAPIKey');
     24define('MAINSTEM_REST_API_NS', 'mainstem/v1');
    2525
    2626/**
    2727 * Set the installation hook and includes.
    2828 */
    29 function mainstem_main_hooks() {
    30     register_activation_hook( __FILE__, 'mainstem_activate' );
     29function mainstem_main_hooks()
     30{
     31    register_activation_hook(__FILE__, 'mainstem_activate');
    3132
    32     add_action( 'init', 'mainstem_load_textdomain' );
     33    add_action('init', 'mainstem_load_textdomain');
    3334
    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';
    3637}
    37 add_action( 'plugins_loaded', 'mainstem_main_hooks', 9 );
     38add_action('plugins_loaded', 'mainstem_main_hooks', 9);
    3839
    3940/**
    4041 * Create the WP Option for the API Key.
    4142 */
    42 function mainstem_activate() {
    43     add_option( MAINSTEN_API_KEY_OPTION, '' );
     43function mainstem_activate()
     44{
     45    add_option(MAINSTEN_API_KEY_OPTION, '');
    4446}
    4547
     
    4749 * Load plugin textdomain.
    4850 */
    49 function mainstem_load_textdomain() {
    50     load_plugin_textdomain( 'mainstem', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     51function mainstem_load_textdomain()
     52{
     53    load_plugin_textdomain('mainstem', false, dirname(plugin_basename(__FILE__)) . '/languages');
    5154}
  • woo-mainstem/trunk/readme.txt

    r2225717 r2501344  
    33Tags: mainstem, woocommerce
    44Requires at least: 5.0
    5 Tested up to: 5.3.2
    6 Stable tag: 1.1.1
     5Tested up to: 5.7
     6Stable tag: 1.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.