|
@@ -10,13 +10,13 @@ |
|
|
block discarded – undo |
|
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
|
|
Please login to merge, or discard this patch.