kopa
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: author permissionsusers with same userlevel can get to the edit screen, but then they are not allowed to save the updated post. ??
Forum: Fixing WordPress
In reply to: author permissionsok – i found the function:
/wp-includes/functions_post.php:/* returns true if $user_id can edit $post_id */
function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
$author_data = get_userdata($user_id);
$post = get_post($post_id);
$post_author_data = get_userdata($post->post_author);if ( (($user_id == $post_author_data->ID) && !($post->post_status == ‘publish’ && $author_data->user_level < 2))
|| ($author_data->user_level > $post_author_data->user_level)
|| ($author_data->user_level >= 10) ) {
return true;
} else {
return false;
}
}change to:
/* returns true if $user_id can edit $post_id */
function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
$author_data = get_userdata($user_id);
$post = get_post($post_id);
$post_author_data = get_userdata($post->post_author);if ( (($user_id == $post_author_data->ID) && !($post->post_status == ‘publish’ && $author_data->user_level < 2))
|| ($author_data->user_level >= $post_author_data->user_level)
|| ($author_data->user_level >= 10) ) {
return true;
} else {
return false;
}
}Forum: Fixing WordPress
In reply to: problem with 404.php templatePosted detailed notes at the bugtracker: https://mosquito.www.ads-software.com/view.php?id=353
Forum: Fixing WordPress
In reply to: problem with 404.php templateHi Ryan, my server is Apache/1.3.31 Here is a link to phpinfo.php on my server: https://kopa.dreamhost.com/wordpress/phpinfo.php
Do you need anything else? How can I find out what PATH_INFO is set to?Forum: Fixing WordPress
In reply to: problem with 404.php templateI have the most recent CVS but a lot of problems with kubrick. When I delete 404.php it shows the posts at least but it seems that is_home() in the sidebar template retourns false when it should retourn true …
Could it be a webserver – mod_rewrite problem? But the default template is functioning flawless! weird ??Forum: Fixing WordPress
In reply to: problem with 404.php templateI still can’t get past the kubrick 404 template until I delete/rename the template file (404.php). Anyone a suggestion how to use 404 templates?
Forum: Fixing WordPress
In reply to: problem with 404.php templateI have todays (Nov 28) wordpress cvs running and kubrick 1.3rc2 and still getting those 404 errors! Did you fix this in the theme or in the wordpress codebase?