Version Description
Download this release
Release Info
Developer | batmoo |
Plugin | Co-Authors Plus |
Version | 2.6.1 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.6.1
- co-authors-plus.php +6 -7
- co-authors-plus.pot +52 -46
- readme.txt +5 -1
co-authors-plus.php
CHANGED
@@ -3,10 +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
|
7 |
Author: Mohammad Jangda, Daniel Bachhuber
|
8 |
-
|
9 |
-
Copyright: Some parts (C) 2009-2011, Mohammad Jangda; Other parts (C) 2008, Weston Ruter
|
10 |
|
11 |
GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
|
12 |
This program is free software; you can redistribute it and/or modify
|
@@ -25,7 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
25 |
|
26 |
*/
|
27 |
|
28 |
-
define( 'COAUTHORS_PLUS_VERSION', '2.6' );
|
29 |
|
30 |
if( ! defined( 'COAUTHORS_PLUS_DEBUG' ) )
|
31 |
define( 'COAUTHORS_PLUS_DEBUG', false );
|
@@ -468,7 +467,7 @@ class coauthors_plus {
|
|
468 |
// @todo this should check the nonce before changing the value
|
469 |
|
470 |
if( isset( $_REQUEST['coauthors-nonce'] ) && isset( $_POST['coauthors'] ) && is_array( $_POST['coauthors'] ) ) {
|
471 |
-
$author =
|
472 |
if( $author ) {
|
473 |
$author_data = get_user_by( 'login', $author );
|
474 |
$data['post_author'] = $author_data->ID;
|
@@ -500,7 +499,7 @@ class coauthors_plus {
|
|
500 |
|
501 |
if( $this->current_user_can_set_authors() ){
|
502 |
$coauthors = (array) $_POST['coauthors'];
|
503 |
-
$coauthors = array_map( '
|
504 |
return $this->add_coauthors( $post_id, $coauthors );
|
505 |
}
|
506 |
}
|
@@ -879,4 +878,4 @@ class coauthors_plus {
|
|
879 |
}
|
880 |
|
881 |
global $coauthors_plus;
|
882 |
-
$coauthors_plus = new coauthors_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: 2.6.1
|
7 |
Author: Mohammad Jangda, Daniel Bachhuber
|
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 |
|
25 |
*/
|
26 |
|
27 |
+
define( 'COAUTHORS_PLUS_VERSION', '2.6.1' );
|
28 |
|
29 |
if( ! defined( 'COAUTHORS_PLUS_DEBUG' ) )
|
30 |
define( 'COAUTHORS_PLUS_DEBUG', false );
|
467 |
// @todo this should check the nonce before changing the value
|
468 |
|
469 |
if( isset( $_REQUEST['coauthors-nonce'] ) && isset( $_POST['coauthors'] ) && is_array( $_POST['coauthors'] ) ) {
|
470 |
+
$author = sanitize_user( $_POST['coauthors'][0] );
|
471 |
if( $author ) {
|
472 |
$author_data = get_user_by( 'login', $author );
|
473 |
$data['post_author'] = $author_data->ID;
|
499 |
|
500 |
if( $this->current_user_can_set_authors() ){
|
501 |
$coauthors = (array) $_POST['coauthors'];
|
502 |
+
$coauthors = array_map( 'sanitize_user', $coauthors );
|
503 |
return $this->add_coauthors( $post_id, $coauthors );
|
504 |
}
|
505 |
}
|
878 |
}
|
879 |
|
880 |
global $coauthors_plus;
|
881 |
+
$coauthors_plus = new coauthors_plus();
|
co-authors-plus.pot
CHANGED
@@ -1,91 +1,97 @@
|
|
1 |
-
#
|
2 |
-
# This file is
|
3 |
-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
4 |
-
#
|
5 |
-
#, fuzzy
|
6 |
msgid ""
|
7 |
msgstr ""
|
8 |
-
"Project-Id-Version:
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/co-authors-plus\n"
|
10 |
-
"POT-Creation-Date:
|
11 |
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
"MIME-Version: 1.0\n"
|
15 |
-
"Content-Type: text/plain; charset=
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
17 |
|
18 |
-
#: co-authors.php:
|
19 |
msgid " and "
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: co-authors
|
23 |
-
msgid "
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: co-authors.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
msgid "Authors"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: co-authors.php:
|
31 |
-
msgid "
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: co-authors.php:
|
35 |
-
msgid "
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: co-authors.php:
|
39 |
msgid "Edit"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: co-authors.php:
|
43 |
-
msgid "
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: co-authors.php:
|
47 |
-
msgid "Are you sure you want to
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: co-authors.php:
|
51 |
-
msgid "Click to change this author"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: co-authors.php:
|
55 |
msgid "Search for an author"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#:
|
59 |
msgid ""
|
60 |
-
"
|
61 |
-
"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#:
|
65 |
-
msgid "
|
66 |
msgstr ""
|
67 |
|
68 |
-
#:
|
69 |
-
msgid "
|
70 |
msgstr ""
|
71 |
|
72 |
-
|
73 |
-
msgid ""
|
74 |
-
"Enabling this option will allow you to add users with the subscriber role as "
|
75 |
-
"authors for posts."
|
76 |
msgstr ""
|
77 |
|
78 |
-
|
79 |
-
msgid "
|
80 |
msgstr ""
|
81 |
|
82 |
-
|
83 |
msgid ""
|
84 |
-
"
|
85 |
-
"
|
86 |
msgstr ""
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
msgid "Posts by %s"
|
91 |
msgstr ""
|
1 |
+
# Copyright (C) 2010 Co-Authors Plus
|
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: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: co-authors-plus.php:39
|
16 |
msgid " and "
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: co-authors-plus.php:216
|
20 |
+
msgid "Post Authors"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: co-authors-plus.php:254
|
24 |
+
msgid ""
|
25 |
+
"<strong>Note:</strong> To edit post authors, please enable javascript or use "
|
26 |
+
"a javascript-capable browser"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: co-authors-plus.php:261 co-authors-plus.php:743
|
30 |
+
msgid ""
|
31 |
+
"Click on an author to change them. Drag to change their order. Click on "
|
32 |
+
"<strong>Remove</strong> to remove them."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: co-authors-plus.php:291
|
36 |
msgid "Authors"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: co-authors-plus.php:327
|
40 |
+
msgid "Posts"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: co-authors-plus.php:343
|
44 |
+
msgid "View posts by this author"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: co-authors-plus.php:738
|
48 |
msgid "Edit"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: co-authors-plus.php:739
|
52 |
+
msgid "Remove"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: co-authors-plus.php:740
|
56 |
+
msgid "Are you sure you want to remove this author?"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: co-authors-plus.php:741
|
60 |
+
msgid "Click to change this author, or drag to change their position"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: co-authors-plus.php:742
|
64 |
msgid "Search for an author"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: template-tags.php:71
|
68 |
msgid ""
|
69 |
+
"No post ID provided for CoAuthorsIterator constructor. Are you not in a loop "
|
70 |
+
"or is $post not set?"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: template-tags.php:189 template-tags.php:329
|
74 |
+
msgid "Posts by %s"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: template-tags.php:230
|
78 |
+
msgid "Visit %s’s website"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#. Plugin Name of the plugin/theme
|
82 |
+
msgid "Co-Authors Plus"
|
|
|
|
|
83 |
msgstr ""
|
84 |
|
85 |
+
#. Plugin URI of the plugin/theme
|
86 |
+
msgid "http://wordpress.org/extend/plugins/co-authors-plus/"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#. Description of the plugin/theme
|
90 |
msgid ""
|
91 |
+
"Allows multiple authors to be assigned to a post. This plugin is an extended "
|
92 |
+
"version of the Co-Authors plugin developed by Weston Ruter."
|
93 |
msgstr ""
|
94 |
|
95 |
+
#. Author of the plugin/theme
|
96 |
+
msgid "Mohammad Jangda, Daniel Bachhuber"
|
|
|
97 |
msgstr ""
|
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
|
6 |
Requires at least: 3.1
|
7 |
-
Stable tag: 2.6
|
8 |
|
9 |
Allows multiple authors to be assigned to any post type via a search-as-you-type input box
|
10 |
|
@@ -20,6 +20,10 @@ The extended version incorporates search-as-you-type functionality for adding us
|
|
20 |
|
21 |
== Changelog ==
|
22 |
|
|
|
|
|
|
|
|
|
23 |
= 2011-12-22 / 2.6 =
|
24 |
|
25 |
* Sortable authors: Drag and drop the order of the authors as you'd like them to appear ([props kingkool68](http://profiles.wordpress.org/users/kingkool68/))
|
4 |
Tags: authors, users, multiple authors, coauthors, multi-author, publishing
|
5 |
Tested up to: 3.3
|
6 |
Requires at least: 3.1
|
7 |
+
Stable tag: 2.6.1
|
8 |
|
9 |
Allows multiple authors to be assigned to any post type via a search-as-you-type input box
|
10 |
|
20 |
|
21 |
== Changelog ==
|
22 |
|
23 |
+
= 2011-12-30 / 2.6.1 =
|
24 |
+
|
25 |
+
* Fix mangled usernames because of sanitize_key http://wordpress.org/support/topic/plugin-co-authors-plus-26-not-working-with-wp-33
|
26 |
+
|
27 |
= 2011-12-22 / 2.6 =
|
28 |
|
29 |
* Sortable authors: Drag and drop the order of the authors as you'd like them to appear ([props kingkool68](http://profiles.wordpress.org/users/kingkool68/))
|