|
@@ -161,7 +161,7 @@ discard block |
|
|
block discarded – undo |
|
161
|
161
|
* @param object|string $post The post object.
|
|
162
|
162
|
* @param string $post_type The post type.
|
|
163
|
163
|
*
|
|
164
|
|
- * @return object Returns filtered package info as an object.
|
|
|
164
|
+ * @return string Returns filtered package info as an object.
|
|
165
|
165
|
*/
|
|
166
|
166
|
function geodir_post_package_info( $package_info, $post = '', $post_type = '' ) {
|
|
167
|
167
|
$package_info['pid'] = 0;
|
|
@@ -2513,7 +2513,7 @@ discard block |
|
|
block discarded – undo |
|
2513
|
2513
|
*
|
|
2514
|
2514
|
* @since 1.5.0
|
|
2515
|
2515
|
*
|
|
2516
|
|
- * @return True if WPML is active else False.
|
|
|
2516
|
+ * @return boolean if WPML is active else False.
|
|
2517
|
2517
|
*/
|
|
2518
|
2518
|
function geodir_is_wpml() {
|
|
2519
|
2519
|
if (class_exists('SitePress') && function_exists('icl_object_id')) {
|
|
@@ -2588,7 +2588,6 @@ discard block |
|
|
block discarded – undo |
|
2588
|
2588
|
* @since 1.6.16 Sync reviews if sync comments allowed.
|
|
2589
|
2589
|
*
|
|
2590
|
2590
|
* @param int $post_id The Post ID.
|
|
2591
|
|
- * @param string $lang Language code for translating post.
|
|
2592
|
2591
|
* @param array $request_info The post details in an array.
|
|
2593
|
2592
|
*/
|
|
2594
|
2593
|
function geodir_wpml_duplicate_listing($post_id, $request_info) {
|
|
@@ -2675,7 +2674,7 @@ discard block |
|
|
block discarded – undo |
|
2675
|
2674
|
* @param int $master_post_id Original Post ID.
|
|
2676
|
2675
|
* @param int $tr_post_id Translation Post ID.
|
|
2677
|
2676
|
* @param string $lang Language code for translating post.
|
|
2678
|
|
- * @return bool True for success, False for fail.
|
|
|
2677
|
+ * @return boolean|null True for success, False for fail.
|
|
2679
|
2678
|
*/
|
|
2680
|
2679
|
function geodir_icl_duplicate_taxonomies($master_post_id, $tr_post_id, $lang) {
|
|
2681
|
2680
|
global $sitepress, $wpdb;
|
|
@@ -2918,8 +2917,6 @@ discard block |
|
|
block discarded – undo |
|
2918
|
2917
|
*
|
|
2919
|
2918
|
* @since 1.6.16
|
|
2920
|
2919
|
*
|
|
2921
|
|
- * @param string $post_type WP post type or WP texonomy. Ex: gd_place.
|
|
2922
|
|
- * @param bool $taxonomy Whether $post_type is taxonomy or not.
|
|
2923
|
2920
|
* @return bool True if review star disabled, otherwise false.
|
|
2924
|
2921
|
*/
|
|
2925
|
2922
|
function geodir_rating_disabled_post_types() {
|
|
@@ -3191,7 +3188,7 @@ discard block |
|
|
block discarded – undo |
|
3191
|
3188
|
* @param string $element_type Use post, page, {custom post type name}, nav_menu, nav_menu_item, category, tag, etc.
|
|
3192
|
3189
|
* You can also pass 'any', to let WPML guess the type, but this will only work for posts.
|
|
3193
|
3190
|
* @param bool $return_original_if_missing Optional, default is FALSE. If set to true it will always return a value (the original value, if translation is missing).
|
|
3194
|
|
- * @param string|NULL $language_code Optional, default is NULL. If missing, it will use the current language.
|
|
|
3191
|
+ * @param string|NULL $ulanguage_code Optional, default is NULL. If missing, it will use the current language.
|
|
3195
|
3192
|
* If set to a language code, it will return a translation for that language code or
|
|
3196
|
3193
|
* the original if the translation is missing and $return_original_if_missing is set to TRUE.
|
|
3197
|
3194
|
*
|