Discussion:
one thing lead to another...
Haluk Karamete
2014-03-06 21:42:07 UTC
Permalink
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.
Nikola Nikolov
2014-03-06 21:50:00 UTC
Permalink
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).
Post by Haluk Karamete
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
http://lists.automattic.com/mailman/listinfo/wp-hackers
Haluk Karamete
2014-03-06 22:19:31 UTC
Permalink
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. :)
Post by Nikola Nikolov
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).
Post by Haluk Karamete
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
Post by Haluk Karamete
this URL
http://codex.wordpress.org/index.php?title=Special:UserLogin&returnto=Function_Reference/current_user_can
Post by Haluk Karamete
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
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Otto
2014-03-06 22:22:57 UTC
Permalink
Post by Haluk Karamete
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??
Use your normal WordPress.org login. Same one you use for the support
forums or anywhere else on WordPress.org.

-Otto

Loading...