Hello ,

im see the new 3.0.1 update:)
now everything works great :)

greets

sebastian
the netherlands
----- Original Message ----- From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, October 27, 2010 2:00 PM
Subject: wp-testers Digest, Vol 68, Issue 17


Send wp-testers mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.automattic.com/mailman/listinfo/wp-testers
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of wp-testers digest..."


Today's Topics:

  1. Permission problems in Custom post type (Navjot Singh)
  2. Re: Permission problems in Custom post type (Chris Jean)
  3. Re: Permission problems in Custom post type (Jon Cave)


----------------------------------------------------------------------

Message: 1
Date: Tue, 26 Oct 2010 20:40:56 +0530
From: Navjot Singh <[email protected]>
Subject: [wp-testers] Permission problems in Custom post type
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8

I am using this code for adding a custom post type

add_action( 'init', 'go_post_types' );

function go_post_types() {
   register_post_type( 'videos',
       array(
           'labels' => array(
               'name' => __( 'Videos' ),
               'singular_name' => __( 'Video' ),
           ),
           'description' => __( 'Video type posts are used to post Videos
to GO site.' ),
           'public' => true,
           'show_ui' => true,
           'publicly_queryable' => true,
           'exclude_from_search' => false,
           '_builtin' => false,
           'menu_position' => 5,
           'menu_icon' => get_stylesheet_directory_uri() .
'/images/videoicon.png',
           'hierarchical' => false,
           'capability_type' => 'post',
           'supports' => array( 'title', 'editor', 'revisions', 'author',
'excerpt', 'custom-fields', 'thumbnail' ),
           'rewrite' => array( 'slug' => 'videos'),
           'can_export' => true,
       )
   );
register_taxonomy("video-type", array("videos"), array("hierarchical" =>
true, "label" => "Video Type", "rewrite" => true));
}
?>

One or two days back everything was fine but today when I logged in, I could
not edit any published video type. Now I can only add videos but not edit
them. Seems some recent Trunk changeset caused the problem. I update the
blog once a day via SVN.

Can't figure out why its like this.

Regards
Navjot Singh


------------------------------

Message: 2
Date: Tue, 26 Oct 2010 10:14:52 -0500
From: Chris Jean <[email protected]>
Subject: Re: [wp-testers] Permission problems in Custom post type
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Since you update your site via svn, have you tried rolling back until
the problem goes away? If you can do that and identify which commit
created the problem, it would greatly help in identifying the code that
created the issue and speed development of a fix.

Chris Jean (AKA gaarai&  chrisbliss18)
Coder for http://ithemes.com/
http://gaarai.com/
@chrisjean


On 10/26/2010 10:10 AM, Navjot Singh wrote:
I am using this code for adding a custom post type

add_action( 'init', 'go_post_types' );

function go_post_types() {
     register_post_type( 'videos',
         array(
             'labels' =>  array(
                 'name' =>  __( 'Videos' ),
                 'singular_name' =>  __( 'Video' ),
             ),
'description' => __( 'Video type posts are used to post Videos
to GO site.' ),
             'public' =>  true,
             'show_ui' =>  true,
             'publicly_queryable' =>  true,
             'exclude_from_search' =>  false,
             '_builtin' =>  false,
             'menu_position' =>  5,
             'menu_icon' =>  get_stylesheet_directory_uri() .
'/images/videoicon.png',
             'hierarchical' =>  false,
             'capability_type' =>  'post',
'supports' => array( 'title', 'editor', 'revisions', 'author',
'excerpt', 'custom-fields', 'thumbnail' ),
             'rewrite' =>  array( 'slug' =>  'videos'),
             'can_export' =>  true,
         )
     );
register_taxonomy("video-type", array("videos"), array("hierarchical" =>
true, "label" =>  "Video Type", "rewrite" =>  true));
}
?>

One or two days back everything was fine but today when I logged in, I could
not edit any published video type. Now I can only add videos but not edit
them. Seems some recent Trunk changeset caused the problem. I update the
blog once a day via SVN.

Can't figure out why its like this.

Regards
Navjot Singh
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers


------------------------------

Message: 3
Date: Tue, 26 Oct 2010 16:52:59 +0100
From: Jon Cave <[email protected]>
Subject: Re: [wp-testers] Permission problems in Custom post type
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Oct 26, 2010 at 4:10 PM, Navjot Singh <[email protected]> wrote:
One or two days back everything was fine but today when I logged in, I could
not edit any published video type. Now I can only add videos but not edit
them. Seems some recent Trunk changeset caused the problem. I update the
blog once a day via SVN.

Can't figure out why its like this.

My guess would be that it has something to do with the new CPT enabled
behaviour in map_meta_cap. See #14122 [1] for details and individual
commits. Nacin will see this shortly and should be able to
confirm/deny.

[1] http://core.trac.wordpress.org/ticket/14122


------------------------------

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers


End of wp-testers Digest, Vol 68, Issue 17
******************************************

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to