Merge pull request #15011 from woocommerce/fix/14999

Add abspath checks
This commit is contained in:
Mike Jolley 2017-05-23 15:57:35 +01:00 committed by GitHub
commit db012b3a12
82 changed files with 345 additions and 3 deletions

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
return array(
'AU' => array(
'currency_code' => 'AUD',

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['AR'] = array(
'C' => __( 'Ciudad Aut&oacute;noma de Buenos Aires', 'woocommerce' ),
'B' => __( 'Buenos Aires', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['AU'] = array(
'ACT' => __( 'Australian Capital Territory', 'woocommerce' ),
'NSW' => __( 'New South Wales', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['BD'] = array(
'BAG' => __( 'Bagerhat', 'woocommerce' ),
'BAN' => __( 'Bandarban', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['BG'] = array(
'BG-01' => __( 'Blagoevgrad', 'woocommerce' ),
'BG-02' => __( 'Burgas', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['BO'] = array(
'B' => __( 'Chuquisaca', 'woocommerce' ),
'H' => __( 'Beni', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['BR'] = array(
'AC' => __( 'Acre', 'woocommerce' ),
'AL' => __( 'Alagoas', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['CA'] = array(
'AB' => __( 'Alberta', 'woocommerce' ),
'BC' => __( 'British Columbia', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['CN'] = array(
'CN1' => __( 'Yunnan / &#20113;&#21335;', 'woocommerce' ),
'CN2' => __( 'Beijing / &#21271;&#20140;', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['ES'] = array(
'C' => __( 'A Coru&ntilde;a', 'woocommerce' ),
'VI' => __( 'Araba/&Aacute;lava', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['GR'] = array(
'I' => __( 'Αττική', 'woocommerce' ),
'A' => __( 'Ανατολική Μακεδονία και Θράκη', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['HK'] = array(
'HONG KONG' => __( 'Hong Kong Island', 'woocommerce' ),
'KOWLOON' => __( 'Kowloon', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['HU'] = array(
'BK' => __( 'Bács-Kiskun', 'woocommerce' ),
'BE' => __( 'Békés', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['ID'] = array(
'AC' => __( 'Daerah Istimewa Aceh', 'woocommerce' ),
'SU' => __( 'Sumatera Utara', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['IE'] = array(
'CE' => __( 'Clare', 'woocommerce' ),
'CK' => __( 'Cork', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['IN'] = array(
'AP' => __( 'Andhra Pradesh', 'woocommerce' ),
'AR' => __( 'Arunachal Pradesh', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['IR'] = array(
'KHZ' => __( 'Khuzestan (خوزستان)', 'woocommerce' ),
'THR' => __( 'Tehran (تهران)', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['IT'] = array(
'AG' => __( 'Agrigento', 'woocommerce' ),
'AL' => __( 'Alessandria', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['JP'] = array(
'JP01' => __( 'Hokkaido', 'woocommerce' ),
'JP02' => __( 'Aomori', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['MX'] = array(
'Distrito Federal' => __( 'Distrito Federal', 'woocommerce' ),
'Jalisco' => __( 'Jalisco', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['MY'] = array(
'JHR' => __( 'Johor', 'woocommerce' ),
'KDH' => __( 'Kedah', 'woocommerce' ),

View File

@ -10,6 +10,10 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['NG'] = array(
'AB' => __( 'Abia', 'woocommerce' ),
'FC' => __( 'Abuja', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['NP'] = array(
'BAG' => __( 'Bagmati', 'woocommerce' ),
'BHE' => __( 'Bheri', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['NZ'] = array(
'NL' => __( 'Northland', 'woocommerce' ),
'AK' => __( 'Auckland', 'woocommerce' ),
@ -27,4 +31,3 @@ $states['NZ'] = array(
'OT' => __( 'Otago', 'woocommerce' ),
'SL' => __( 'Southland', 'woocommerce' ),
);

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['PE'] = array(
'CAL' => __( 'El Callao', 'woocommerce' ),
'LMA' => __( 'Municipalidad Metropolitana de Lima', 'woocommerce' ),

View File

@ -8,6 +8,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['PH'] = array(
'ABR' => __( 'Abra', 'woocommerce' ),
'AGN' => __( 'Agusan del Norte', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['PK'] = array(
'JK' => __( 'Azad Kashmir', 'woocommerce' ),
'BA' => __( 'Balochistan', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['TH'] = array(
'TH-37' => __( 'Amnat Charoen (&#3629;&#3635;&#3609;&#3634;&#3592;&#3648;&#3592;&#3619;&#3636;&#3597;)', 'woocommerce' ),
'TH-15' => __( 'Ang Thong (&#3629;&#3656;&#3634;&#3591;&#3607;&#3629;&#3591;)', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['TR'] = array(
'TR01' => __( 'Adana', 'woocommerce' ),
'TR02' => __( 'Ad&#305;yaman', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['US'] = array(
'AL' => __( 'Alabama', 'woocommerce' ),
'AK' => __( 'Alaska', 'woocommerce' ),

View File

@ -9,6 +9,10 @@
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$states['ZA'] = array(
'EC' => __( 'Eastern Cape', 'woocommerce' ),
'FS' => __( 'Free State', 'woocommerce' ),

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Handle data for the current customers session
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Abstract Settings API Class
*

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Abstract Widget Class
*

View File

@ -2,7 +2,6 @@
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wc-metabox closed">
<h3 class="fixed">

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$hidden_order_itemmeta = apply_filters( 'woocommerce_hidden_order_itemmeta', array(
'_qty',
'_tax_class',

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div data-taxonomy="<?php echo esc_attr( $attribute->get_taxonomy() ); ?>" class="woocommerce_attribute wc-metabox closed <?php echo esc_attr( implode( ' ', $metabox_class ) ); ?>" rel="<?php echo esc_attr( $attribute->get_position() ); ?>">
<h3>
<a href="#" class="remove_row delete"><?php _e( 'Remove', 'woocommerce' ); ?></a>

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="advanced_product_data" class="panel woocommerce_options_panel hidden">
<div class="options_group hide_if_external">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="product_attributes" class="panel wc-metaboxes-wrapper hidden">
<div class="toolbar toolbar-top">
<span class="expand-close">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="general_product_data" class="panel woocommerce_options_panel">
<div class="options_group show_if_external">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="inventory_product_data" class="panel woocommerce_options_panel hidden">
<div class="options_group">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="linked_product_data" class="panel woocommerce_options_panel hidden">
<div class="options_group">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="panel-wrap product_data">
<span class="type_box hidden"> &mdash;

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="shipping_product_data" class="panel woocommerce_options_panel hidden">
<div class="options_group">
<?php

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="variable_product_options" class="panel wc-metaboxes-wrapper hidden">
<div id="variable_product_options_inner">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<tr>
<td class="sort"></td>
<td class="file_name">

View File

@ -1,3 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<tr>
<td class="file_name">
<input type="text" class="input_text" placeholder="<?php esc_attr_e( 'File name', 'woocommerce' ); ?>" name="_wc_variation_file_names[<?php echo $variation_id; ?>][]" value="<?php echo esc_attr( $file['name'] ); ?>" />

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Main Command for WooCommere CLI.
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* WC API to WC CLI Bridge.
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Hooks up our system status tools to the CLI.
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Allows updates via CLI.
*

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.
@ -287,4 +291,3 @@ class Simplify_PaymentsApi
}
}

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Copyright (c) 2013 - 2015 MasterCard International Incorporated
* All rights reserved.

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Cart Shortcode
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Checkout Shortcode
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* My Account Shortcodes
*

View File

@ -1,4 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Order Tracking Shortcode
*

View File

@ -6,6 +6,10 @@
* @subpackage Utilities
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class to validate and to work with IPv6 addresses
*