Co-Authors Plus - Version 2.6.4

Version Description

Download this release

Release Info

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

Code changes from version 2.6.3 to 2.6.4

Files changed (3) hide show
  1. co-authors-plus.php +5 -3
  2. js/co-authors-plus.js +9 -2
  3. readme.txt +7 -3
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: 2.6.3
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
- Copyright: 2008-2011 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,7 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
 
25
  */
26
 
27
- define( 'COAUTHORS_PLUS_VERSION', '2.6.3' );
28
 
29
  define( 'COAUTHORS_PLUS_PATH', dirname( __FILE__ ) );
30
  define( 'COAUTHORS_PLUS_URL', plugin_dir_url( __FILE__ ) );
@@ -690,7 +690,9 @@ class coauthors_plus {
690
  ),
691
  'fields' => 'all_with_meta',
692
  );
 
693
  $found_users = get_users( $args );
 
694
 
695
  // Allow users to always filter out certain users if needed (e.g. administrators)
696
  $ignored_authors = apply_filters( 'coauthors_edit_ignored_authors', $ignored_authors );
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: 2.6.4
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
+ Copyright: 2008-2012 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', '2.6.4' );
28
 
29
  define( 'COAUTHORS_PLUS_PATH', dirname( __FILE__ ) );
30
  define( 'COAUTHORS_PLUS_URL', plugin_dir_url( __FILE__ ) );
690
  ),
691
  'fields' => 'all_with_meta',
692
  );
693
+ add_filter( 'pre_user_query', array( $this, 'filter_pre_user_query' ) );
694
  $found_users = get_users( $args );
695
+ remove_filter( 'pre_user_query', array( $this, 'filter_pre_user_query' ) );
696
 
697
  // Allow users to always filter out certain users if needed (e.g. administrators)
698
  $ignored_authors = apply_filters( 'coauthors_edit_ignored_authors', $ignored_authors );
js/co-authors-plus.js CHANGED
@@ -283,8 +283,15 @@ jQuery(document).ready(function () {
283
 
284
  // Adapted from http://www.deluxeblogtips.com/2010/04/get-gravatar-using-only-javascript.html
285
  function get_gravatar_link(email, size) {
286
- var size = size || 80;
287
- return 'http://www.gravatar.com/avatar/' + MD5(email) + '.jpg?s=' + size;
 
 
 
 
 
 
 
288
  }
289
 
290
  /*
283
 
284
  // Adapted from http://www.deluxeblogtips.com/2010/04/get-gravatar-using-only-javascript.html
285
  function get_gravatar_link(email, size) {
286
+ var size = size || 80;
287
+
288
+ // need to check if page is secure or not
289
+ var gravatar_url = 'http://www.gravatar.com/avatar/';
290
+ if ("https:" == document.location.protocol) {
291
+ // secure
292
+ gravatar_url = 'https://secure.gravatar.com/avatar/';
293
+ }
294
+ return gravatar_url + MD5(email) + '.jpg?s=' + size;
295
  }
296
 
297
  /*
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://digitalize.ca/donate
4
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
5
  Tested up to: 3.3.2
6
  Requires at least: 3.1
7
- Stable tag: 2.6.3
8
 
9
  Allows multiple authors to be assigned to posts, pages, and custom post types via a search-as-you-type input box
10
 
@@ -18,8 +18,12 @@ This plugin is an almost complete rewrite of the Co-Authors plugin originally de
18
 
19
  == Changelog ==
20
 
21
- = 2012-03-06 / 2.6.3 =
22
- * AJAX user search is back to searching against first name, last name, display name, email address and user ID. The method introduced in v2.6.2 didn't scale well
 
 
 
 
23
  * French translation courtesy of Sylvain Bérubé
24
  * Spanish translation courtesy of Alejandro Arcos
25
  * Bug fix: Resolved incorrect caps check against user editing an already published post. [See forum thread](http://wordpress.org/support/topic/multiple-authors-cant-edit-pages?replies=17#post-2741243)
4
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
5
  Tested up to: 3.3.2
6
  Requires at least: 3.1
7
+ Stable tag: 2.6.4
8
 
9
  Allows multiple authors to be assigned to posts, pages, and custom post types via a search-as-you-type input box
10
 
18
 
19
  == Changelog ==
20
 
21
+ = 2012-05-07 / 2.6.4 =
22
+ * Bug fix: Properly filter the user query so users can AJAX search against the display name field again
23
+ * If https is used for the admin, also use the secure Gravatar URL. Props [rmcfrazier](https://github.com/rmcfrazier)
24
+
25
+ = 2012-04-30 / 2.6.3 =
26
+ * AJAX user search is back to searching against user login, display name, email address and user ID. The method introduced in v2.6.2 didn't scale well
27
  * French translation courtesy of Sylvain Bérubé
28
  * Spanish translation courtesy of Alejandro Arcos
29
  * Bug fix: Resolved incorrect caps check against user editing an already published post. [See forum thread](http://wordpress.org/support/topic/multiple-authors-cant-edit-pages?replies=17#post-2741243)