Skip to content

Commit

Permalink
2.0.0.53
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Apr 2, 2019
1 parent 71e67d0 commit 62dbdab
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 35 deletions.
4 changes: 4 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 2.0.0.53 =
* Post author meta info missing closing wrapper div - FIXED
* Meta excerpt not being trimmed, now trimmed to default excerpt length of 55 words - FIXED

= 2.0.0.52 =
* Added some deprecated functions to prevent redeclare function error after update - FIXED
* Bumped PHP min version to 5.6 (new WP standard) - INFO
Expand Down
4 changes: 2 additions & 2 deletions geodirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: GeoDirectory
* Plugin URI: https://wpgeodirectory.com/
* Description: GeoDirectory plugin for WordPress.
* Version: 2.0.0.52
* Version: 2.0.0.53
* Author: AyeCode Ltd
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand All @@ -35,7 +35,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.0.0.52';
public $version = '2.0.0.53';

/**
* GeoDirectory instance.
Expand Down
8 changes: 7 additions & 1 deletion includes/class-geodir-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,16 @@ public static function replace_variable($string = '',$gd_page = ''){
}

if ( strpos( $string, '%%excerpt%%' ) !== false ) {
$post_content = !empty($post->post_content) ? strip_tags( wp_trim_excerpt($post->post_content) ) : '';
$excerpt_length = apply_filters( 'excerpt_length', 55 );
$post_content = !empty($post->post_excerpt) ? strip_tags( $post->post_excerpt ) : '';
if(!$post_content){
$post_content = !empty($post->post_content) ? strip_tags( wp_trim_words($post->post_content, $excerpt_length,'') ) : '';
}
$string = str_replace( "%%excerpt%%",$post_content , $string );
}



if ( strpos( $string, '%%id%%' ) !== false ) {
$string = str_replace( "%%id%%", absint($post->ID), $string );
}
Expand Down
2 changes: 2 additions & 0 deletions includes/custom-fields/output-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2428,6 +2428,8 @@ function geodir_cf_author($html,$location,$cf,$p='',$output=''){
if($output=='' || isset($output['icon']))$html .= '</span>';
if($output=='' || isset($output['value']))$html .= stripslashes( $author_link );

$html .= '</div>';

endif;

}
Expand Down
11 changes: 10 additions & 1 deletion includes/deprecated-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,20 @@ function geodir_is_wpml() {


/**
* @deprecated
* @deprecated 2.0.0
*/
function geodir_count_reviews_by_terms($force_update = false, $post_ID = 0 ){
_deprecated_function( __FUNCTION__, '2.0.0' );
}

/**
* @deprecated 2.0.0
*/
function geodir_wpml_is_post_type_translated($post_type ){
_deprecated_function( __FUNCTION__, '2.0.0' );
}


//
///**
// * @deprecated
Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
60 changes: 30 additions & 30 deletions languages/geodirectory-en_US.po
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
msgid ""
msgstr ""
"Project-Id-Version: GeoDirectory 2.0.0.52\n"
"Project-Id-Version: GeoDirectory 2.0.0.53\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-02 12:59+0100\n"
"PO-Revision-Date: 2019-04-02 12:59+0100\n"
"POT-Creation-Date: 2019-04-02 20:47+0100\n"
"PO-Revision-Date: 2019-04-02 20:47+0100\n"
"Last-Translator: \n"
"Language-Team: AyeCode Ltd <[email protected]>\n"
"Language: en_US\n"
Expand Down Expand Up @@ -9267,117 +9267,117 @@ msgstr ""
msgid "- Monitor the contact system for spam and abuse."
msgstr ""

#: includes/class-geodir-seo.php:420 includes/class-geodir-seo.php:422
#: includes/class-geodir-seo.php:426 includes/class-geodir-seo.php:428
#, php-format
msgid "Near %s"
msgstr ""

#: includes/class-geodir-seo.php:480
#: includes/class-geodir-seo.php:486
msgid "The current post title."
msgstr ""

#: includes/class-geodir-seo.php:481
#: includes/class-geodir-seo.php:487
msgid "The site name from general settings: site title. "
msgstr ""

#: includes/class-geodir-seo.php:482
#: includes/class-geodir-seo.php:488
msgid "The site description from general settings: tagline."
msgstr ""

#: includes/class-geodir-seo.php:483
#: includes/class-geodir-seo.php:489
msgid "The current post excerpt."
msgstr ""

#: includes/class-geodir-seo.php:484
#: includes/class-geodir-seo.php:490
msgid "The separator mostly used in meta titles."
msgstr ""

#: includes/class-geodir-seo.php:485
#: includes/class-geodir-seo.php:491
msgid "Post type singular name."
msgstr ""

#: includes/class-geodir-seo.php:486
#: includes/class-geodir-seo.php:492
msgid "Post type plural name."
msgstr ""

#: includes/class-geodir-seo.php:487
#: includes/class-geodir-seo.php:493
msgid "The current category name."
msgstr ""

#: includes/class-geodir-seo.php:488
#: includes/class-geodir-seo.php:494
msgid "The current post id."
msgstr ""

#: includes/class-geodir-seo.php:495
#: includes/class-geodir-seo.php:501
msgid "The full current location eg: United States, Pennsylvania, Philadelphia"
msgstr ""

#: includes/class-geodir-seo.php:496
#: includes/class-geodir-seo.php:502
msgid "The current viewing location type single name eg: Philadelphia"
msgstr ""

#: includes/class-geodir-seo.php:497
#: includes/class-geodir-seo.php:503
msgid ""
"The full current location prefixed with `in` eg: in United States, "
"Pennsylvania, Philadelphia"
msgstr ""

#: includes/class-geodir-seo.php:498
#: includes/class-geodir-seo.php:504
msgid ""
"The current viewing location type single name prefixed with `in` eg: "
"Philadelphia"
msgstr ""

#: includes/class-geodir-seo.php:499
#: includes/class-geodir-seo.php:505
msgid "The current viewing country eg: United States"
msgstr ""

#: includes/class-geodir-seo.php:500
#: includes/class-geodir-seo.php:506
msgid "The current viewing country prefixed with `in` eg: in United States"
msgstr ""

#: includes/class-geodir-seo.php:501
#: includes/class-geodir-seo.php:507
msgid "The current viewing region eg: Pennsylvania"
msgstr ""

#: includes/class-geodir-seo.php:502
#: includes/class-geodir-seo.php:508
msgid "The current viewing region prefixed with `in` eg: in Pennsylvania"
msgstr ""

#: includes/class-geodir-seo.php:503
#: includes/class-geodir-seo.php:509
msgid "The current viewing city eg: Philadelphia"
msgstr ""

#: includes/class-geodir-seo.php:504
#: includes/class-geodir-seo.php:510
msgid "The current viewing city prefixed with `in` eg: in Philadelphia"
msgstr ""

#: includes/class-geodir-seo.php:511
#: includes/class-geodir-seo.php:517
msgid "The currently used search for term."
msgstr ""

#: includes/class-geodir-seo.php:512
#: includes/class-geodir-seo.php:518
msgid "The currently used search near term."
msgstr ""

#: includes/class-geodir-seo.php:517
#: includes/class-geodir-seo.php:523
msgid "Current page number eg: page 2 of 4"
msgstr ""

#: includes/class-geodir-seo.php:518
#: includes/class-geodir-seo.php:524
msgid "Total pages eg: 101"
msgstr ""

#: includes/class-geodir-seo.php:519
#: includes/class-geodir-seo.php:525
msgid "Current page number eg: 99"
msgstr ""

#: includes/class-geodir-seo.php:524
#: includes/class-geodir-seo.php:530
msgid ""
"Show any custom field by using its field key prefixed with an _underscore"
msgstr ""

#: includes/class-geodir-seo.php:545
#: includes/class-geodir-seo.php:551
msgid "Click to copy"
msgstr ""

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tags: directory plugin, business directory, listings, classifieds, real estate,
Requires at least: 4.5
Requires PHP: 5.6
Tested up to: 5.1
Stable tag: 2.0.0.52
Stable tag: 2.0.0.53


Create a location-based business directory with our plugin, 100% compatible with any theme and page builders. In a few clicks you could be the next Yelp or Tripadvisor.
Expand Down Expand Up @@ -132,6 +132,9 @@ GeoDirectory comes with some dummy data you can use to see how listings look. Yo

== Changelog ==

= 2.0.0.53 =
[GeoDirectory changelog for version 2.0.0.53](http://wpgeodirectory.com/change-logs-v2/#v2.0.0.53).

= 2.0.0.52 =
[GeoDirectory changelog for version 2.0.0.52](http://wpgeodirectory.com/change-logs-v2/#v2.0.0.52).

Expand Down

0 comments on commit 62dbdab

Please sign in to comment.