Version Description
(Released: June 22, 2022) = * Bug Fixed: Undefined index notice in the archive when other CPT is registered. (Prop: deb)
Download this release
Release Info
Developer | catchthemes |
Plugin | Essential Content Types |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.2
README.txt
CHANGED
@@ -201,6 +201,9 @@ Not so easy way (via FTP) :
|
|
201 |
|
202 |
== Changelog ==
|
203 |
|
|
|
|
|
|
|
204 |
= 2.1 (Released: May 20, 2022) =
|
205 |
* Bug Fixed: Body class issue
|
206 |
* Compatibility check up to version 6.0
|
201 |
|
202 |
== Changelog ==
|
203 |
|
204 |
+
= 2.2 (Released: June 22, 2022) =
|
205 |
+
* Bug Fixed: Undefined index notice in the archive when other CPT is registered. (Prop: deb)
|
206 |
+
|
207 |
= 2.1 (Released: May 20, 2022) =
|
208 |
* Bug Fixed: Body class issue
|
209 |
* Compatibility check up to version 6.0
|
essential-content-types.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: Essential Content Types
|
17 |
* Plugin URI: https://catchplugins.com/plugins/essential-content-types/
|
18 |
* Description: Essential Content Types allows you to feature the impressive content through different content/post types on your website just the way you want it. These content/post types are missed by the themes in WordPress Theme Directory as the feature falls more towards the plugins’ territory.
|
19 |
-
* Version: 2.
|
20 |
* Author: Catch Plugins
|
21 |
* Author URI: https://catchplugins.com
|
22 |
* License: GPL-3.0+
|
@@ -228,7 +228,12 @@ add_action( 'wp_head', 'ect_check_archive_title' );
|
|
228 |
function ect_modify_archive_title( $title ) {
|
229 |
$title_label = '<span class="some-class">%1$s</span>%2$s';
|
230 |
$type = ect_get_archive_post_type();
|
231 |
-
|
|
|
|
|
|
|
|
|
|
|
232 |
$default_title = array(
|
233 |
'ect_service_title' => esc_html( 'Services', 'essential-content-types' ),
|
234 |
'jetpack_testimonial_title' => esc_html( 'Testimonial', 'essential-content-types' ),
|
@@ -271,6 +276,8 @@ function ect_get_archive_post_type() {
|
|
271 |
'jetpack-testimonial' => 'jetpack_testimonial_title',
|
272 |
'ect-service' => 'ect_service_title',
|
273 |
);
|
274 |
-
|
275 |
-
|
|
|
|
|
276 |
}
|
16 |
* Plugin Name: Essential Content Types
|
17 |
* Plugin URI: https://catchplugins.com/plugins/essential-content-types/
|
18 |
* Description: Essential Content Types allows you to feature the impressive content through different content/post types on your website just the way you want it. These content/post types are missed by the themes in WordPress Theme Directory as the feature falls more towards the plugins’ territory.
|
19 |
+
* Version: 2.2
|
20 |
* Author: Catch Plugins
|
21 |
* Author URI: https://catchplugins.com
|
22 |
* License: GPL-3.0+
|
228 |
function ect_modify_archive_title( $title ) {
|
229 |
$title_label = '<span class="some-class">%1$s</span>%2$s';
|
230 |
$type = ect_get_archive_post_type();
|
231 |
+
|
232 |
+
if ( ! $type ) {
|
233 |
+
// Bail if type is not from ECT.
|
234 |
+
return;
|
235 |
+
}
|
236 |
+
|
237 |
$default_title = array(
|
238 |
'ect_service_title' => esc_html( 'Services', 'essential-content-types' ),
|
239 |
'jetpack_testimonial_title' => esc_html( 'Testimonial', 'essential-content-types' ),
|
276 |
'jetpack-testimonial' => 'jetpack_testimonial_title',
|
277 |
'ect-service' => 'ect_service_title',
|
278 |
);
|
279 |
+
|
280 |
+
if ( isset( $type[ $post_type ]) ) {
|
281 |
+
return $type[ $post_type ];
|
282 |
+
}
|
283 |
}
|
languages/essential-content-types-fr_FR.mo
CHANGED
Binary file
|
languages/essential-content-types-fr_FR.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Essential Content Types\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
|
7 |
-
"POT-Creation-Date: 2022-
|
8 |
-
"PO-Revision-Date: 2022-
|
9 |
"Last-Translator: Charles Girardin <girardin.charles.57@gmail.com>\n"
|
10 |
"Language-Team: Catch Plugins <info@catchplugins.com>\n"
|
11 |
"Language: fr_FR\n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
16 |
-
"X-Generator: Poedit 3.
|
17 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;_x;"
|
18 |
"esc_html_e;esc_html__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_n_noop:1,2;"
|
19 |
"__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Essential Content Types\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
|
7 |
+
"POT-Creation-Date: 2022-06-22 22:23-0400\n"
|
8 |
+
"PO-Revision-Date: 2022-06-22 22:23-0400\n"
|
9 |
"Last-Translator: Charles Girardin <girardin.charles.57@gmail.com>\n"
|
10 |
"Language-Team: Catch Plugins <info@catchplugins.com>\n"
|
11 |
"Language: fr_FR\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
16 |
+
"X-Generator: Poedit 3.1\n"
|
17 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;_x;"
|
18 |
"esc_html_e;esc_html__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_n_noop:1,2;"
|
19 |
"__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
languages/essential-content-types.pot
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: Essential Content Types\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
|
8 |
-
"POT-Creation-Date: 2022-
|
9 |
"PO-Revision-Date: 2016-12-12 09:23-0500\n"
|
10 |
"Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
|
11 |
"Language-Team: Catch Plugins <info@catchplugins.com>\n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
-
"X-Generator: Poedit 3.
|
18 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;_x;"
|
19 |
"esc_html_e;esc_html__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_n_noop:1,2;"
|
20 |
"__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: Essential Content Types\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
|
8 |
+
"POT-Creation-Date: 2022-06-22 22:23-0400\n"
|
9 |
"PO-Revision-Date: 2016-12-12 09:23-0500\n"
|
10 |
"Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
|
11 |
"Language-Team: Catch Plugins <info@catchplugins.com>\n"
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
+
"X-Generator: Poedit 3.1\n"
|
18 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;_x;"
|
19 |
"esc_html_e;esc_html__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_n_noop:1,2;"
|
20 |
"__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|