Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../inc/utilitie...
File: wpml-languages.class.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class WPML_Languages
[3] Fix | Delete
*
[4] Fix | Delete
* @package wpml-core
[5] Fix | Delete
*/
[6] Fix | Delete
class WPML_Languages extends WPML_SP_And_PT_User {
[7] Fix | Delete
[8] Fix | Delete
/** @var WPML_Term_Translation $term_translation */
[9] Fix | Delete
private $term_translation;
[10] Fix | Delete
[11] Fix | Delete
/** @var WPML_Query_Utils $query_utils */
[12] Fix | Delete
private $query_utils;
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* @param WPML_Term_Translation $term_translation
[16] Fix | Delete
* @param SitePress $sitepress
[17] Fix | Delete
* @param WPML_Post_Translation $post_translation
[18] Fix | Delete
*/
[19] Fix | Delete
public function __construct( &$term_translation, &$sitepress, &$post_translation ) {
[20] Fix | Delete
parent::__construct( $post_translation, $sitepress );
[21] Fix | Delete
$this->term_translation = &$term_translation;
[22] Fix | Delete
$this->query_utils = $sitepress->get_query_utils();
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* @param WP_Query $wp_query
[27] Fix | Delete
* @param WP_Query $_wp_query_back
[28] Fix | Delete
* @param WP_Query $saved_query
[29] Fix | Delete
*
[30] Fix | Delete
* @return array
[31] Fix | Delete
*/
[32] Fix | Delete
public function get_ls_translations( $wp_query, $_wp_query_back, $saved_query ) {
[33] Fix | Delete
list( $taxonomy, $term_id ) = $this->extract_tax_archive_data( $wp_query );
[34] Fix | Delete
if ( $taxonomy && $term_id ) {
[35] Fix | Delete
if ( $this->sitepress->is_translated_taxonomy( $taxonomy ) ) {
[36] Fix | Delete
$icl_taxonomy = 'tax_' . $taxonomy;
[37] Fix | Delete
$trid = $this->term_translation->trid_from_tax_and_id( $term_id, $taxonomy );
[38] Fix | Delete
$translations = $this->sitepress->get_element_translations( $trid, $icl_taxonomy, false );
[39] Fix | Delete
} elseif ( 'post_format' === $taxonomy ) {
[40] Fix | Delete
$translations = $this->get_post_format_translations( $taxonomy, $term_id );
[41] Fix | Delete
} else {
[42] Fix | Delete
$translations[ $this->sitepress->get_current_language() ] = (object) array(
[43] Fix | Delete
'translation_id' => 0,
[44] Fix | Delete
'language_code' => $this->sitepress->get_default_language(),
[45] Fix | Delete
'original' => 1,
[46] Fix | Delete
'name' => $taxonomy,
[47] Fix | Delete
'term_id' => $term_id
[48] Fix | Delete
);
[49] Fix | Delete
}
[50] Fix | Delete
} elseif ( $wp_query->is_archive() && ! empty( $wp_query->posts ) ) {
[51] Fix | Delete
$translations = array();
[52] Fix | Delete
} elseif ( $wp_query->is_attachment() ) {
[53] Fix | Delete
$trid = $this->post_translation->get_element_trid( $wp_query->get_queried_object_id() );
[54] Fix | Delete
$translations = $this->sitepress->get_element_translations( $trid, 'post_attachment' );
[55] Fix | Delete
} elseif ( $wp_query->is_page()
[56] Fix | Delete
|| ( 'page' === $this->sitepress->get_wp_api()->get_option( 'show_on_front' )
[57] Fix | Delete
&& ( isset( $saved_query->queried_object_id )
[58] Fix | Delete
&& $saved_query->queried_object_id == $this->sitepress->get_wp_api()->get_option( 'page_on_front' )
[59] Fix | Delete
|| ( isset( $saved_query->queried_object_id )
[60] Fix | Delete
&& $saved_query->queried_object_id == $this->sitepress->get_wp_api()->get_option( 'page_for_posts' ) ) ) )
[61] Fix | Delete
) {
[62] Fix | Delete
$trid = $this->sitepress->get_element_trid( $wp_query->get_queried_object_id(), 'post_page' );
[63] Fix | Delete
$translations = $this->sitepress->get_element_translations( $trid, 'post_page' );
[64] Fix | Delete
} elseif ( $wp_query->is_singular() && ! empty( $wp_query->posts )
[65] Fix | Delete
|| ( isset( $_wp_query_back->query['name'] ) && isset( $_wp_query_back->query['post_type'] ) )
[66] Fix | Delete
|| isset( $_wp_query_back->query['p'] )
[67] Fix | Delete
) {
[68] Fix | Delete
$pid = ! empty( $saved_query->post->ID ) ? $saved_query->post->ID : ( ! empty( $saved_query->query['p'] ) ? $saved_query->query['p'] : 0 );
[69] Fix | Delete
$trid = $this->post_translation->get_element_trid( $pid );
[70] Fix | Delete
$post_type = get_post_type( $pid );
[71] Fix | Delete
$translations = $this->sitepress->get_element_translations( $trid, 'post_' . $post_type );
[72] Fix | Delete
} else {
[73] Fix | Delete
$wp_query->is_singular = false;
[74] Fix | Delete
$wp_query->is_archive = false;
[75] Fix | Delete
$wp_query->is_category = false;
[76] Fix | Delete
$wp_query->is_404 = true;
[77] Fix | Delete
$translations = null;
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
$translations = apply_filters( 'wpml_get_ls_translations', $translations, $wp_query );
[81] Fix | Delete
return array( $translations, $wp_query );
[82] Fix | Delete
}
[83] Fix | Delete
[84] Fix | Delete
/**
[85] Fix | Delete
* @param array $lang
[86] Fix | Delete
* @param array $translations
[87] Fix | Delete
* @param bool $icl_lso_link_empty
[88] Fix | Delete
* @param bool $skip_lang
[89] Fix | Delete
* @param string $link_empty_to
[90] Fix | Delete
* @param WPML_LS_Display_As_Translated_Link $display_as_translated_ls_link
[91] Fix | Delete
*
[92] Fix | Delete
* @return array
[93] Fix | Delete
*/
[94] Fix | Delete
public function add_tax_url_to_ls_lang( $lang, $translations, $icl_lso_link_empty, $skip_lang, $link_empty_to, WPML_LS_Display_As_Translated_Link $display_as_translated_ls_link ) {
[95] Fix | Delete
if ( isset( $translations[ $lang['code'] ] ) ) {
[96] Fix | Delete
// force the taxonomy id adjustment to not modify this
[97] Fix | Delete
$queried_object = $this->sitepress->get_wp_api()->get_queried_object();
[98] Fix | Delete
$taxonomy = isset( $queried_object->taxonomy ) ? $queried_object->taxonomy : null;
[99] Fix | Delete
[100] Fix | Delete
if ( $taxonomy ) {
[101] Fix | Delete
$lang['translated_url'] = $this->sitepress->get_wp_api()
[102] Fix | Delete
->get_term_link( (int) $translations[ $lang['code'] ]->term_id, $taxonomy );
[103] Fix | Delete
$lang['missing'] = 0;
[104] Fix | Delete
[105] Fix | Delete
if ( 'post_format' === $taxonomy ) {
[106] Fix | Delete
$lang['translated_url'] = $this->sitepress->convert_url( $lang['translated_url'], $lang['code'] );
[107] Fix | Delete
}
[108] Fix | Delete
}
[109] Fix | Delete
}
[110] Fix | Delete
[111] Fix | Delete
if ( ! isset( $translations[ $lang['code'] ] ) || ! isset( $taxonomy ) ) {
[112] Fix | Delete
[113] Fix | Delete
$translated_url = $display_as_translated_ls_link->get_url( $translations, $lang['code'] );
[114] Fix | Delete
if ( $translated_url ) {
[115] Fix | Delete
$lang['translated_url'] = $translated_url;
[116] Fix | Delete
$lang['missing'] = 0;
[117] Fix | Delete
} else {
[118] Fix | Delete
[119] Fix | Delete
$args = array(
[120] Fix | Delete
'skip_lang' => $skip_lang,
[121] Fix | Delete
'link_empty' => $icl_lso_link_empty,
[122] Fix | Delete
'override_missing' => false,
[123] Fix | Delete
'link_empty_to' => $link_empty_to,
[124] Fix | Delete
);
[125] Fix | Delete
[126] Fix | Delete
list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
[127] Fix | Delete
}
[128] Fix | Delete
}
[129] Fix | Delete
[130] Fix | Delete
return array( $lang, $skip_lang );
[131] Fix | Delete
}
[132] Fix | Delete
[133] Fix | Delete
/**
[134] Fix | Delete
* @param array $lang
[135] Fix | Delete
* @param object|WP_User $author_data
[136] Fix | Delete
* @param bool $icl_lso_link_empty
[137] Fix | Delete
* @param bool $skip_lang
[138] Fix | Delete
* @param bool $link_empty_to
[139] Fix | Delete
*
[140] Fix | Delete
* @return array
[141] Fix | Delete
*/
[142] Fix | Delete
public function add_author_url_to_ls_lang( $lang, $fallback_lang, $author_data, $icl_lso_link_empty, $skip_lang, $link_empty_to ) {
[143] Fix | Delete
$post_type = get_query_var( 'post_type' ) ? get_query_var( 'post_type' ) : 'post';
[144] Fix | Delete
if ( $this->query_utils->author_query_has_posts( $post_type, $author_data, $lang['code'], $fallback_lang ) ) {
[145] Fix | Delete
$lang['translated_url'] = $this->sitepress->convert_url( $this->sitepress->get_wp_api()->get_author_posts_url( $author_data->ID ), $lang['code'] );
[146] Fix | Delete
$lang['missing'] = 0;
[147] Fix | Delete
} else {
[148] Fix | Delete
[149] Fix | Delete
$args = array(
[150] Fix | Delete
'skip_lang' => $skip_lang,
[151] Fix | Delete
'link_empty' => $icl_lso_link_empty,
[152] Fix | Delete
'override_missing' => false,
[153] Fix | Delete
'link_empty_to' => $link_empty_to,
[154] Fix | Delete
);
[155] Fix | Delete
[156] Fix | Delete
list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
[157] Fix | Delete
}
[158] Fix | Delete
[159] Fix | Delete
return array( $lang, $skip_lang );
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
/**
[163] Fix | Delete
* @param array $lang
[164] Fix | Delete
* @param string $fallback_lang
[165] Fix | Delete
* @param WP_Query $current_query
[166] Fix | Delete
* @param bool $icl_lso_link_empty
[167] Fix | Delete
* @param bool $skip_lang
[168] Fix | Delete
* @param string $link_empty_to
[169] Fix | Delete
*
[170] Fix | Delete
* @return array
[171] Fix | Delete
*/
[172] Fix | Delete
public function add_date_or_cpt_url_to_ls_lang( $lang, $fallback_lang, $current_query, $icl_lso_link_empty, $skip_lang, $link_empty_to ) {
[173] Fix | Delete
list( $year, $month, $day ) = $this->extract_date_data_from_query( $current_query );
[174] Fix | Delete
$query_helper = new WPML_WP_Query_API( $current_query );
[175] Fix | Delete
$post_type = ( $_type = $query_helper->get_first_post_type() ) ? $_type : 'post';
[176] Fix | Delete
$lang_code = $lang['code'];
[177] Fix | Delete
$mark_missing = false;
[178] Fix | Delete
$override = false;
[179] Fix | Delete
if ( $current_query->is_year() && $this->query_utils->archive_query_has_posts( $lang_code,
[180] Fix | Delete
$fallback_lang,
[181] Fix | Delete
$year,
[182] Fix | Delete
null,
[183] Fix | Delete
null,
[184] Fix | Delete
$post_type )
[185] Fix | Delete
) {
[186] Fix | Delete
$date_archive_url = $this->sitepress->get_wp_api()->get_year_link( $year );
[187] Fix | Delete
} elseif ( $current_query->is_month() && $this->query_utils->archive_query_has_posts( $lang_code,
[188] Fix | Delete
$fallback_lang,
[189] Fix | Delete
$year,
[190] Fix | Delete
$month,
[191] Fix | Delete
null,
[192] Fix | Delete
$post_type )
[193] Fix | Delete
) {
[194] Fix | Delete
$date_archive_url = $this->sitepress->get_wp_api()->get_month_link( $year, $month );
[195] Fix | Delete
} elseif ( $current_query->is_day() && $this->query_utils->archive_query_has_posts( $lang_code, $fallback_lang, $year, $month, $day, $post_type ) ) {
[196] Fix | Delete
$date_archive_url = $this->sitepress->get_wp_api()->get_day_link( $year, $month, $day );
[197] Fix | Delete
} else if ( ! empty( $current_query->query_vars['post_type'] ) ) {
[198] Fix | Delete
$override = ! $this->sitepress->is_translated_post_type( $post_type );
[199] Fix | Delete
$mark_missing = true;
[200] Fix | Delete
if ( ! $override && $this->query_utils->archive_query_has_posts( $lang_code, $fallback_lang, null, null, null, $post_type ) ) {
[201] Fix | Delete
$url = $this->sitepress->convert_url( $this->sitepress->get_wp_api()->get_post_type_archive_link( $post_type ), $lang_code );
[202] Fix | Delete
$lang['translated_url'] = $this->sitepress->adjust_cpt_in_url( $url, $post_type, $lang_code );
[203] Fix | Delete
$mark_missing = false;
[204] Fix | Delete
}
[205] Fix | Delete
} else {
[206] Fix | Delete
$mark_missing = true;
[207] Fix | Delete
}
[208] Fix | Delete
[209] Fix | Delete
if ( $mark_missing ) {
[210] Fix | Delete
[211] Fix | Delete
$args = array(
[212] Fix | Delete
'skip_lang' => $skip_lang,
[213] Fix | Delete
'link_empty' => $icl_lso_link_empty,
[214] Fix | Delete
'override_missing' => $override,
[215] Fix | Delete
'link_empty_to' => $link_empty_to,
[216] Fix | Delete
);
[217] Fix | Delete
[218] Fix | Delete
list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
[219] Fix | Delete
[220] Fix | Delete
} elseif ( isset( $date_archive_url ) ) {
[221] Fix | Delete
$lang['translated_url'] = $this->sitepress->convert_url( $date_archive_url, $lang_code );
[222] Fix | Delete
}
[223] Fix | Delete
[224] Fix | Delete
return array( $lang, $skip_lang );
[225] Fix | Delete
}
[226] Fix | Delete
[227] Fix | Delete
public function get_ls_language( $lang_code, $current_language, $language_array = false ) {
[228] Fix | Delete
$ls_language = $language_array
[229] Fix | Delete
? $language_array : $this->sitepress->get_language_details( $lang_code );
[230] Fix | Delete
$native_name = $this->sitepress->get_display_language_name( $lang_code, $lang_code );
[231] Fix | Delete
if ( ! $native_name ) {
[232] Fix | Delete
$native_name = $ls_language['english_name'];
[233] Fix | Delete
}
[234] Fix | Delete
$ls_language['native_name'] = $native_name;
[235] Fix | Delete
$translated_name = $this->sitepress->get_display_language_name( $lang_code, $current_language );
[236] Fix | Delete
if ( ! $translated_name ) {
[237] Fix | Delete
$translated_name = $ls_language['english_name'];
[238] Fix | Delete
}
[239] Fix | Delete
$ls_language['translated_name'] = $translated_name;
[240] Fix | Delete
if ( isset( $ls_language['translated_url'] ) ) {
[241] Fix | Delete
$ls_language['url'] = $ls_language['translated_url'];
[242] Fix | Delete
unset( $ls_language['translated_url'] );
[243] Fix | Delete
} else {
[244] Fix | Delete
$ls_language['url'] = $this->sitepress->language_url( $lang_code );
[245] Fix | Delete
}
[246] Fix | Delete
[247] Fix | Delete
$flag_url = $this->sitepress->get_flag_url( $lang_code );
[248] Fix | Delete
[249] Fix | Delete
$ls_language['country_flag_url'] = $flag_url;
[250] Fix | Delete
$ls_language['active'] = $current_language === $lang_code ? '1' : 0;
[251] Fix | Delete
$ls_language['language_code'] = $lang_code;
[252] Fix | Delete
[253] Fix | Delete
unset( $ls_language['display_name'], $ls_language['english_name'] );
[254] Fix | Delete
[255] Fix | Delete
return $ls_language;
[256] Fix | Delete
}
[257] Fix | Delete
[258] Fix | Delete
public function sort_ls_languages( $w_active_languages, $template_args ) {
[259] Fix | Delete
// sort languages according to parameters
[260] Fix | Delete
$order_by = isset( $template_args['orderby'] ) ? $template_args['orderby'] : 'custom';
[261] Fix | Delete
$order = isset( $template_args['order'] ) ? $template_args['order'] : 'asc';
[262] Fix | Delete
[263] Fix | Delete
switch ( $order_by ) {
[264] Fix | Delete
case 'id':
[265] Fix | Delete
uasort( $w_active_languages, array( $this, 'sort_by_id' ) );
[266] Fix | Delete
break;
[267] Fix | Delete
case 'code':
[268] Fix | Delete
krsort( $w_active_languages );
[269] Fix | Delete
break;
[270] Fix | Delete
case 'name':
[271] Fix | Delete
uasort( $w_active_languages, array( $this, 'sort_by_name' ) );
[272] Fix | Delete
break;
[273] Fix | Delete
case 'custom':
[274] Fix | Delete
default:
[275] Fix | Delete
$w_active_languages = $this->sitepress->order_languages( $w_active_languages );
[276] Fix | Delete
}
[277] Fix | Delete
[278] Fix | Delete
return $order !== 'asc' ? array_reverse( $w_active_languages, true ) : $w_active_languages;
[279] Fix | Delete
}
[280] Fix | Delete
[281] Fix | Delete
/**
[282] Fix | Delete
* @param array $lang
[283] Fix | Delete
* @param array $args with keys below
[284] Fix | Delete
* - `skip_lang` bool|int
[285] Fix | Delete
* - `link_empty` bool|int
[286] Fix | Delete
* - `link_empty_to` string a URL possibly with a {%lang} placeholder (e.g. http://example.tld/{%lang}/notify-no-translation/)
[287] Fix | Delete
* - `override_missing` bool if true language will always be shown ( Example: untranslated CPT archives)
[288] Fix | Delete
*
[289] Fix | Delete
* @return array
[290] Fix | Delete
*/
[291] Fix | Delete
private function maybe_mark_lang_missing( $lang, $args ) {
[292] Fix | Delete
[293] Fix | Delete
$args = array_merge( array(
[294] Fix | Delete
'skip_lang' => 0,
[295] Fix | Delete
'link_empty' => 0,
[296] Fix | Delete
'link_empty_to' => '',
[297] Fix | Delete
'override_missing' => false,
[298] Fix | Delete
),
[299] Fix | Delete
$args
[300] Fix | Delete
);
[301] Fix | Delete
[302] Fix | Delete
if ( $args['link_empty'] ) {
[303] Fix | Delete
if ( ! empty( $args['link_empty_to'] ) ) {
[304] Fix | Delete
$lang['translated_url'] = str_replace( '{%lang}',
[305] Fix | Delete
$lang['code'],
[306] Fix | Delete
$args['link_empty_to'] );
[307] Fix | Delete
} else {
[308] Fix | Delete
$lang['translated_url'] = $this->sitepress->language_url( $lang['code'] );
[309] Fix | Delete
}
[310] Fix | Delete
} else {
[311] Fix | Delete
if ( $this->sitepress->get_current_language() != $lang['code'] ) {
[312] Fix | Delete
$args['skip_lang'] = true;
[313] Fix | Delete
}
[314] Fix | Delete
}
[315] Fix | Delete
$lang['missing'] = $args['override_missing'] ? 0 : 1;
[316] Fix | Delete
[317] Fix | Delete
return array( $lang, $args['skip_lang'] );
[318] Fix | Delete
}
[319] Fix | Delete
[320] Fix | Delete
/**
[321] Fix | Delete
* @param WP_Query $query
[322] Fix | Delete
*
[323] Fix | Delete
* @return array()
[324] Fix | Delete
*/
[325] Fix | Delete
private function extract_date_data_from_query( $query ) {
[326] Fix | Delete
$year = ! empty( $query->query_vars['year'] )
[327] Fix | Delete
? $query->query_vars['year']
[328] Fix | Delete
: ( ! empty( $query->query_vars['m'] )
[329] Fix | Delete
? substr( $query->query_vars['m'], 0, 4 ) : null );
[330] Fix | Delete
$month = ! empty( $query->query_vars['monthnum'] )
[331] Fix | Delete
? $query->query_vars['monthnum']
[332] Fix | Delete
: ( ! empty( $query->query_vars['m'] )
[333] Fix | Delete
? substr( $query->query_vars['m'], 4, 2 ) : null );
[334] Fix | Delete
$day = ! empty( $query->query_vars['day'] )
[335] Fix | Delete
? $query->query_vars['day']
[336] Fix | Delete
: ( ! empty( $query->query_vars['m'] )
[337] Fix | Delete
? substr( $query->query_vars['m'], 6, 2 ) : null );
[338] Fix | Delete
[339] Fix | Delete
return array( $year, $month, $day );
[340] Fix | Delete
}
[341] Fix | Delete
[342] Fix | Delete
/**
[343] Fix | Delete
* @param WP_Query $wp_query
[344] Fix | Delete
*
[345] Fix | Delete
* @return array()
[346] Fix | Delete
*/
[347] Fix | Delete
private function extract_tax_archive_data( $wp_query ) {
[348] Fix | Delete
$taxonomy = false;
[349] Fix | Delete
$term_id = false;
[350] Fix | Delete
if ( $wp_query->is_category() ) {
[351] Fix | Delete
$taxonomy = 'category';
[352] Fix | Delete
$term_id = $wp_query->get( 'cat' );
[353] Fix | Delete
} elseif ( $wp_query->is_tag() ) {
[354] Fix | Delete
$taxonomy = 'post_tag';
[355] Fix | Delete
$term_id = $wp_query->get( 'tag_id' );
[356] Fix | Delete
} elseif ( $wp_query->is_tax() ) {
[357] Fix | Delete
$term = $wp_query->get_queried_object();
[358] Fix | Delete
$taxonomy = $term->taxonomy;
[359] Fix | Delete
$term_id = $term->term_id;
[360] Fix | Delete
}
[361] Fix | Delete
[362] Fix | Delete
return array( $taxonomy, $term_id );
[363] Fix | Delete
}
[364] Fix | Delete
[365] Fix | Delete
/**
[366] Fix | Delete
* @param $taxonomy
[367] Fix | Delete
* @param $term_id
[368] Fix | Delete
*
[369] Fix | Delete
* @return array
[370] Fix | Delete
*/
[371] Fix | Delete
private function get_post_format_translations( $taxonomy, $term_id ) {
[372] Fix | Delete
$translations = array();
[373] Fix | Delete
[374] Fix | Delete
foreach ( $this->sitepress->get_active_languages() as $code => $active_language ) {
[375] Fix | Delete
$translations[ $code ] = (object) array(
[376] Fix | Delete
'translation_id' => 0,
[377] Fix | Delete
'language_code' => $code,
[378] Fix | Delete
'original' => 1,
[379] Fix | Delete
'name' => $taxonomy,
[380] Fix | Delete
'term_id' => $term_id
[381] Fix | Delete
);
[382] Fix | Delete
}
[383] Fix | Delete
[384] Fix | Delete
return $translations;
[385] Fix | Delete
}
[386] Fix | Delete
[387] Fix | Delete
private function sort_by_id( $array_a, $array_b ) {
[388] Fix | Delete
[389] Fix | Delete
return (int) $array_a['id'] > (int) $array_b['id'] ? - 1 : 1;
[390] Fix | Delete
}
[391] Fix | Delete
[392] Fix | Delete
private function sort_by_name( $array_a, $array_b ) {
[393] Fix | Delete
[394] Fix | Delete
return $array_a['translated_name'] > $array_b['translated_name'] ? 1 : - 1;
[395] Fix | Delete
}
[396] Fix | Delete
}
[397] Fix | Delete
[398] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function