Plugin Directory

Changeset 1695166


Ignore:
Timestamp:
07/12/2017 12:26:54 PM (9 years ago)
Author:
mrxthefifth
Message:

Version 1.3

Location:
change-author/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • change-author/trunk/change-author.php

    r1643264 r1695166  
    44Plugin Name: Change Author
    55Plugin URI:
    6 Description: Let's you select any user to be credited as author.
     6Description: Lets you select any user to be credited as author.
    77Author: Martin Teley
    8 Version: 1.2
     8Version: 1.3
    99*/
    1010
     
    1313 */
    1414function 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' );
    1621}
    1722add_action( 'add_meta_boxes', 'ca_custom_meta' );
  • change-author/trunk/readme.txt

    r1643265 r1695166  
    33Tags: author, custom author, custom post author, any user author, user
    44Requires at least: 3.0.1
    5 Tested up to: 4.7.4
     5Tested up to: 4.8
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848Well, 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.
    4949
     50= Wat custom post types are supported? =
     51
     52All public post types are supported, both built-in and custom.
     53
    5054
    5155== Changelog ==
     
    6064= 1.2 =
    6165* 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.