[wp-hackers] one thing lead to another...

Haluk Karamete halukkaramete at gmail.com
Thu Mar 6 22:19:31 UTC 2014


You are right about the correction...
Since it is about a specific post, it is supposed to be 'edit-post'  (and
stay as is) as opposed to the general editing capability which ties to
'edit_posts'

Thank you for your register link, though I don't need it anymore cause I
don't need to correct the codex. :)



On Thu, Mar 6, 2014 at 1:50 PM, Nikola Nikolov <nikolov.tmw at gmail.com>wrote:

> You can register from the Support section -
> https://wordpress.org/support/register.php
>
> By the way why do you want to change "edit_post" to "edit_posts"? As far as
> I'm aware the current one is correct(since it's about editing a specific
> post - hence the 123 passed as second parameter).
>
>
> On Thu, Mar 6, 2014 at 11:42 PM, Haluk Karamete <halukkaramete at gmail.com
> >wrote:
>
> > I wanted to make a correction on the codex (
> > http://codex.wordpress.org/Function_Reference/current_user_can
> >
> > which is on this page) ,
> >
> > where it says
> >
> > if ( current_user_can('edit_post', 123) ) {
> >  echo 'The current user can edit post 123';
> > }
> >
> > so that after the correction it would say 'edit_posts' ( instead of
> > 'edit_post' )
> >
> >
> > With that in mind, I clicked on link the login to codex link which lands
> on
> > this URL
> >
> >
> >
> http://codex.wordpress.org/index.php?title=Special:UserLogin&returnto=Function_Reference/current_user_can
> >
> > The page is titled as "Log in / create account"
> >
> > But how do you create an account there?
> > Am I missing something??
> >
> > Also, I could not see any password reminder link in the username/password
> > box area.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list