Facebook Button by BestWebSoft - Version 2.14

Version Description

  • 24.07.2012 =
  • NEW : Arabic language file is added to the plugin.
  • Bugfix : Cross Site Request Forgery bug was fixed.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Facebook Button by BestWebSoft
Version 2.14
Comparing to
See all releases

Code changes from version 2.13 to 2.14

facebook-button-plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Facebook Button Plugin
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Put Facebook Button in to your post.
6
  Author: BestWebSoft
7
- Version: 2.13
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -150,7 +150,7 @@ if( ! function_exists( 'fcbk_bttn_plgn_settings_page' ) ) {
150
 
151
  $message = "";
152
  $error = "";
153
- if( isset( $_REQUEST['fcbk_bttn_plgn_form_submit'] ) ) {
154
  // Takes all the changed settings on the plugin's admin page and saves them in array 'fcbk_bttn_plgn_options_array'.
155
  if ( isset ( $_REQUEST['fcbk_bttn_plgn_where'] ) && isset ( $_REQUEST['fcbk_bttn_plgn_link'] ) && isset ( $_REQUEST['fcbk_bttn_plgn_display_option'] ) ) {
156
  $fcbk_bttn_plgn_options_array [ 'fcbk_bttn_plgn_link' ] = $_REQUEST [ 'fcbk_bttn_plgn_link' ];
@@ -412,7 +412,8 @@ if( ! function_exists( 'fcbk_bttn_plgn_settings_page' ) ) {
412
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
413
  </td>
414
  </tr>
415
- </table>
 
416
  </form>
417
  </div>
418
  </div>
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Put Facebook Button in to your post.
6
  Author: BestWebSoft
7
+ Version: 2.14
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
150
 
151
  $message = "";
152
  $error = "";
153
+ if( isset( $_REQUEST['fcbk_bttn_plgn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'fcbk_bttn_plgn_nonce_name' ) ) {
154
  // Takes all the changed settings on the plugin's admin page and saves them in array 'fcbk_bttn_plgn_options_array'.
155
  if ( isset ( $_REQUEST['fcbk_bttn_plgn_where'] ) && isset ( $_REQUEST['fcbk_bttn_plgn_link'] ) && isset ( $_REQUEST['fcbk_bttn_plgn_display_option'] ) ) {
156
  $fcbk_bttn_plgn_options_array [ 'fcbk_bttn_plgn_link' ] = $_REQUEST [ 'fcbk_bttn_plgn_link' ];
412
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
413
  </td>
414
  </tr>
415
+ </table>
416
+ <?php wp_nonce_field( plugin_basename(__FILE__), 'fcbk_bttn_plgn_nonce_name' ); ?>
417
  </form>
418
  </div>
419
  </div>
languages/facebook-ar_AR.mo ADDED
Binary file
languages/facebook-ar_AR.po ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: facebook\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:37+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:37+0300\n"
7
+ "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
+ "Language-Team: Albayan Design Hani aladoli <info@albayan-design.com>\n"
9
+ "Language: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-Language: arabic\n"
16
+ "X-Poedit-Country: libya\n"
17
+ "X-Poedit-SourceCharset: utf-8\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ #: facebook-button-plugin.php:78
21
+ msgid "Activated plugins"
22
+ msgstr "الاضافات المفعله "
23
+
24
+ #: facebook-button-plugin.php:80
25
+ #: facebook-button-plugin.php:88
26
+ #: facebook-button-plugin.php:96
27
+ msgid "Read more"
28
+ msgstr "اقراء المزيد"
29
+
30
+ #: facebook-button-plugin.php:80
31
+ #: facebook-button-plugin.php:519
32
+ #: facebook-button-plugin.php:531
33
+ msgid "Settings"
34
+ msgstr "الاعدادات "
35
+
36
+ #: facebook-button-plugin.php:86
37
+ msgid "Installed plugins"
38
+ msgstr "الاضافات المنزلة "
39
+
40
+ #: facebook-button-plugin.php:94
41
+ msgid "Recommended plugins"
42
+ msgstr "اضافات موصي بها"
43
+
44
+ #: facebook-button-plugin.php:96
45
+ msgid "Download"
46
+ msgstr "تحميل"
47
+
48
+ #: facebook-button-plugin.php:96
49
+ #, php-format
50
+ msgid "Install %s"
51
+ msgstr "تنزيل %s"
52
+
53
+ #: facebook-button-plugin.php:96
54
+ msgid "Install now from wordpress.org"
55
+ msgstr "حملها الا من wordpress.org"
56
+
57
+ #: facebook-button-plugin.php:98
58
+ msgid "If you have any questions, please contact us via plugin@bestwebsoft.com or fill in our contact form on our site"
59
+ msgstr "اذا كان لديك اي استفسار او سؤال الرجاء الاتصال بنا عبر بريدنا الالكتروني : contact us via plugin@bestwebsoft.com , او المراسلة الفورية من واجهة الاتصال بنا علي موقعنا الخاص"
60
+
61
+ #: facebook-button-plugin.php:109
62
+ #: facebook-button-plugin.php:222
63
+ msgid "FaceBook Button Options"
64
+ msgstr "اعدادات زر الفيس بوك"
65
+
66
+ #: facebook-button-plugin.php:109
67
+ msgid "FaceBook Button"
68
+ msgstr "زر الفيس بوك"
69
+
70
+ #: facebook-button-plugin.php:169
71
+ msgid "Options saved."
72
+ msgstr "تم حفظ الاعدادات"
73
+
74
+ #: facebook-button-plugin.php:191
75
+ msgid "Error: File size > 32K"
76
+ msgstr "خطاء : حجم الملف : > 32К"
77
+
78
+ #: facebook-button-plugin.php:194
79
+ msgid "Error: Invalid file type"
80
+ msgstr "خطاء : نوع الملف غير صحيح"
81
+
82
+ #: facebook-button-plugin.php:204
83
+ msgid "Error: moving file failed"
84
+ msgstr "خطاء : فشل في نقل الملف"
85
+
86
+ #: facebook-button-plugin.php:208
87
+ msgid "Error: check image width or height"
88
+ msgstr "خطاء : تأكد من عرض وطول الصورة"
89
+
90
+ #: facebook-button-plugin.php:213
91
+ msgid "Uploading Error: check image properties"
92
+ msgstr "خطاء في الرفع : تأكد من خصائص الصورة"
93
+
94
+ #: facebook-button-plugin.php:229
95
+ msgid "Your's FaceBook Id:"
96
+ msgstr "اسم حسابك علي الفيس بوك :"
97
+
98
+ #: facebook-button-plugin.php:235
99
+ msgid "Display button:"
100
+ msgstr "عرض الزر :"
101
+
102
+ #: facebook-button-plugin.php:237
103
+ msgid "My Page"
104
+ msgstr "صفحتي"
105
+
106
+ #: facebook-button-plugin.php:238
107
+ msgid "Like"
108
+ msgstr "اعجاب "
109
+
110
+ #: facebook-button-plugin.php:243
111
+ msgid "Choose display option:"
112
+ msgstr "اختار خيار العرض :"
113
+
114
+ #: facebook-button-plugin.php:247
115
+ msgid "Standart FaceBook image"
116
+ msgstr "صورة الفيس بوك الافتراضية "
117
+
118
+ #: facebook-button-plugin.php:249
119
+ msgid "Custom FaceBook image"
120
+ msgstr "صورة خاصة للـ فيس بوك"
121
+
122
+ #: facebook-button-plugin.php:256
123
+ msgid "Current image:"
124
+ msgstr "الصورة الحالية : "
125
+
126
+ #: facebook-button-plugin.php:269
127
+ msgid "FaceBook image:"
128
+ msgstr "صورة الفيس بوك : "
129
+
130
+ #: facebook-button-plugin.php:273
131
+ msgid "Image properties: max image width:100px; max image height:40px; max image size:32Kb; image types:\"jpg\", \"jpeg\"."
132
+ msgstr "Propiedades de la imagen: Ancho máx.: 100px; Alto máx.: 40px; Tamaño máx: 32Kb; Tipo de imagen: \"jpg\", \"jpeg\"."
133
+
134
+ #: facebook-button-plugin.php:281
135
+ msgid "FaceBook Button Position:"
136
+ msgstr "مكان زر الفيس بوك :"
137
+
138
+ #: facebook-button-plugin.php:285
139
+ msgid "Before"
140
+ msgstr "قبل"
141
+
142
+ #: facebook-button-plugin.php:286
143
+ msgid "After"
144
+ msgstr "بعد"
145
+
146
+ #: facebook-button-plugin.php:287
147
+ msgid "Before and After"
148
+ msgstr "قبل و بعد"
149
+
150
+ #: facebook-button-plugin.php:288
151
+ msgid "Shortcode"
152
+ msgstr "الكود"
153
+
154
+ #: facebook-button-plugin.php:290
155
+ msgid "If you would like to add a FaceBook button to your website, just copy and put this shortcode onto your post or page:"
156
+ msgstr "اذا كنت ترغب في اضافة زر الفيس بوك علي موقعك انسخ هذه الكود وضعه في المكان المراد ظهور الزر فيه"
157
+
158
+ #: facebook-button-plugin.php:295
159
+ msgid "FaceBook Button language:"
160
+ msgstr "للغه زر الفيس بوك :"
161
+
162
+ #: facebook-button-plugin.php:406
163
+ msgid "Select language for Like button"
164
+ msgstr "اختار اللغه للـ زر الاغحاب"
165
+
166
+ #: facebook-button-plugin.php:412
167
+ msgid "Save Changes"
168
+ msgstr "حفظ التغييرات"
169
+
170
+ #: facebook-button-plugin.php:532
171
+ msgid "FAQ"
172
+ msgstr "أسئلة وأجوبة"
173
+
174
+ #: facebook-button-plugin.php:533
175
+ msgid "Support"
176
+ msgstr "الدعم"
177
+
178
+ #~ msgid "Install Now"
179
+ #~ msgstr "Установить сейчас"
180
+ #~ msgid "BWS Plugins"
181
+ #~ msgstr "Плагины BWS"
182
+
languages/facebook-es_ES.mo CHANGED
Binary file
languages/facebook-es_ES.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: facebook\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-07-10 19:07+0300\n"
6
- "PO-Revision-Date: 2012-07-10 19:07+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
@@ -28,8 +28,8 @@ msgid "Read more"
28
  msgstr "Leer mas"
29
 
30
  #: facebook-button-plugin.php:80
31
- #: facebook-button-plugin.php:518
32
- #: facebook-button-plugin.php:530
33
  msgid "Settings"
34
  msgstr "Opciones"
35
 
@@ -168,11 +168,11 @@ msgstr ""
168
  msgid "Save Changes"
169
  msgstr ""
170
 
171
- #: facebook-button-plugin.php:531
172
  msgid "FAQ"
173
  msgstr "FAQ"
174
 
175
- #: facebook-button-plugin.php:532
176
  msgid "Support"
177
  msgstr "Soporte"
178
 
2
  msgstr ""
3
  "Project-Id-Version: facebook\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:37+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:37+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
28
  msgstr "Leer mas"
29
 
30
  #: facebook-button-plugin.php:80
31
+ #: facebook-button-plugin.php:519
32
+ #: facebook-button-plugin.php:531
33
  msgid "Settings"
34
  msgstr "Opciones"
35
 
168
  msgid "Save Changes"
169
  msgstr ""
170
 
171
+ #: facebook-button-plugin.php:532
172
  msgid "FAQ"
173
  msgstr "FAQ"
174
 
175
+ #: facebook-button-plugin.php:533
176
  msgid "Support"
177
  msgstr "Soporte"
178
 
languages/facebook-he_IL.mo CHANGED
Binary file
languages/facebook-he_IL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Facebook Button Plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-07-10 19:06+0300\n"
6
- "PO-Revision-Date: 2012-07-10 19:06+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
@@ -33,8 +33,8 @@ msgstr "קרא עוד"
33
 
34
  # @ facebook
35
  #: facebook-button-plugin.php:80
36
- #: facebook-button-plugin.php:518
37
- #: facebook-button-plugin.php:530
38
  msgid "Settings"
39
  msgstr "הגדרות"
40
 
@@ -206,12 +206,12 @@ msgid "Save Changes"
206
  msgstr "שמור שינויים"
207
 
208
  # @ facebook
209
- #: facebook-button-plugin.php:531
210
  msgid "FAQ"
211
  msgstr "שאלות ותשובות"
212
 
213
  # @ facebook
214
- #: facebook-button-plugin.php:532
215
  msgid "Support"
216
  msgstr "תמיכה"
217
 
2
  msgstr ""
3
  "Project-Id-Version: Facebook Button Plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:37+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:37+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: \n"
9
  "Language: \n"
33
 
34
  # @ facebook
35
  #: facebook-button-plugin.php:80
36
+ #: facebook-button-plugin.php:519
37
+ #: facebook-button-plugin.php:531
38
  msgid "Settings"
39
  msgstr "הגדרות"
40
 
206
  msgstr "שמור שינויים"
207
 
208
  # @ facebook
209
+ #: facebook-button-plugin.php:532
210
  msgid "FAQ"
211
  msgstr "שאלות ותשובות"
212
 
213
  # @ facebook
214
+ #: facebook-button-plugin.php:533
215
  msgid "Support"
216
  msgstr "תמיכה"
217
 
languages/facebook-ru_RU.mo CHANGED
Binary file
languages/facebook-ru_RU.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: facebook\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-07-10 19:07+0300\n"
6
- "PO-Revision-Date: 2012-07-10 19:07+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
@@ -28,8 +28,8 @@ msgid "Read more"
28
  msgstr "Подробнее..."
29
 
30
  #: facebook-button-plugin.php:80
31
- #: facebook-button-plugin.php:518
32
- #: facebook-button-plugin.php:530
33
  msgid "Settings"
34
  msgstr "Настройки"
35
 
@@ -167,11 +167,11 @@ msgstr "Выберите язык для Like кнопки"
167
  msgid "Save Changes"
168
  msgstr ""
169
 
170
- #: facebook-button-plugin.php:531
171
  msgid "FAQ"
172
  msgstr "FAQ"
173
 
174
- #: facebook-button-plugin.php:532
175
  msgid "Support"
176
  msgstr "Поддержка"
177
 
2
  msgstr ""
3
  "Project-Id-Version: facebook\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:37+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:37+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
28
  msgstr "Подробнее..."
29
 
30
  #: facebook-button-plugin.php:80
31
+ #: facebook-button-plugin.php:519
32
+ #: facebook-button-plugin.php:531
33
  msgid "Settings"
34
  msgstr "Настройки"
35
 
167
  msgid "Save Changes"
168
  msgstr ""
169
 
170
+ #: facebook-button-plugin.php:532
171
  msgid "FAQ"
172
  msgstr "FAQ"
173
 
174
+ #: facebook-button-plugin.php:533
175
  msgid "Support"
176
  msgstr "Поддержка"
177
 
languages/facebook-tr_TR.mo CHANGED
Binary file
languages/facebook-tr_TR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: facebook\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-07-10 19:07+0300\n"
6
- "PO-Revision-Date: 2012-07-10 19:07+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
@@ -28,8 +28,8 @@ msgid "Read more"
28
  msgstr "Devamını Oku"
29
 
30
  #: facebook-button-plugin.php:80
31
- #: facebook-button-plugin.php:518
32
- #: facebook-button-plugin.php:530
33
  msgid "Settings"
34
  msgstr "Ayarlar"
35
 
@@ -167,11 +167,11 @@ msgstr ""
167
  msgid "Save Changes"
168
  msgstr "Değişiklikleri Kaydet"
169
 
170
- #: facebook-button-plugin.php:531
171
  msgid "FAQ"
172
  msgstr "SSS (Sık Sorulan Sorular)"
173
 
174
- #: facebook-button-plugin.php:532
175
  msgid "Support"
176
  msgstr "Destek"
177
 
2
  msgstr ""
3
  "Project-Id-Version: facebook\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:37+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:37+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
28
  msgstr "Devamını Oku"
29
 
30
  #: facebook-button-plugin.php:80
31
+ #: facebook-button-plugin.php:519
32
+ #: facebook-button-plugin.php:531
33
  msgid "Settings"
34
  msgstr "Ayarlar"
35
 
167
  msgid "Save Changes"
168
  msgstr "Değişiklikleri Kaydet"
169
 
170
+ #: facebook-button-plugin.php:532
171
  msgid "FAQ"
172
  msgstr "SSS (Sık Sorulan Sorular)"
173
 
174
+ #: facebook-button-plugin.php:533
175
  msgid "Support"
176
  msgstr "Destek"
177
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10
4
  Tags: Facebook, Facebook Button, Like, Like button, Share, Share button, Facebook like, Facebook like button, Facebook button like, Button like, Facebook share, Facebook share button, Facebook button share
5
  Requires at least: 2.9
6
  Tested up to: 3.4.1
7
- Stable tag: 2.13
8
 
9
  Add Facebook button to your WordPress website
10
 
@@ -24,6 +24,7 @@ Facebook Button Plugin allows you to add follow button in the most easiest and f
24
 
25
  = Translation =
26
 
 
27
  * Hebrew (he_IL) (thanks to Sagive SEO)
28
  * Russian (ru_RU)
29
  * Spanish (es_ES) (thanks to Jesús Parra)
@@ -80,6 +81,10 @@ Dear users, if you have any questions or propositions regarding our plugins (cur
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  = V2.13 - 10.07.2012 =
84
  * NEW : Hebrew language file is added to the plugin.
85
  * Update : We updated all functionality for wordpress 3.4.1.
@@ -133,6 +138,9 @@ Dear users, if you have any questions or propositions regarding our plugins (cur
133
 
134
  == Upgrade Notice ==
135
 
 
 
 
136
  = V2.13 =
137
  Hebrew language file is added to the plugin. We updated all functionality for wordpress 3.4.1.
138
 
4
  Tags: Facebook, Facebook Button, Like, Like button, Share, Share button, Facebook like, Facebook like button, Facebook button like, Button like, Facebook share, Facebook share button, Facebook button share
5
  Requires at least: 2.9
6
  Tested up to: 3.4.1
7
+ Stable tag: 2.14
8
 
9
  Add Facebook button to your WordPress website
10
 
24
 
25
  = Translation =
26
 
27
+ * Arabic (ar_AR) (thanks to Albayan Design Hani Aladoli)
28
  * Hebrew (he_IL) (thanks to Sagive SEO)
29
  * Russian (ru_RU)
30
  * Spanish (es_ES) (thanks to Jesús Parra)
81
 
82
  == Changelog ==
83
 
84
+ = V2.14 - 24.07.2012 =
85
+ * NEW : Arabic language file is added to the plugin.
86
+ * Bugfix : Cross Site Request Forgery bug was fixed.
87
+
88
  = V2.13 - 10.07.2012 =
89
  * NEW : Hebrew language file is added to the plugin.
90
  * Update : We updated all functionality for wordpress 3.4.1.
138
 
139
  == Upgrade Notice ==
140
 
141
+ = V2.14 =
142
+ Arabic language file is added to the plugin. Cross Site Request Forgery bug was fixed.
143
+
144
  = V2.13 =
145
  Hebrew language file is added to the plugin. We updated all functionality for wordpress 3.4.1.
146