Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Commit 6b64834

Browse files
committed
Releasing 1.4.2
1 parent be11a67 commit 6b64834

File tree

5 files changed

+52
-47
lines changed

5 files changed

+52
-47
lines changed

categories-for-anspress.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
die;
3030
}
3131

32-
if ( ! version_compare( AP_VERSION, '2.3', '>' ) ) {
32+
if ( ! defined( 'AP_VERSION' ) || ! version_compare( AP_VERSION, '2.3', '>' ) ) {
3333
function ap_category_admin_error_notice() {
3434
echo '<div class="update-nag error"> <p>'.sprintf( __( 'Category extension require AnsPress 2.4-RC or above. Download from Github %shttp://github.com/anspress/anspress%s', 'tags-for-anspress', 'categories-for-anspress' ), '<a target="_blank" href="http://github.com/anspress/anspress">', '</a>' ).'</p></div>';
3535
}
@@ -735,9 +735,10 @@ public function subscribe_btn_action_type($args) {
735735
* @access private
736736
* @return void
737737
*/
738-
739738
function categories_for_anspress() {
740-
$discounts = new Categories_For_AnsPress();
739+
if( apply_filters( 'anspress_load_ext', true, 'categories-for-anspress' ) ){
740+
$categories = new Categories_For_AnsPress();
741+
}
741742
}
742743
add_action( 'plugins_loaded', 'categories_for_anspress' );
743744

languages/categories-for-anspress.pot

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Copyright (C) 2015
1+
# Copyright (C) 2016
22
# This file is distributed under the same license as the package.
33
msgid ""
44
msgstr ""
55
"Project-Id-Version: \n"
66
"Report-Msgid-Bugs-To: "
77
"http://wordpress.org/support/plugin/anspress-question-answer\n"
8-
"POT-Creation-Date: 2015-12-15 05:55:05+00:00\n"
8+
"POT-Creation-Date: 2016-02-27 06:39:50+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12+
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
1515
"X-Generator: grunt-wp-i18n 0.5.0\n"
@@ -31,14 +31,14 @@ msgid ""
3131
"%shttp://github.com/anspress/anspress%s"
3232
msgstr ""
3333

34-
#: categories-for-anspress.php:91 categories-for-anspress.php:450
34+
#: categories-for-anspress.php:91 categories-for-anspress.php:455
3535
#: functions.php:141
3636
msgid "Category"
3737
msgstr ""
3838

3939
#: categories-for-anspress.php:93 categories-for-anspress.php:219
40-
#: categories-for-anspress.php:274 categories-for-anspress.php:533
41-
#: categories-for-anspress.php:536 categories-widget.php:68 functions.php:15
40+
#: categories-for-anspress.php:279 categories-for-anspress.php:538
41+
#: categories-for-anspress.php:541 categories-widget.php:68 functions.php:15
4242
msgid "Categories"
4343
msgstr ""
4444

@@ -74,132 +74,132 @@ msgstr ""
7474
msgid "Nothing found in Trash"
7575
msgstr ""
7676

77-
#: categories-for-anspress.php:277
77+
#: categories-for-anspress.php:282
7878
msgid "Ask form category order"
7979
msgstr ""
8080

81-
#: categories-for-anspress.php:278
81+
#: categories-for-anspress.php:283
8282
msgid "Set how you want to order categories in form."
8383
msgstr ""
8484

85-
#: categories-for-anspress.php:281 categories-for-anspress.php:296
85+
#: categories-for-anspress.php:286 categories-for-anspress.php:301
8686
#: categories-widget.php:128
8787
msgid "ID"
8888
msgstr ""
8989

90-
#: categories-for-anspress.php:282 categories-for-anspress.php:297
90+
#: categories-for-anspress.php:287 categories-for-anspress.php:302
9191
#: categories-widget.php:129
9292
msgid "Name"
9393
msgstr ""
9494

95-
#: categories-for-anspress.php:283 categories-for-anspress.php:298
95+
#: categories-for-anspress.php:288 categories-for-anspress.php:303
9696
#: categories-widget.php:130
9797
msgid "Slug"
9898
msgstr ""
9999

100-
#: categories-for-anspress.php:284 categories-for-anspress.php:299
100+
#: categories-for-anspress.php:289 categories-for-anspress.php:304
101101
#: categories-widget.php:127
102102
msgid "Count"
103103
msgstr ""
104104

105-
#: categories-for-anspress.php:285 categories-for-anspress.php:300
105+
#: categories-for-anspress.php:290 categories-for-anspress.php:305
106106
msgid "Group"
107107
msgstr ""
108108

109-
#: categories-for-anspress.php:292
109+
#: categories-for-anspress.php:297
110110
msgid "Categries page order by"
111111
msgstr ""
112112

113-
#: categories-for-anspress.php:293 categories-for-anspress.php:308
113+
#: categories-for-anspress.php:298 categories-for-anspress.php:313
114114
msgid "Set how you want to order categories in categories page."
115115
msgstr ""
116116

117-
#: categories-for-anspress.php:307
117+
#: categories-for-anspress.php:312
118118
msgid "Categries page order"
119119
msgstr ""
120120

121-
#: categories-for-anspress.php:311
121+
#: categories-for-anspress.php:316
122122
msgid "Ascending"
123123
msgstr ""
124124

125-
#: categories-for-anspress.php:312
125+
#: categories-for-anspress.php:317
126126
msgid "Descending"
127127
msgstr ""
128128

129-
#: categories-for-anspress.php:319
129+
#: categories-for-anspress.php:324
130130
msgid "Categories page slug"
131131
msgstr ""
132132

133-
#: categories-for-anspress.php:320
133+
#: categories-for-anspress.php:325
134134
msgid "Slug categories page"
135135
msgstr ""
136136

137-
#: categories-for-anspress.php:328
137+
#: categories-for-anspress.php:333
138138
msgid "Category page slug"
139139
msgstr ""
140140

141-
#: categories-for-anspress.php:329
141+
#: categories-for-anspress.php:334
142142
msgid "Slug for category page"
143143
msgstr ""
144144

145-
#: categories-for-anspress.php:337
145+
#: categories-for-anspress.php:342
146146
msgid "Categories title"
147147
msgstr ""
148148

149-
#: categories-for-anspress.php:338
149+
#: categories-for-anspress.php:343
150150
msgid "Title of the categories page"
151151
msgstr ""
152152

153-
#: categories-for-anspress.php:345
153+
#: categories-for-anspress.php:350
154154
msgid "Category per page"
155155
msgstr ""
156156

157-
#: categories-for-anspress.php:346
157+
#: categories-for-anspress.php:351
158158
msgid "Category to show per page"
159159
msgstr ""
160160

161-
#: categories-for-anspress.php:455
161+
#: categories-for-anspress.php:460
162162
msgid "Select a topic that best fits your question"
163163
msgstr ""
164164

165-
#: categories-for-anspress.php:517
165+
#: categories-for-anspress.php:522
166166
msgid "No matching category found"
167167
msgstr ""
168168

169-
#: categories-for-anspress.php:577 categories-for-anspress.php:605
169+
#: categories-for-anspress.php:582 categories-for-anspress.php:610
170170
msgid "Image"
171171
msgstr ""
172172

173-
#: categories-for-anspress.php:578 categories-for-anspress.php:607
173+
#: categories-for-anspress.php:583 categories-for-anspress.php:612
174174
msgid "Upload image"
175175
msgstr ""
176176

177-
#: categories-for-anspress.php:582
177+
#: categories-for-anspress.php:587
178178
msgid "Category image"
179179
msgstr ""
180180

181-
#: categories-for-anspress.php:585 categories-for-anspress.php:622
181+
#: categories-for-anspress.php:590 categories-for-anspress.php:627
182182
msgid "Category icon class"
183183
msgstr ""
184184

185-
#: categories-for-anspress.php:587 categories-for-anspress.php:625
186-
#: categories-for-anspress.php:632
185+
#: categories-for-anspress.php:592 categories-for-anspress.php:630
186+
#: categories-for-anspress.php:637
187187
msgid "Font icon class, if image not set"
188188
msgstr ""
189189

190-
#: categories-for-anspress.php:590 categories-for-anspress.php:629
190+
#: categories-for-anspress.php:595 categories-for-anspress.php:634
191191
msgid "Category icon color"
192192
msgstr ""
193193

194-
#: categories-for-anspress.php:592
194+
#: categories-for-anspress.php:597
195195
msgid "Icon color"
196196
msgstr ""
197197

198-
#: categories-for-anspress.php:616
198+
#: categories-for-anspress.php:621
199199
msgid "Featured image for category"
200200
msgstr ""
201201

202-
#: categories-for-anspress.php:618
202+
#: categories-for-anspress.php:623
203203
msgid "Remove image"
204204
msgstr ""
205205

@@ -269,19 +269,19 @@ msgstr ""
269269
msgid "View all questions"
270270
msgstr ""
271271

272-
#: theme/categories.php:38
272+
#: theme/categories.php:40
273273
msgid "%d Sub category"
274274
msgid_plural "%d Sub categories"
275275
msgstr[0] ""
276276
msgstr[1] ""
277277

278-
#: theme/category.php:9
278+
#: theme/category.php:14
279279
msgid "1 Question"
280280
msgid_plural "%s Questions"
281281
msgstr[0] ""
282282
msgstr[1] ""
283283

284-
#: theme/category.php:23
284+
#: theme/category.php:30
285285
msgid "Sub Categories"
286286
msgstr ""
287287

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Categories for AnsPress",
33
"description": "Add category support in AnsPress",
4-
"version": "1.4.1",
4+
"version": "1.4.2",
55
"tested_up_to": "4.4",
66
"updated": "",
77
"licence": "GPL-3.0+",

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?business=rah12@live.com&cmd=_
44
Tags: anspress, question, answer, q&a, forum, stackoverflow, quora
55
Requires at least: 4.1.1
66
Tested up to: 4.4
7-
Stable tag: 1.4
7+
Stable tag: 1.4.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -33,6 +33,10 @@ Or if you want to install it manually simple follow this:
3333

3434
== Changelog ==
3535

36+
= 1.4.2 =
37+
38+
* Minor bug fixes
39+
3640
= 1.4.1 =
3741

3842
* Minor bug fixes

theme/category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="ap-taxo-detail">
88

99
<h2 class="entry-title">
10-
<a href="<?php echo get_category_link( $category );?>">
10+
<a href="<?php echo get_category_link( $question_category );?>">
1111
<?php echo $question_category->name; ?>
1212
</a>
1313
<span class="ap-tax-item-count">

0 commit comments

Comments
 (0)