diff --git a/docs/plugins/coauthors.rst b/docs/plugins/coauthors.rst deleted file mode 100644 index 15f8ddd..0000000 --- a/docs/plugins/coauthors.rst +++ /dev/null @@ -1,18 +0,0 @@ -.. This Source Code Form is subject to the terms of the Mozilla Public -.. License, v. 2.0. If a copy of the MPL was not distributed with this -.. file, You can obtain one at http://mozilla.org/MPL/2.0/. - - -=============== -Co-authors Plus -=============== - -This plugin provides guest author functionality - -- Enable plugin - #. Go to Users->Guest Authors - #. Create the ones you want - #. When creating or editing a post, add them using the authors input box - -.. image:: ../images/guest-author.jpg - diff --git a/docs/pluginsettings.rst b/docs/pluginsettings.rst index 6d26989..b638650 100644 --- a/docs/pluginsettings.rst +++ b/docs/pluginsettings.rst @@ -16,5 +16,4 @@ Plugin Settings plugins/passwordprotect plugins/relatedposts plugins/simplefields - plugins/coauthors plugins/wordpress-seo.rst \ No newline at end of file diff --git a/docs/users.rst b/docs/users.rst index f815a85..e1a3459 100644 --- a/docs/users.rst +++ b/docs/users.rst @@ -6,9 +6,6 @@ Users ========== -.. important:: This documentation is out of date and needs to be rewritten to include the co-authors plugin. - - For the purposes of content editing there are 3 user roles we use: 1. Editor - our paid staff, somebody who can publish and manage posts including the posts of other users. diff --git a/plugins/the-open-standard-modals/templates/author-modal.php b/plugins/the-open-standard-modals/templates/author-modal.php index e36c9aa..55b1039 100644 --- a/plugins/the-open-standard-modals/templates/author-modal.php +++ b/plugins/the-open-standard-modals/templates/author-modal.php @@ -2,21 +2,13 @@ $author_slug = $modal_args[0]; $author = get_user_by('slug', $author_slug); -if ($author) { - $author_data = get_author_data($author); +$author_data = get_author_data($author); - $author_posts = new WP_Query(array( - 'author_name' => $author_slug, - 'posts_per_page' => -1, - 'orderby' => 'date' - )); -} else { - global $coauthors_plus; - $author = $coauthors_plus->get_coauthor_by('user_nicename', $author_slug, true); - $author_data = get_author_data($author); - - $author_posts = get_posts_assigned_to_author($author_data->nicename); -} +$author_posts = new WP_Query(array( + 'author_name' => $author_slug, + 'posts_per_page' => -1, + 'orderby' => 'date' +)); ?>