Changeset 1695166
- Timestamp:
- 07/12/2017 12:26:54 PM (9 years ago)
- Location:
- change-author/trunk
- Files:
-
- 2 edited
-
change-author.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
change-author/trunk/change-author.php
r1643264 r1695166 4 4 Plugin Name: Change Author 5 5 Plugin URI: 6 Description: Let 's you select any user to be credited as author.6 Description: Lets you select any user to be credited as author. 7 7 Author: Martin Teley 8 Version: 1. 28 Version: 1.3 9 9 */ 10 10 … … 13 13 */ 14 14 function ca_custom_meta() { 15 add_meta_box( 'authordiv', __('Author'), 'ca_meta_callback', array('post','page'), 'normal', 'high' ); 15 $args = array( 16 'public' => true, 17 ); 18 $post_types = get_post_types( $args ); 19 20 add_meta_box( 'authordiv', __('Author'), 'ca_meta_callback', $post_types, 'normal', 'high' ); 16 21 } 17 22 add_action( 'add_meta_boxes', 'ca_custom_meta' ); -
change-author/trunk/readme.txt
r1643265 r1695166 3 3 Tags: author, custom author, custom post author, any user author, user 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 7.45 Tested up to: 4.8 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 Well, some themes link the author name to the author archive and that needs a user account to work. So this plugin will not break such theme functions. 49 49 50 = Wat custom post types are supported? = 51 52 All public post types are supported, both built-in and custom. 53 50 54 51 55 == Changelog == … … 60 64 = 1.2 = 61 65 * Updated to work on pages too (credits to @jondaley) 66 67 = 1.3 = 68 * Updated to support custom post types
Note: See TracChangeset
for help on using the changeset viewer.