Use short ABSPATH check in i18n

This commit is contained in:
Claudio Sanches 2018-03-05 17:10:12 -03:00
parent 4a9c4be1a2
commit b2392aadb9
36 changed files with 36 additions and 108 deletions

View File

@ -8,9 +8,7 @@
* @version 2.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
return array(
'AF' => array(

View File

@ -8,9 +8,7 @@
* @version 2.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
return array(
'AF' => __( 'Afghanistan', 'woocommerce' ),

View File

@ -6,9 +6,7 @@
* @version 3.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
return array(
'AU' => array(

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['AO'] = array(
'BGO' => __( 'Bengo', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['AR'] = array(
'C' => __( 'Ciudad Autónoma de Buenos Aires', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['AU'] = array(
'ACT' => __( 'Australian Capital Territory', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['BD'] = array(
'BAG' => __( 'Bagerhat', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['BG'] = array(
'BG-01' => __( 'Blagoevgrad', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['BO'] = array(
'B' => __( 'Chuquisaca', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['BR'] = array(
'AC' => __( 'Acre', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['CA'] = array(
'AB' => __( 'Alberta', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['CH'] = array(
'AG' => __( 'Aargau', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['CN'] = array(
'CN1' => __( 'Yunnan / 云南', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['ES'] = array(
'C' => __( 'A Coruña', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['GR'] = array(
'I' => __( 'Αττική', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['HK'] = array(
'HONG KONG' => __( 'Hong Kong Island', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['HU'] = array(
'BK' => __( 'Bács-Kiskun', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['ID'] = array(
'AC' => __( 'Daerah Istimewa Aceh', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['IE'] = array(
'CW' => __( 'Carlow', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['IN'] = array(
'AP' => __( 'Andhra Pradesh', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['IR'] = array(
'KHZ' => __( 'Khuzestan (خوزستان)', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['IT'] = array(
'AG' => __( 'Agrigento', 'woocommerce' ),

View File

@ -11,9 +11,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['JP'] = array(
'JP01' => __( 'Hokkaido', 'woocommerce' ),

View File

@ -14,9 +14,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['MD'] = array(
'C' => __( 'Chișinău', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['MX'] = array(
'DF' => __( 'Ciudad de México', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['MY'] = array(
'JHR' => __( 'Johor', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['NG'] = array(
'AB' => __( 'Abia', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['NP'] = array(
'BAG' => __( 'Bagmati', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['NZ'] = array(
'NL' => __( 'Northland', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['PE'] = array(
'CAL' => __( 'El Callao', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['PH'] = array(
'ABR' => __( 'Abra', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['PK'] = array(
'JK' => __( 'Azad Kashmir', 'woocommerce' ),

View File

@ -11,9 +11,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['RO'] = array(
'AB' => __( 'Alba', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['TR'] = array(
'TR01' => __( 'Adana', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['US'] = array(
'AL' => __( 'Alabama', 'woocommerce' ),

View File

@ -8,9 +8,7 @@
global $states;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$states['ZA'] = array(
'EC' => __( 'Eastern Cape', 'woocommerce' ),