|
@@ -131,7 +131,7 @@ discard block |
|
|
block discarded – undo |
|
131
|
131
|
3 => __( 'Custom field deleted.', 'ivycat-ajax-testimonials' ), |
|
132
|
132
|
4 => __( 'Testimonial updated.', 'ivycat-ajax-testimonials' ), |
|
133
|
133
|
/* translators: %s: date and time of the revision */ |
|
134
|
|
- 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Testimonial restored to revision from %s', 'ivycat-ajax-testimonials' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, |
|
|
134
|
+ 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Testimonial restored to revision from %s', 'ivycat-ajax-testimonials' ), wp_post_revision_title( ( int ) $_GET['revision'], false ) ) : false, |
|
135
|
135
|
6 => sprintf( __( 'Testimonial published. <a href="%s">View Testimonial</a>', 'ivycat-ajax-testimonials' ), esc_url( get_permalink( $post->ID ) ) ), |
|
136
|
136
|
7 => __( 'Testimonial saved.', 'ivycat-ajax-testimonials' ), |
|
137
|
137
|
8 => sprintf( __( 'Testimonial submitted. <a target="_blank" href="%s">Preview Testimonial</a>', 'ivycat-ajax-testimonials' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
@@ -200,7 +200,7 @@ discard block |
|
|
block discarded – undo |
|
200
|
200
|
'display' => 'single' |
|
201
|
201
|
) ); |
|
202
|
202
|
extract( apply_filters( 'ic_testimonials_args', $atts ) ); |
|
203
|
|
- $testimonials = apply_filters( |
|
|
203
|
+ $testimonials = apply_filters( |
|
204
|
204
|
'ic_testimonials_data', |
|
205
|
205
|
$this->get_testimonials( 1, $group, $num_words, $more_tag, $ajax_on, $link_testimonials ) |
|
206
|
206
|
); |
|
@@ -222,12 +222,12 @@ discard block |
|
|
block discarded – undo |
|
222
|
222
|
endif; |
|
223
|
223
|
|
|
224
|
224
|
// if more tag is set add the filter |
|
225
|
|
- if (false !== $more_tag ) : |
|
|
225
|
+ if ( false !== $more_tag ) : |
|
226
|
226
|
add_filter( 'excerpt_more', array( $this, 'ivycat_custom_excerpt_more' ) ); |
|
227
|
227
|
endif; |
|
228
|
228
|
|
|
229
|
229
|
// if num words is set add the filter |
|
230
|
|
- if ( false !== $num_words ) : |
|
|
230
|
+ if ( false !== $num_words ) : |
|
231
|
231
|
add_filter( 'excerpt_length', array( $this, 'ivycat_custom_excerpt_length' ), 999 ); |
|
232
|
232
|
endif; |
|
233
|
233
|
|