Version Description
- Fixes a notice about trying to get property of a non-object
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.0 to 1.8.1
- Main.php +4 -5
- readme.txt +2 -0
Main.php
CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
|
|
7 |
Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: ultimate-faqs
|
10 |
-
Version: 1.8.
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
@@ -332,16 +332,15 @@ function EWD_UFAQ_Show_Dashboard_Link() {
|
|
332 |
|
333 |
function UFAQ_Leave_Reply_Text($translation, $text, $domain) {
|
334 |
global $post;
|
335 |
-
if ($post->post_type == 'ufaq') {
|
336 |
$translations = &get_translations_for_domain( $domain);
|
337 |
-
|
338 |
-
return $translations->translate( 'Comment on this FAQ' );
|
339 |
-
}
|
340 |
}
|
341 |
return $translation;
|
342 |
}
|
343 |
add_filter('gettext', 'UFAQ_Leave_Reply_Text', 10, 4);
|
344 |
|
|
|
345 |
function UFAQ_Post_Edit_Styles( $hook_suffix ){
|
346 |
$cpt = 'ufaq';
|
347 |
if( in_array( $hook_suffix, array('post.php', 'post-new.php') ) ){
|
7 |
Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: ultimate-faqs
|
10 |
+
Version: 1.8.1
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
332 |
|
333 |
function UFAQ_Leave_Reply_Text($translation, $text, $domain) {
|
334 |
global $post;
|
335 |
+
if ($text == 'Leave a Reply' and (is_object($post) and $post->post_type == 'ufaq')) {
|
336 |
$translations = &get_translations_for_domain( $domain);
|
337 |
+
return $translations->translate( 'Comment on this FAQ' );
|
|
|
|
|
338 |
}
|
339 |
return $translation;
|
340 |
}
|
341 |
add_filter('gettext', 'UFAQ_Leave_Reply_Text', 10, 4);
|
342 |
|
343 |
+
|
344 |
function UFAQ_Post_Edit_Styles( $hook_suffix ){
|
345 |
$cpt = 'ufaq';
|
346 |
if( in_array( $hook_suffix, array('post.php', 'post-new.php') ) ){
|
readme.txt
CHANGED
@@ -270,6 +270,8 @@ Video 3 - FAQs Ordering
|
|
270 |
|
271 |
|
272 |
== Changelog ==
|
|
|
|
|
273 |
|
274 |
= 1.8.0 =
|
275 |
- <strong>This is a big update with many new features, corrections, revised admin styling, etc., so please take caution and test before updating on a live site</strong>
|
270 |
|
271 |
|
272 |
== Changelog ==
|
273 |
+
= 1.8.1 =
|
274 |
+
- Fixes a notice about trying to get property of a non-object
|
275 |
|
276 |
= 1.8.0 =
|
277 |
- <strong>This is a big update with many new features, corrections, revised admin styling, etc., so please take caution and test before updating on a live site</strong>
|