Co-Authors Plus - Version 3.0.7

Version Description

Support for symlink installations, updated French translation, bug fixes.

Download this release

Release Info

Developer danielbachhuber
Plugin Icon wp plugin Co-Authors Plus
Version 3.0.7
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.7

co-authors-plus.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: Co-Authors Plus
4
  Plugin URI: http://wordpress.org/extend/plugins/co-authors-plus/
5
  Description: Allows multiple authors to be assigned to a post. This plugin is an extended version of the Co-Authors plugin developed by Weston Ruter.
6
- Version: 3.0.6
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
- Copyright: 2008-2013 Shared and distributed between Mohammad Jangda, Daniel Bachhuber, Weston Ruter
9
 
10
  GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
11
  This program is free software; you can redistribute it and/or modify
@@ -24,12 +24,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
 
25
  */
26
 
27
- define( 'COAUTHORS_PLUS_VERSION', '3.0.6' );
28
-
29
- define( 'COAUTHORS_PLUS_PATH', dirname( __FILE__ ) );
30
- define( 'COAUTHORS_PLUS_URL', plugin_dir_url( __FILE__ ) );
31
 
32
  require_once( dirname( __FILE__ ) . '/template-tags.php' );
 
33
 
34
  require_once( dirname( __FILE__ ) . '/php/class-coauthors-template-filters.php' );
35
 
@@ -99,8 +97,8 @@ class coauthors_plus {
99
  // Restricts WordPress from blowing away term order on bulk edit
100
  add_filter( 'wp_get_object_terms', array( $this, 'filter_wp_get_object_terms' ), 10, 4 );
101
 
102
- // Fix for author info not properly displaying on author pages
103
- add_action( 'template_redirect', array( $this, 'fix_author_page' ) );
104
  add_action( 'the_post', array( $this, 'fix_author_page' ) );
105
 
106
  // Support for Edit Flow's calendar and story budget
@@ -858,9 +856,12 @@ class coauthors_plus {
858
  }
859
 
860
  /**
861
- * Fix for author info not properly displaying on author pages
 
 
 
862
  *
863
- * On an author archive, if the first story has coauthors and
864
  * the first author is NOT the same as the author for the archive,
865
  * the query_var is changed.
866
  *
@@ -1002,8 +1003,8 @@ class coauthors_plus {
1002
 
1003
  wp_enqueue_script( 'jquery' );
1004
  wp_enqueue_script( 'jquery-ui-sortable' );
1005
- wp_enqueue_style( 'co-authors-plus-css', COAUTHORS_PLUS_URL . 'css/co-authors-plus.css', false, COAUTHORS_PLUS_VERSION, 'all' );
1006
- wp_enqueue_script( 'co-authors-plus-js', COAUTHORS_PLUS_URL . 'js/co-authors-plus.js', array('jquery', 'suggest'), COAUTHORS_PLUS_VERSION, true);
1007
 
1008
  $js_strings = array(
1009
  'edit_label' => __( 'Edit', 'co-authors-plus' ),
3
  Plugin Name: Co-Authors Plus
4
  Plugin URI: http://wordpress.org/extend/plugins/co-authors-plus/
5
  Description: Allows multiple authors to be assigned to a post. This plugin is an extended version of the Co-Authors plugin developed by Weston Ruter.
6
+ Version: 3.0.7
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
+ Copyright: 2008-2014 Shared and distributed between Mohammad Jangda, Daniel Bachhuber, Weston Ruter
9
 
10
  GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
11
  This program is free software; you can redistribute it and/or modify
24
 
25
  */
26
 
27
+ define( 'COAUTHORS_PLUS_VERSION', '3.0.7' );
 
 
 
28
 
29
  require_once( dirname( __FILE__ ) . '/template-tags.php' );
30
+ require_once( dirname( __FILE__ ) . '/deprecated.php' );
31
 
32
  require_once( dirname( __FILE__ ) . '/php/class-coauthors-template-filters.php' );
33
 
97
  // Restricts WordPress from blowing away term order on bulk edit
98
  add_filter( 'wp_get_object_terms', array( $this, 'filter_wp_get_object_terms' ), 10, 4 );
99
 
100
+ // Make sure we've correctly set author data on author pages
101
+ add_filter( 'posts_selection', array( $this, 'fix_author_page' ) ); // use posts_selection since it's after WP_Query has built the request and before it's queried any posts
102
  add_action( 'the_post', array( $this, 'fix_author_page' ) );
103
 
104
  // Support for Edit Flow's calendar and story budget
856
  }
857
 
858
  /**
859
+ * Fix for author pages 404ing or not properly displaying on author pages
860
+ *
861
+ * If an author has no posts, we need to still force the queried object to be
862
+ * set in case a site wants to still display the author's profile.
863
  *
864
+ * Alternatively, on an author archive, if the first story has coauthors and
865
  * the first author is NOT the same as the author for the archive,
866
  * the query_var is changed.
867
  *
1003
 
1004
  wp_enqueue_script( 'jquery' );
1005
  wp_enqueue_script( 'jquery-ui-sortable' );
1006
+ wp_enqueue_style( 'co-authors-plus-css', plugins_url( 'css/co-authors-plus.css', __FILE__ ), false, COAUTHORS_PLUS_VERSION, 'all' );
1007
+ wp_enqueue_script( 'co-authors-plus-js', plugins_url( 'js/co-authors-plus.js', __FILE__ ), array('jquery', 'suggest'), COAUTHORS_PLUS_VERSION, true);
1008
 
1009
  $js_strings = array(
1010
  'edit_label' => __( 'Edit', 'co-authors-plus' ),
deprecated.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Constants
5
+ */
6
+ define( 'COAUTHORS_PLUS_PATH', dirname( __FILE__ ) );
7
+ define( 'COAUTHORS_PLUS_URL', plugin_dir_url( __FILE__ ) );
languages/co-authors-plus-fr_FR.mo CHANGED
Binary file
languages/co-authors-plus-fr_FR.po CHANGED
@@ -2,75 +2,584 @@
2
  # This file is distributed under the same license as the Co-Authors Plus package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Co-Authors Plus 2.6.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/co-authors-plus\n"
7
- "POT-Creation-Date: 2011-12-30 05:00:31+00:00\n"
 
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2012-04-12 02:16-0500\n"
12
- "Last-Translator: Sylvain Bérubé <sylvain.berube@gmail.com>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: co-authors-plus.php:39
16
- msgid " and "
17
- msgstr " et "
18
-
19
- #: co-authors-plus.php:216
20
- msgid "Post Authors"
21
- msgstr "Auteurs de l'article"
22
-
23
- #: co-authors-plus.php:254
24
- msgid "<strong>Note:</strong> To edit post authors, please enable javascript or use a javascript-capable browser"
25
- msgstr "<strong>Note:</strong> Pour éditer les auteurs d'un article, s'il vous plaît activer JavaScript ou utiliser un navigateur compatible à JavaScript"
26
-
27
- #: co-authors-plus.php:261
28
- #: co-authors-plus.php:743
29
- msgid "Click on an author to change them. Drag to change their order. Click on <strong>Remove</strong> to remove them."
30
- msgstr "Cliquer sur un auteur pour le modifier. Glisser-déposer pour en modifier l'ordre. Cliquer sur <strong>Retirer</strong> pour le retirer."
31
-
32
- #: co-authors-plus.php:291
33
  msgid "Authors"
34
  msgstr "Auteurs"
35
 
36
- #: co-authors-plus.php:327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  msgid "Posts"
38
  msgstr "Articles"
39
 
40
- #: co-authors-plus.php:343
41
  msgid "View posts by this author"
42
  msgstr "Voir les articles de cet auteur"
43
 
44
- #: co-authors-plus.php:738
 
 
 
 
45
  msgid "Edit"
46
  msgstr "Éditer"
47
 
48
- #: co-authors-plus.php:739
49
  msgid "Remove"
50
  msgstr "Retirer"
51
 
52
- #: co-authors-plus.php:740
53
  msgid "Are you sure you want to remove this author?"
54
- msgstr "Êtes-vous certain de vouloir retirer cet auteur?"
55
 
56
- #: co-authors-plus.php:741
57
  msgid "Click to change this author, or drag to change their position"
58
- msgstr "Cliquer pour changer cet auteur, ou glisser-déposer pour modifier sa position"
 
59
 
60
- #: co-authors-plus.php:742
61
  msgid "Search for an author"
62
- msgstr "Recherche d'un auteur"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
- #: template-tags.php:71
65
- msgid "No post ID provided for CoAuthorsIterator constructor. Are you not in a loop or is $post not set?"
66
- msgstr "Aucun ID d'article n'a été fourni au constructeur CoAuthorsIterator. Êtes-vous hors d'une «loop» ou est-ce que $post n'est pas défini?"
67
 
68
- #: template-tags.php:189
69
- #: template-tags.php:329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  msgid "Posts by %s"
71
  msgstr "Articles par %s"
72
 
73
- #: template-tags.php:230
74
  msgid "Visit %s&#8217;s website"
75
  msgstr "Visiter le site de %s"
76
 
@@ -83,10 +592,13 @@ msgid "http://wordpress.org/extend/plugins/co-authors-plus/"
83
  msgstr "http://wordpress.org/extend/plugins/co-authors-plus/"
84
 
85
  #. Description of the plugin/theme
86
- msgid "Allows multiple authors to be assigned to a post. This plugin is an extended version of the Co-Authors plugin developed by Weston Ruter."
87
- msgstr "Permettre à plusieurs auteurs d'être attribué à un article. Cet plugin est une version étendue du plugin Co-Authors développé par Weston Ruter."
 
 
 
 
88
 
89
  #. Author of the plugin/theme
90
- msgid "Mohammad Jangda, Daniel Bachhuber"
91
- msgstr "Mohammad Jangda, Daniel Bachhuber"
92
-
2
  # This file is distributed under the same license as the Co-Authors Plus package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Co-Authors Plus 3.0.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/co-authors-plus\n"
7
+ "POT-Creation-Date: 2012-11-21 21:17:39+00:00\n"
8
+ "PO-Revision-Date: 2013-12-14 15:30+0100\n"
9
+ "Last-Translator: Jojaba <jojaba@gmail.com>\n"
10
+ "Language-Team: Jojaba <jojaba@gmail.com>\n"
11
+ "Language: French\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.5.7\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
 
19
+ #: co-authors-plus.php:287 co-authors-plus.php:382 co-authors-plus.php:1158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  msgid "Authors"
21
  msgstr "Auteurs"
22
 
23
+ #: co-authors-plus.php:342
24
+ msgid ""
25
+ "<strong>Note:</strong> To edit post authors, please enable javascript or use "
26
+ "a javascript-capable browser"
27
+ msgstr ""
28
+ "<strong>Remarque :</strong> pour éditer les auteurs d'un article, veuillez "
29
+ "activer JavaScript ou utiliser un navigateur gérant JavaScript"
30
+
31
+ #: co-authors-plus.php:349 co-authors-plus.php:956
32
+ msgid ""
33
+ "Click on an author to change them. Drag to change their order. Click on "
34
+ "<strong>Remove</strong> to remove them."
35
+ msgstr ""
36
+ "Cliquer sur un auteur pour en changer. Glisser-déposer pour modifier "
37
+ "l'ordre. Cliquer sur <strong>Retirer</strong> pour le retirer."
38
+
39
+ #: co-authors-plus.php:425 php/class-coauthors-wp-list-table.php:148
40
  msgid "Posts"
41
  msgstr "Articles"
42
 
43
+ #: co-authors-plus.php:442
44
  msgid "View posts by this author"
45
  msgstr "Voir les articles de cet auteur"
46
 
47
+ #: co-authors-plus.php:481
48
+ msgid "No co-author exists for that term"
49
+ msgstr "Aucun co-auteur n'existe pour ce terme"
50
+
51
+ #: co-authors-plus.php:951 php/class-coauthors-wp-list-table.php:205
52
  msgid "Edit"
53
  msgstr "Éditer"
54
 
55
+ #: co-authors-plus.php:952
56
  msgid "Remove"
57
  msgstr "Retirer"
58
 
59
+ #: co-authors-plus.php:953
60
  msgid "Are you sure you want to remove this author?"
61
+ msgstr "Souhaitez-vous vraiment retirer cet auteur ?"
62
 
63
+ #: co-authors-plus.php:954
64
  msgid "Click to change this author, or drag to change their position"
65
+ msgstr ""
66
+ "Cliquer pour changer cet auteur ou glisser-déposer pour modifier sa position"
67
 
68
+ #: co-authors-plus.php:955
69
  msgid "Search for an author"
70
+ msgstr "Rechercher un auteur"
71
+
72
+ #: co-authors-plus.php:993
73
+ msgid "Mine"
74
+ msgstr "Le mien"
75
+
76
+ #: co-authors-plus.php:1230
77
+ msgid "New comment on your post \"%s\""
78
+ msgstr "Nouveau commentaire à votre article « %s »"
79
+
80
+ #. translators: 1: comment author, 2: author IP, 3: author domain
81
+ #: co-authors-plus.php:1232 co-authors-plus.php:1349
82
+ msgid "Author : %1$s (IP: %2$s , %3$s)"
83
+ msgstr "Auteur : %1$s (IP : %2$s , %3$s)"
84
+
85
+ #: co-authors-plus.php:1233 co-authors-plus.php:1350
86
+ msgid "E-mail : %s"
87
+ msgstr "E-mail : %s"
88
+
89
+ #: co-authors-plus.php:1234 co-authors-plus.php:1244 co-authors-plus.php:1253
90
+ #: co-authors-plus.php:1336 co-authors-plus.php:1343 co-authors-plus.php:1351
91
+ msgid "URL : %s"
92
+ msgstr "URL : %s"
93
+
94
+ #: co-authors-plus.php:1235 co-authors-plus.php:1352
95
+ msgid "Whois : http://whois.arin.net/rest/ip/%s"
96
+ msgstr "Whois : http://whois.arin.net/rest/ip/%s"
97
+
98
+ #: co-authors-plus.php:1236 co-authors-plus.php:1353
99
+ msgid "Comment: "
100
+ msgstr "Commentaire :"
101
+
102
+ #: co-authors-plus.php:1237
103
+ msgid "You can see all comments on this post here: "
104
+ msgstr "Vous pouvez voir tous les commentaires pour cet article ici :"
105
+
106
+ #. translators: 1: blog name, 2: post title
107
+ #: co-authors-plus.php:1239
108
+ msgid "[%1$s] Comment: \"%2$s\""
109
+ msgstr "[%1$s] Commentaire : « %2$s »"
110
+
111
+ #: co-authors-plus.php:1241
112
+ msgid "New trackback on your post \"%s\""
113
+ msgstr "Nouveau trackback pour votre article « %s »"
114
+
115
+ #. translators: 1: website name, 2: author IP, 3: author domain
116
+ #. translators: 1: comment author, 2: author IP, 3: author domain
117
+ #: co-authors-plus.php:1243 co-authors-plus.php:1252
118
+ msgid "Website: %1$s (IP: %2$s , %3$s)"
119
+ msgstr "Site Web : %1$s (IP : %2$s , %3$s)"
120
+
121
+ #: co-authors-plus.php:1245 co-authors-plus.php:1254
122
+ msgid "Excerpt: "
123
+ msgstr "Extrait :"
124
+
125
+ #: co-authors-plus.php:1246
126
+ msgid "You can see all trackbacks on this post here: "
127
+ msgstr "Vous pouvez voir tous les trackbacks pour cet article ici :"
128
+
129
+ #. translators: 1: blog name, 2: post title
130
+ #: co-authors-plus.php:1248
131
+ msgid "[%1$s] Trackback: \"%2$s\""
132
+ msgstr "[%1$s] Trackback : « %2$s »"
133
+
134
+ #: co-authors-plus.php:1250
135
+ msgid "New pingback on your post \"%s\""
136
+ msgstr "Nouveau pingback pour votre article « %s »"
137
+
138
+ #: co-authors-plus.php:1255
139
+ msgid "You can see all pingbacks on this post here: "
140
+ msgstr "Vous pouvez voir tous les pingbacks pour cet article ici :"
141
+
142
+ #. translators: 1: blog name, 2: post title
143
+ #: co-authors-plus.php:1257
144
+ msgid "[%1$s] Pingback: \"%2$s\""
145
+ msgstr "[%1$s] Pingback : « %2$s »"
146
+
147
+ #: co-authors-plus.php:1260
148
+ msgid "Permalink: %s"
149
+ msgstr "Permalien : %s"
150
+
151
+ #: co-authors-plus.php:1262 co-authors-plus.php:1359
152
+ msgid "Trash it: %s"
153
+ msgstr "Mettre à la corbeille %s"
154
+
155
+ #: co-authors-plus.php:1264 co-authors-plus.php:1361
156
+ msgid "Delete it: %s"
157
+ msgstr "Supprimer %s"
158
+
159
+ #: co-authors-plus.php:1265 co-authors-plus.php:1362
160
+ msgid "Spam it: %s"
161
+ msgstr "Considérer comme indésirable %s"
162
+
163
+ #: co-authors-plus.php:1333
164
+ msgid "A new trackback on the post \"%s\" is waiting for your approval"
165
+ msgstr "Un nouveau trackback pour l'article « %s » attend votre approbation"
166
+
167
+ #: co-authors-plus.php:1335 co-authors-plus.php:1342
168
+ msgid "Website : %1$s (IP: %2$s , %3$s)"
169
+ msgstr "Site Web : %1$s (IP : %2$s , %3$s)"
170
+
171
+ #: co-authors-plus.php:1337
172
+ msgid "Trackback excerpt: "
173
+ msgstr "Extrait du trackback :"
174
+
175
+ #: co-authors-plus.php:1340
176
+ msgid "A new pingback on the post \"%s\" is waiting for your approval"
177
+ msgstr "Un nouveau pingback pour l'article « %s » attend votre approbation"
178
+
179
+ #: co-authors-plus.php:1344
180
+ msgid "Pingback excerpt: "
181
+ msgstr "Extriat du pingback :"
182
+
183
+ #: co-authors-plus.php:1347
184
+ msgid "A new comment on the post \"%s\" is waiting for your approval"
185
+ msgstr "Un nouveau commentaire pour l'article « %s » attend votre approbation"
186
+
187
+ #: co-authors-plus.php:1357
188
+ msgid "Approve it: %s"
189
+ msgstr "Approuver %s"
190
+
191
+ #: co-authors-plus.php:1364
192
+ msgid ""
193
+ "Currently %s comment is waiting for approval. Please visit the moderation "
194
+ "panel:"
195
+ msgid_plural ""
196
+ "Currently %s comments are waiting for approval. Please visit the moderation "
197
+ "panel:"
198
+ msgstr[0] ""
199
+ "%s commentaire attend votre approbation. Veuillez vous rendre au panneau de "
200
+ "modération :"
201
+ msgstr[1] ""
202
+ "%s commentaires attendent votre approbation. Veuillez vous rendre au panneau "
203
+ "de modération :"
204
+
205
+ #: co-authors-plus.php:1368
206
+ msgid "[%1$s] Please moderate: \"%2$s\""
207
+ msgstr "[%1$s] Veuillez modérer « %2$s »"
208
+
209
+ #: php/class-coauthors-guest-authors.php:77
210
+ msgid "Guest Author"
211
+ msgstr "Auteur invité"
212
+
213
+ #: php/class-coauthors-guest-authors.php:78
214
+ msgid "Guest Authors"
215
+ msgstr "Auteurs invités"
216
+
217
+ #: php/class-coauthors-guest-authors.php:79
218
+ msgid "All Guest Authors"
219
+ msgstr "Tous les auteurs invités"
220
+
221
+ #: php/class-coauthors-guest-authors.php:80
222
+ msgid "Add New Guest Author"
223
+ msgstr "Ajouter un nouvel auteur invité"
224
+
225
+ #: php/class-coauthors-guest-authors.php:81
226
+ msgid "Edit Guest Author"
227
+ msgstr "Éditer l'auteur invité"
228
+
229
+ #: php/class-coauthors-guest-authors.php:82
230
+ msgid "New Guest Author"
231
+ msgstr "Nouvel auteur invité"
232
+
233
+ #: php/class-coauthors-guest-authors.php:83
234
+ msgid "View Guest Author"
235
+ msgstr "Afficher l'auteur invité"
236
+
237
+ #: php/class-coauthors-guest-authors.php:84
238
+ msgid "Search Guest Authors"
239
+ msgstr "Rechercher des auteurs invités"
240
+
241
+ #: php/class-coauthors-guest-authors.php:85
242
+ msgid "No guest authors found"
243
+ msgstr "Aucun auteur invité trouvé"
244
+
245
+ #: php/class-coauthors-guest-authors.php:86
246
+ msgid "No guest authors found in Trash"
247
+ msgstr "Aucun auteur invité trouvé dans la corbeille"
248
+
249
+ #: php/class-coauthors-guest-authors.php:87
250
+ msgid "Update Guest Author"
251
+ msgstr "Mettre à jour l'auteur invité"
252
+
253
+ #: php/class-coauthors-guest-authors.php:88
254
+ msgid "About the guest author"
255
+ msgstr "À propos de l'auteur invité"
256
+
257
+ #: php/class-coauthors-guest-authors.php:97
258
+ msgctxt "co-authors-plus"
259
+ msgid "Add New"
260
+ msgstr "Nouveau"
261
+
262
+ #: php/class-coauthors-guest-authors.php:153
263
+ #: php/class-coauthors-guest-authors.php:159
264
+ msgid "Guest author updated. <a href=\"%s\">View profile</a>"
265
+ msgstr "Auteur invité mis à jour. <a href=\"%s\">Voir le profil</a>"
266
+
267
+ #: php/class-coauthors-guest-authors.php:154
268
+ msgid "Custom field updated."
269
+ msgstr "Champ personnalisé mis à jour"
270
+
271
+ #: php/class-coauthors-guest-authors.php:155
272
+ msgid "Custom field deleted."
273
+ msgstr "Cahmp personnalisé supprimé."
274
+
275
+ #: php/class-coauthors-guest-authors.php:156
276
+ msgid "Guest author updated."
277
+ msgstr "Auteur invité mis à jour."
278
+
279
+ #. translators: %s: date and time of the revision
280
+ #: php/class-coauthors-guest-authors.php:158
281
+ msgid "Guest author restored to revision from %s"
282
+ msgstr "Auteur invité rétabli à la révision datant du %s"
283
+
284
+ #: php/class-coauthors-guest-authors.php:160
285
+ msgid "Guest author saved."
286
+ msgstr "Auteur invité enregistré."
287
+
288
+ #: php/class-coauthors-guest-authors.php:161
289
+ msgid ""
290
+ "Guest author submitted. <a target=\"_blank\" href=\"%s\">Preview profile</a>"
291
+ msgstr ""
292
+ "Auteur invité enregistré. <a target=\"_blank\" href=\"%s\">Aperçu du pofil</"
293
+ "a>"
294
+
295
+ #: php/class-coauthors-guest-authors.php:162
296
+ msgid ""
297
+ "Guest author scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href="
298
+ "\"%2$s\">Preview profile</a>"
299
+ msgstr ""
300
+ "Auteur invité prévu pour : <strong>%1$s</strong>. <a target=\"_blank\" href="
301
+ "\"%2$s\">Aperçu du profil</a>"
302
+
303
+ #. translators: Publish box date format, see http:php.net/date
304
+ #: php/class-coauthors-guest-authors.php:164
305
+ msgid "M j, Y @ G:i"
306
+ msgstr "j M Y à G:i"
307
+
308
+ #: php/class-coauthors-guest-authors.php:165
309
+ msgid ""
310
+ "Guest author updated. <a target=\"_blank\" href=\"%s\">Preview profile</a>"
311
+ msgstr ""
312
+ "Auteur invité mis à jour. <a target=\"_blank\" href=\"%s\">Aperçu du profil</"
313
+ "a>"
314
+
315
+ #: php/class-coauthors-guest-authors.php:182
316
+ #: php/class-coauthors-guest-authors.php:215
317
+ #: php/class-coauthors-guest-authors.php:430
318
+ msgid "Doin' something fishy, huh?"
319
+ msgstr "On fait des choses bizarres ?"
320
+
321
+ #: php/class-coauthors-guest-authors.php:185
322
+ #: php/class-coauthors-guest-authors.php:219
323
+ msgid "You don't have permission to perform this action."
324
+ msgstr "Vous n'êtes pas autorisé à faire cela."
325
+
326
+ #: php/class-coauthors-guest-authors.php:224
327
+ #: php/class-coauthors-guest-authors.php:435
328
+ msgid "Guest author can't be deleted because it doesn't exist."
329
+ msgstr "L'auteur invité ne peut être supprimé car il n'existe pas."
330
+
331
+ #: php/class-coauthors-guest-authors.php:238
332
+ msgid "Co-author does not exists. Try again?"
333
+ msgstr "Le co-auteur n'existe pas. Essayer à nouveau ?"
334
+
335
+ #: php/class-coauthors-guest-authors.php:246
336
+ msgid "Please make sure to pick an option."
337
+ msgstr "Veuillez choisir une option."
338
+
339
+ #: php/class-coauthors-guest-authors.php:386
340
+ msgid "Guest author deleted."
341
+ msgstr "Auteur invité supprimé."
342
+
343
+ #: php/class-coauthors-guest-authors.php:410
344
+ msgid "Save"
345
+ msgstr "Enregistrer"
346
+
347
+ #: php/class-coauthors-guest-authors.php:411
348
+ msgid "Unique Slug"
349
+ msgstr "Slug unique"
350
+
351
+ #: php/class-coauthors-guest-authors.php:413
352
+ msgid "Name"
353
+ msgstr "Nom"
354
+
355
+ #: php/class-coauthors-guest-authors.php:414
356
+ msgid "Contact Info"
357
+ msgstr "Infos de contact"
358
+
359
+ #: php/class-coauthors-guest-authors.php:439
360
+ msgid "Delete %s"
361
+ msgstr "Supprimer %s"
362
+
363
+ #: php/class-coauthors-guest-authors.php:440
364
+ msgid "You have specified this guest author for deletion:"
365
+ msgstr "Vous avez indiqué vouloir supprimer cet auteur invité :"
366
+
367
+ #: php/class-coauthors-guest-authors.php:442
368
+ msgid "What should be done with posts assigned to this guest author?"
369
+ msgstr "Que faut-il faire avec les articles associés à cet auteur invité ?"
370
+
371
+ #: php/class-coauthors-guest-authors.php:443
372
+ msgid ""
373
+ "Note: If you'd like to delete the guest author and all of their posts, you "
374
+ "should delete their posts first and then come back to delete the guest "
375
+ "author."
376
+ msgstr ""
377
+ "Remarque : si vous souhaitez supprimer l'auteur invité et tous ses articles, "
378
+ "vous devriez d'abord supprimer tous ses articles puis revenir pour supprimer "
379
+ "l'auteur invité."
380
+
381
+ #: php/class-coauthors-guest-authors.php:452
382
+ msgid "Reassign to another co-author:"
383
+ msgstr "Réassoicer à un nouveau co-auteur :"
384
+
385
+ #: php/class-coauthors-guest-authors.php:458
386
+ msgid "Leave posts assigned to the mapped user, %s."
387
+ msgstr "Liasser les articles associés à l'utilisateur %s."
388
+
389
+ #: php/class-coauthors-guest-authors.php:463
390
+ msgid "Remove byline from posts (but leave each post in its current status)."
391
+ msgstr ""
392
+ "Supprimer les infos sur l'article (mais laisser chaque article dans sin état "
393
+ "actuel)"
394
+
395
+ #: php/class-coauthors-guest-authors.php:466
396
+ msgid "Confirm Deletion"
397
+ msgstr "Confirmer la suppression"
398
+
399
+ #: php/class-coauthors-guest-authors.php:475
400
+ msgid "Add New"
401
+ msgstr "Nouveau"
402
+
403
+ #: php/class-coauthors-guest-authors.php:536
404
+ msgid "WordPress User Mapping"
405
+ msgstr "Correspondance des utilisateurs WordPress"
406
+
407
+ #: php/class-coauthors-guest-authors.php:538
408
+ msgid "-- Not mapped --"
409
+ msgstr "-- Non associé --"
410
+
411
+ #: php/class-coauthors-guest-authors.php:651
412
+ msgid "Guest authors cannot be created without display names."
413
+ msgstr "Les auteurs invités ne peuvent être créés sans noms à afficher."
414
+
415
+ #: php/class-coauthors-guest-authors.php:658
416
+ msgid ""
417
+ "Guest authors cannot be created with the same user_login value as a user. "
418
+ "Try creating a profile from the user instead"
419
+ msgstr ""
420
+ "Les auteurs invités ne peuvent être créés avec le même identifiant qu'un "
421
+ "utilisateur. Essayez plutôt de créer un profil à partir de l'utilisateur."
422
+
423
+ #: php/class-coauthors-guest-authors.php:663
424
+ msgid "Display name conflicts with another guest author display name."
425
+ msgstr "Le nom affiché est en conflit avec le nom d'un autre auteur invité."
426
+
427
+ #: php/class-coauthors-guest-authors.php:817
428
+ msgid "ID"
429
+ msgstr "ID"
430
+
431
+ #: php/class-coauthors-guest-authors.php:823
432
+ #: php/class-coauthors-wp-list-table.php:143
433
+ msgid "Display Name"
434
+ msgstr "Nom affiché"
435
+
436
+ #: php/class-coauthors-guest-authors.php:829
437
+ #: php/class-coauthors-wp-list-table.php:144
438
+ msgid "First Name"
439
+ msgstr "Prénom"
440
+
441
+ #: php/class-coauthors-guest-authors.php:834
442
+ #: php/class-coauthors-wp-list-table.php:145
443
+ msgid "Last Name"
444
+ msgstr "Nom"
445
+
446
+ #: php/class-coauthors-guest-authors.php:839
447
+ msgid "Slug"
448
+ msgstr "Slug"
449
+
450
+ #: php/class-coauthors-guest-authors.php:846
451
+ #: php/class-coauthors-wp-list-table.php:146
452
+ msgid "E-mail"
453
+ msgstr "E-mail"
454
+
455
+ #: php/class-coauthors-guest-authors.php:851
456
+ #: php/class-coauthors-wp-list-table.php:147
457
+ msgid "Linked Account"
458
+ msgstr "Compte lié"
459
 
460
+ #: php/class-coauthors-guest-authors.php:856
461
+ msgid "Website"
462
+ msgstr "Site Web"
463
 
464
+ #: php/class-coauthors-guest-authors.php:861
465
+ msgid "AIM"
466
+ msgstr "AIM"
467
+
468
+ #: php/class-coauthors-guest-authors.php:866
469
+ msgid "Yahoo IM"
470
+ msgstr "MI Yahoo"
471
+
472
+ #: php/class-coauthors-guest-authors.php:871
473
+ msgid "Jabber / Google Talk"
474
+ msgstr "Jabber / Google Talk"
475
+
476
+ #: php/class-coauthors-guest-authors.php:876
477
+ msgid "Biographical Info"
478
+ msgstr "Infos biographiques"
479
+
480
+ #: php/class-coauthors-guest-authors.php:1006
481
+ msgid "%s is a required field"
482
+ msgstr "%s est un champ obligatoire"
483
+
484
+ #: php/class-coauthors-guest-authors.php:1012
485
+ msgid "user_login cannot duplicate existing guest author or mapped user"
486
+ msgstr ""
487
+ "L'identifiant ne peut être le même que celui d'un auteur invité existant ou "
488
+ "de l'utilisateur associé"
489
+
490
+ #: php/class-coauthors-guest-authors.php:1057
491
+ msgid "Guest author does not exist"
492
+ msgstr "L'auteur invité n'existe pas"
493
+
494
+ #: php/class-coauthors-guest-authors.php:1069
495
+ msgid "Reassignment co-author does not exist"
496
+ msgstr "Réassociation à un auteur inexistant"
497
+
498
+ #: php/class-coauthors-guest-authors.php:1101
499
+ msgid "No user exists with that ID"
500
+ msgstr "Aucun utilisateur ne possède cette ID"
501
+
502
+ #: php/class-coauthors-guest-authors.php:1158
503
+ msgid "Edit Profile"
504
+ msgstr "Modifier le profil"
505
+
506
+ #: php/class-coauthors-guest-authors.php:1166
507
+ msgid "Create Profile"
508
+ msgstr "Créer un profil"
509
+
510
+ #: php/class-coauthors-wp-list-table.php:19
511
+ msgid "Co-Authors"
512
+ msgstr "Co-Auteurs"
513
+
514
+ #: php/class-coauthors-wp-list-table.php:20
515
+ msgid "Co-Author"
516
+ msgstr "Co-Auteur"
517
+
518
+ #: php/class-coauthors-wp-list-table.php:81
519
+ msgid "Show all"
520
+ msgstr "Tout afficher"
521
+
522
+ #: php/class-coauthors-wp-list-table.php:82
523
+ msgid "With linked account"
524
+ msgstr "Avec compte lié"
525
+
526
+ #: php/class-coauthors-wp-list-table.php:83
527
+ msgid "Without linked account"
528
+ msgstr "Sans compte lié"
529
+
530
+ #: php/class-coauthors-wp-list-table.php:135
531
+ msgid "No matching guest authors were found."
532
+ msgstr "Aucun auteur invité ne correspond."
533
+
534
+ #: php/class-coauthors-wp-list-table.php:206
535
+ msgid "Delete"
536
+ msgstr "Supprimer"
537
+
538
+ #: php/class-coauthors-wp-list-table.php:207
539
+ msgid "View Posts"
540
+ msgstr "Articles"
541
+
542
+ #: php/class-coauthors-wp-list-table.php:257
543
+ msgid "Filter"
544
+ msgstr "Filtrer"
545
+
546
+ #: php/class-wp-cli.php:153
547
+ msgid "Please specify a valid user_login"
548
+ msgstr "Veuillez indiquer un identifiant valide"
549
+
550
+ #: php/class-wp-cli.php:156
551
+ msgid "Please specify a valid co-author login"
552
+ msgstr "Veuillez indiquer un identifiant de co-auteur valide"
553
+
554
+ #: php/class-wp-cli.php:163
555
+ msgid "Skipping - Post #%d already has co-authors assigned: %s"
556
+ msgstr "Passe - L'article #%d a déjà des co-auteurs associés : %s"
557
+
558
+ #: php/class-wp-cli.php:168
559
+ msgid "Updating - Adding %s's byline to post #%d"
560
+ msgstr "Mise à jour en cours - Ajout de l'info %s à l'article #%d"
561
+
562
+ #: php/class-wp-cli.php:173
563
+ msgid "All done! %d posts were affected."
564
+ msgstr "Terminé ! %d articles ont été concernés."
565
+
566
+ #: template-tags.php:82
567
+ msgid ""
568
+ "No post ID provided for CoAuthorsIterator constructor. Are you not in a loop "
569
+ "or is $post not set?"
570
+ msgstr ""
571
+ "Aucune ID d'article n'a été fournie au constructeur CoAuthorsIterator. Ne "
572
+ "seriez-vous pas à l'extérieur d'une boucle ou $post n'est-il pas défini ?"
573
+
574
+ #: template-tags.php:136
575
+ msgid " and "
576
+ msgstr " et "
577
+
578
+ #: template-tags.php:208 template-tags.php:365
579
  msgid "Posts by %s"
580
  msgstr "Articles par %s"
581
 
582
+ #: template-tags.php:257
583
  msgid "Visit %s&#8217;s website"
584
  msgstr "Visiter le site de %s"
585
 
592
  msgstr "http://wordpress.org/extend/plugins/co-authors-plus/"
593
 
594
  #. Description of the plugin/theme
595
+ msgid ""
596
+ "Allows multiple authors to be assigned to a post. This plugin is an extended "
597
+ "version of the Co-Authors plugin developed by Weston Ruter."
598
+ msgstr ""
599
+ "Permettre à plusieurs auteurs d'être associé à un même article. Ce plugin "
600
+ "est une version étendue du plugin Co-Authors développé par Weston Ruter."
601
 
602
  #. Author of the plugin/theme
603
+ msgid "Mohammad Jangda, Daniel Bachhuber, Automattic"
604
+ msgstr "Mohammad Jangda, Daniel Bachhuber, Automattic"
 
php/class-coauthors-guest-authors.php CHANGED
@@ -348,11 +348,11 @@ class CoAuthors_Guest_Authors
348
  global $pagenow;
349
  // Enqueue our guest author CSS on the related pages
350
  if ( $this->parent_page == $pagenow && isset( $_GET['page'] ) && $_GET['page'] == 'view-guest-authors' ) {
351
- wp_enqueue_script( 'jquery-select2', COAUTHORS_PLUS_URL . 'lib/select2/select2.min.js', array( 'jquery' ), COAUTHORS_PLUS_VERSION );
352
- wp_enqueue_style( 'cap-jquery-select2-css', COAUTHORS_PLUS_URL . 'lib/select2/select2.css', false, COAUTHORS_PLUS_VERSION );
353
 
354
- wp_enqueue_style( 'guest-authors-css', COAUTHORS_PLUS_URL . 'css/guest-authors.css', false, COAUTHORS_PLUS_VERSION );
355
- wp_enqueue_script( 'guest-authors-js', COAUTHORS_PLUS_URL . 'js/guest-authors.js', false, COAUTHORS_PLUS_VERSION );
356
  } else if ( in_array( $pagenow, array( 'post.php', 'post-new.php' ) ) && $this->post_type == get_post_type() ) {
357
  add_action( 'admin_head', array( $this, 'change_title_icon' ) );
358
  }
@@ -746,24 +746,31 @@ class CoAuthors_Guest_Authors
746
 
747
  $cache_key = $this->get_cache_key( $key, $value );
748
 
749
- if ( false == $force && false !== ( $retval = wp_cache_get( $cache_key, self::$cache_group ) ) )
750
- return $retval;
 
 
 
 
 
751
 
752
  switch( $key ) {
753
  case 'ID':
754
  case 'id':
755
  $query = $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE ID=%d", $value );
756
  $post_id = $wpdb->get_var( $query );
757
- if ( empty( $post_id ) )
758
- return false;
 
759
  break;
760
  case 'user_nicename':
761
  case 'post_name':
762
  $value = $this->get_post_meta_key( $value );
763
  $query = $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_name=%s AND post_type = %s", $value, $this->post_type );
764
  $post_id = $wpdb->get_var( $query );
765
- if ( empty( $post_id ) )
766
- return false;
 
767
  break;
768
  case 'login':
769
  case 'user_login':
@@ -779,16 +786,19 @@ class CoAuthors_Guest_Authors
779
  if ( empty( $post_id ) ) {
780
  if ( 'user_login' == $key )
781
  return $this->get_guest_author_by( 'post_name', $value ); // fallback to post_name in case the guest author isn't a linked account
782
- return false;
783
  }
784
  break;
785
  default:
786
- $post_id = false;
787
  break;
788
  }
789
 
790
- if ( !$post_id )
 
 
791
  return false;
 
792
 
793
  $guest_author = array(
794
  'ID' => $post_id,
348
  global $pagenow;
349
  // Enqueue our guest author CSS on the related pages
350
  if ( $this->parent_page == $pagenow && isset( $_GET['page'] ) && $_GET['page'] == 'view-guest-authors' ) {
351
+ wp_enqueue_script( 'jquery-select2', plugins_url( 'lib/select2/select2.min.js', dirname( __FILE__ ) ), array( 'jquery' ), COAUTHORS_PLUS_VERSION );
352
+ wp_enqueue_style( 'cap-jquery-select2-css', plugins_url( 'lib/select2/select2.css', dirname( __FILE__ ) ), false, COAUTHORS_PLUS_VERSION );
353
 
354
+ wp_enqueue_style( 'guest-authors-css', plugins_url( 'css/guest-authors.css', dirname( __FILE__ ) ), false, COAUTHORS_PLUS_VERSION );
355
+ wp_enqueue_script( 'guest-authors-js', plugins_url( 'js/guest-authors.js', dirname( __FILE__ ) ), false, COAUTHORS_PLUS_VERSION );
356
  } else if ( in_array( $pagenow, array( 'post.php', 'post-new.php' ) ) && $this->post_type == get_post_type() ) {
357
  add_action( 'admin_head', array( $this, 'change_title_icon' ) );
358
  }
746
 
747
  $cache_key = $this->get_cache_key( $key, $value );
748
 
749
+ if ( false == $force && false !== ( $retval = wp_cache_get( $cache_key, self::$cache_group ) ) ) {
750
+ // Properly catch our false condition cache
751
+ if ( is_object( $retval ) )
752
+ return $retval;
753
+ else
754
+ return false;
755
+ }
756
 
757
  switch( $key ) {
758
  case 'ID':
759
  case 'id':
760
  $query = $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE ID=%d", $value );
761
  $post_id = $wpdb->get_var( $query );
762
+ if ( empty( $post_id ) ) {
763
+ $post_id = '0';
764
+ }
765
  break;
766
  case 'user_nicename':
767
  case 'post_name':
768
  $value = $this->get_post_meta_key( $value );
769
  $query = $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_name=%s AND post_type = %s", $value, $this->post_type );
770
  $post_id = $wpdb->get_var( $query );
771
+ if ( empty( $post_id ) ) {
772
+ $post_id = '0';
773
+ }
774
  break;
775
  case 'login':
776
  case 'user_login':
786
  if ( empty( $post_id ) ) {
787
  if ( 'user_login' == $key )
788
  return $this->get_guest_author_by( 'post_name', $value ); // fallback to post_name in case the guest author isn't a linked account
789
+ $post_id = '0';
790
  }
791
  break;
792
  default:
793
+ $post_id = '0';
794
  break;
795
  }
796
 
797
+ if ( ! $post_id ) {
798
+ // Best hacky way to cache the false condition
799
+ wp_cache_set( $cache_key, '0', self::$cache_group );
800
  return false;
801
+ }
802
 
803
  $guest_author = array(
804
  'ID' => $post_id,
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Co-Authors Plus ===
2
  Contributors: batmoo, danielbachhuber, automattic
3
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
4
- Tested up to: 3.7.1
5
  Requires at least: 3.3
6
- Stable tag: 3.0.6
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
@@ -43,6 +43,9 @@ Yep! There's a template tag called `coauthors_wp_list_authors()` that accepts ma
43
 
44
  == Upgrade Notice ==
45
 
 
 
 
46
  = 3.0.4 =
47
  Bug fixes and the ability to automatically add co-authors to your feeds.
48
 
@@ -51,9 +54,17 @@ Bug fixes and minor enhancements
51
 
52
  == Changelog ==
53
 
 
 
 
 
 
 
 
54
  = 3.0.6 (Dec. 9, 2013) =
55
  * New Swedish translation, courtesy of [alundstroem](https://github.com/alundstroem)
56
  * Updated German translation, courtesy of [krafit](https://github.com/krafit).
 
57
  * New filter for specifying the default author assigned to a post. Props [tannerm](https://github.com/tannerm)
58
  * Bug fix: When filtering a user's published post count, use the value of their guest author profile if one is mapped.
59
  * Added support for checkboxes in Guest Author profiles
1
  === Co-Authors Plus ===
2
  Contributors: batmoo, danielbachhuber, automattic
3
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
4
+ Tested up to: 3.8.1
5
  Requires at least: 3.3
6
+ Stable tag: 3.0.7
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
43
 
44
  == Upgrade Notice ==
45
 
46
+ = 3.0.7 =
47
+ Support for symlink installations, updated French translation, bug fixes.
48
+
49
  = 3.0.4 =
50
  Bug fixes and the ability to automatically add co-authors to your feeds.
51
 
54
 
55
  == Changelog ==
56
 
57
+ = 3.0.7 (Jan. 27, 2014) =
58
+ * Better support for installing Co-Authors Plus as a symlinked directory. [Follow these instructions](http://kaspars.net/blog/wordpress/plugins-via-symlinks) to filter `plugins_url`.
59
+ * Links to authors' posts pages to comply to hCard microformat, which Google depends on.
60
+ * New `coauthors_emails()` template tag to list email addresses of the co-authors. Props [benlk](https://github.com/benlk).
61
+ * Bug fix: Remove extraneous space between last two co-authors output. Props [johnciacia](https://github.com/johnciacia).
62
+ * Updated French translation, courtesy of Jojaba (via email).
63
+
64
  = 3.0.6 (Dec. 9, 2013) =
65
  * New Swedish translation, courtesy of [alundstroem](https://github.com/alundstroem)
66
  * Updated German translation, courtesy of [krafit](https://github.com/krafit).
67
+ * New Dutch translation, courtesy of [kardotim](https://github.com/kardotim)
68
  * New filter for specifying the default author assigned to a post. Props [tannerm](https://github.com/tannerm)
69
  * Bug fix: When filtering a user's published post count, use the value of their guest author profile if one is mapped.
70
  * Added support for checkboxes in Guest Author profiles
template-tags.php CHANGED
@@ -166,8 +166,8 @@ function coauthors__echo( $tag, $type = 'tag', $separators = array(), $tag_args
166
  $output .= $separators['between'];
167
 
168
  if ( $i->is_last() && $i->count() > 1 ) {
169
- $output = rtrim( $output, " {$separators['between']}" );
170
- $output .= ' ' . $separators['betweenLast'];
171
  }
172
 
173
  $output .= $author_text;
@@ -227,19 +227,24 @@ function coauthors_posts_links( $between = null, $betweenLast = null, $before =
227
  */
228
  function coauthors_posts_links_single( $author ) {
229
  $args = array(
 
230
  'href' => get_author_posts_url( $author->ID, $author->user_nicename ),
231
  'rel' => 'author',
232
  'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), get_the_author() ),
 
233
  'text' => get_the_author(),
 
234
  );
235
  $args = apply_filters( 'coauthors_posts_link', $args, $author );
236
- return sprintf(
237
- '<a href="%1$s" title="%2$s" rel="%3$s">%4$s</a>',
238
  esc_url( $args['href'] ),
239
  esc_attr( $args['title'] ),
 
240
  esc_attr( $args['rel'] ),
241
  esc_html( $args['text'] )
242
  );
 
243
  }
244
 
245
  /**
@@ -314,6 +319,24 @@ function coauthors_links($between = null, $betweenLast = null, $before = null, $
314
  ), null, $echo );
315
  }
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  /**
318
  * Outputs a single co-author, linked to their website if they've provided one.
319
  *
166
  $output .= $separators['between'];
167
 
168
  if ( $i->is_last() && $i->count() > 1 ) {
169
+ $output = rtrim( $output, $separators['between'] );
170
+ $output .= $separators['betweenLast'];
171
  }
172
 
173
  $output .= $author_text;
227
  */
228
  function coauthors_posts_links_single( $author ) {
229
  $args = array(
230
+ 'before_html' => '',
231
  'href' => get_author_posts_url( $author->ID, $author->user_nicename ),
232
  'rel' => 'author',
233
  'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), get_the_author() ),
234
+ 'class' => 'url fn',
235
  'text' => get_the_author(),
236
+ 'after_html' => ''
237
  );
238
  $args = apply_filters( 'coauthors_posts_link', $args, $author );
239
+ $single_link = sprintf(
240
+ '<a href="%1$s" title="%2$s" class="%3$s" rel="%4$s">%5$s</a>',
241
  esc_url( $args['href'] ),
242
  esc_attr( $args['title'] ),
243
+ esc_attr( $args['class'] ),
244
  esc_attr( $args['rel'] ),
245
  esc_html( $args['text'] )
246
  );
247
+ return $args['before_html'] . $single_link . $args['after_html'];
248
  }
249
 
250
  /**
319
  ), null, $echo );
320
  }
321
 
322
+ /**
323
+ * Outputs the co-authors email addresses
324
+ *
325
+ * @param string $between Delimiter that should appear between the email addresses
326
+ * @param string $betweenLast Delimiter that should appear between the last two email addresses
327
+ * @param string $before What should appear before the presentation of email addresses
328
+ * @param string $after What should appear after the presentation of email addresses
329
+ * @param bool $echo Whether the co-authors should be echoed or returned. Defaults to true.
330
+ */
331
+ function coauthors_emails($between = null, $betweenLast = null, $before = null, $after = null, $echo = true ) {
332
+ return coauthors__echo('get_the_author_meta', 'tag', array(
333
+ 'between' => $between,
334
+ 'betweenLast' => $betweenLast,
335
+ 'before' => $before,
336
+ 'after' => $after
337
+ ), 'user_email', $echo );
338
+ }
339
+
340
  /**
341
  * Outputs a single co-author, linked to their website if they've provided one.
342
  *