Removed references to co-authors in docs. Removed one more co-authors reference in templates

This commit is contained in:
Joren Mathews 2015-01-02 14:43:47 -08:00
Родитель 2c3c2b57d6
Коммит dfbbae65d2
5 изменённых файлов: 6 добавлений и 58 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -16,5 +16,4 @@ Plugin Settings
plugins/passwordprotect
plugins/relatedposts
plugins/simplefields
plugins/coauthors
plugins/wordpress-seo.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.

Просмотреть файл

@ -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'
));
?>
<div class="close-button">

Просмотреть файл

@ -1,24 +1,2 @@
<?php
add_filter( 'coauthors_guest_author_fields', 'capx_filter_guest_author_fields', 10, 2);
function capx_filter_guest_author_fields($fields_to_return, $groups) {
if (in_array('all', $groups) || in_array('contact-info', $groups)) {
$fields_to_return[] = array(
'key' => 'twitter',
'label' => 'Twitter',
'group' => 'contact-info',
);
$fields_to_return[] = array(
'key' => 'facebook',
'label' => 'Facebook',
'group' => 'contact-info',
);
$fields_to_return[] = array(
'key' => 'googleplus',
'label' => 'Google Plus',
'group' => 'contact-info',
);
}
return $fields_to_return;
}
?>