rank-math-editor-permalink not saving if editor has no publish_posts permissions

#60752
  • Resolved m4rny
    Rank Math pro

    I came across a strange problem with saving permlinks if the author has no publish_posts rights. This happens when you save the draft or set the post as pending for review. I checked on the stable and beta versions, but the result was the same. I also checked other permissions, the same, if the author does not have publish_posts permissions, he cannot save the changed permlink.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, I checked the code and it is not relateed with Rank Math, WordPress blocks the permlink update when the user has no publish_posts rights.

    
    if ( ! $update && 'pending' === $post_status && ! current_user_can( $post_type_object->cap->z ) ) {
    		$post_name = '';
    	} elseif ( $update && 'pending' === $post_status && ! current_user_can( 'publish_post', $post_ID ) ) {
    		$post_name = '';
    	}
    

    Hello,

    We are glad you were able to resolve your issue.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘rank-math-editor-permalink not saving if editor has no publish_posts permissions’ is closed to new replies.