|
@@ -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;
|
|
@@ -2507,7 +2507,7 @@ discard block |
|
|
block discarded – undo |
|
2507
|
2507
|
*
|
|
2508
|
2508
|
* @since 1.5.0
|
|
2509
|
2509
|
*
|
|
2510
|
|
- * @return True if WPML is active else False.
|
|
|
2510
|
+ * @return boolean if WPML is active else False.
|
|
2511
|
2511
|
*/
|
|
2512
|
2512
|
function geodir_is_wpml() {
|
|
2513
|
2513
|
if (class_exists('SitePress') && function_exists('icl_object_id')) {
|
|
@@ -2583,7 +2583,6 @@ discard block |
|
|
block discarded – undo |
|
2583
|
2583
|
* @since 1.6.25 "geodir_wpml_listing_duplicated" action added.
|
|
2584
|
2584
|
*
|
|
2585
|
2585
|
* @param int $post_id The Post ID.
|
|
2586
|
|
- * @param string $lang Language code for translating post.
|
|
2587
|
2586
|
* @param array $request_info The post details in an array.
|
|
2588
|
2587
|
*/
|
|
2589
|
2588
|
function geodir_wpml_duplicate_listing($post_id, $request_info) {
|
|
@@ -2673,7 +2672,7 @@ discard block |
|
|
block discarded – undo |
|
2673
|
2672
|
* @param int $master_post_id Original Post ID.
|
|
2674
|
2673
|
* @param int $tr_post_id Translation Post ID.
|
|
2675
|
2674
|
* @param string $lang Language code for translating post.
|
|
2676
|
|
- * @return bool True for success, False for fail.
|
|
|
2675
|
+ * @return boolean|null True for success, False for fail.
|
|
2677
|
2676
|
*/
|
|
2678
|
2677
|
function geodir_icl_duplicate_taxonomies($master_post_id, $tr_post_id, $lang) {
|
|
2679
|
2678
|
global $sitepress, $wpdb;
|
|
@@ -2916,8 +2915,6 @@ discard block |
|
|
block discarded – undo |
|
2916
|
2915
|
*
|
|
2917
|
2916
|
* @since 1.6.16
|
|
2918
|
2917
|
*
|
|
2919
|
|
- * @param string $post_type WP post type or WP texonomy. Ex: gd_place.
|
|
2920
|
|
- * @param bool $taxonomy Whether $post_type is taxonomy or not.
|
|
2921
|
2918
|
* @return bool True if review star disabled, otherwise false.
|
|
2922
|
2919
|
*/
|
|
2923
|
2920
|
function geodir_rating_disabled_post_types() {
|
|
@@ -3189,7 +3186,7 @@ discard block |
|
|
block discarded – undo |
|
3189
|
3186
|
* @param string $element_type Use post, page, {custom post type name}, nav_menu, nav_menu_item, category, tag, etc.
|
|
3190
|
3187
|
* You can also pass 'any', to let WPML guess the type, but this will only work for posts.
|
|
3191
|
3188
|
* @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).
|
|
3192
|
|
- * @param string|NULL $language_code Optional, default is NULL. If missing, it will use the current language.
|
|
|
3189
|
+ * @param string|NULL $ulanguage_code Optional, default is NULL. If missing, it will use the current language.
|
|
3193
|
3190
|
* If set to a language code, it will return a translation for that language code or
|
|
3194
|
3191
|
* the original if the translation is missing and $return_original_if_missing is set to TRUE.
|
|
3195
|
3192
|
*
|