@@ -10,13 +10,13 @@ |
||
10 | 10 | |
11 | 11 | // Page titles translatable CPT names |
12 | 12 | function geodir_kelo_title_translation( $args) { |
13 | - if(function_exists('geodir_is_geodir_page') && geodir_is_geodir_page('preview')){ |
|
14 | - $args['title'] = __(stripslashes_deep(esc_html($_POST['post_title'])),'geodirectory'); |
|
15 | - }elseif(function_exists('geodir_is_geodir_page')){ |
|
16 | - $args['title'] = __($args['title'],'geodirectory'); |
|
17 | - } |
|
13 | + if(function_exists('geodir_is_geodir_page') && geodir_is_geodir_page('preview')){ |
|
14 | + $args['title'] = __(stripslashes_deep(esc_html($_POST['post_title'])),'geodirectory'); |
|
15 | + }elseif(function_exists('geodir_is_geodir_page')){ |
|
16 | + $args['title'] = __($args['title'],'geodirectory'); |
|
17 | + } |
|
18 | 18 | |
19 | - return $args; |
|
19 | + return $args; |
|
20 | 20 | } |
21 | 21 | add_filter( 'kleo_title_args', 'geodir_kelo_title_translation', 10, 1 ); |
22 | 22 |
@@ -9,15 +9,15 @@ |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | // Page titles translatable CPT names |
12 | -function geodir_kelo_title_translation( $args) { |
|
13 | - if(function_exists('geodir_is_geodir_page') && geodir_is_geodir_page('preview')){ |
|
14 | - $args['title'] = __(stripslashes_deep(esc_html($_POST['post_title'])),'geodirectory'); |
|
15 | - }elseif(function_exists('geodir_is_geodir_page')){ |
|
16 | - $args['title'] = __($args['title'],'geodirectory'); |
|
12 | +function geodir_kelo_title_translation($args) { |
|
13 | + if (function_exists('geodir_is_geodir_page') && geodir_is_geodir_page('preview')) { |
|
14 | + $args['title'] = __(stripslashes_deep(esc_html($_POST['post_title'])), 'geodirectory'); |
|
15 | + }elseif (function_exists('geodir_is_geodir_page')) { |
|
16 | + $args['title'] = __($args['title'], 'geodirectory'); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | return $args; |
20 | 20 | } |
21 | -add_filter( 'kleo_title_args', 'geodir_kelo_title_translation', 10, 1 ); |
|
21 | +add_filter('kleo_title_args', 'geodir_kelo_title_translation', 10, 1); |
|
22 | 22 | |
23 | 23 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | function geodir_kelo_title_translation( $args) { |
13 | 13 | if(function_exists('geodir_is_geodir_page') && geodir_is_geodir_page('preview')){ |
14 | 14 | $args['title'] = __(stripslashes_deep(esc_html($_POST['post_title'])),'geodirectory'); |
15 | - }elseif(function_exists('geodir_is_geodir_page')){ |
|
15 | + } elseif(function_exists('geodir_is_geodir_page')){ |
|
16 | 16 | $args['title'] = __($args['title'],'geodirectory'); |
17 | 17 | } |
18 | 18 |