Rename function

This commit is contained in:
Tetrakern 2023-08-11 11:13:06 +02:00
parent e84a2298e0
commit 0a288f5993
2 changed files with 3 additions and 3 deletions

View File

@ -284,7 +284,7 @@ Fictioneer customizes WordPress by using as many standard action and filter hook
| `navigation_markup_template` | `fictioneer_pagination_markup`
| `nav_menu_link_attributes` | `fictioneer_add_menu_link_attributes`
| `pre_comment_user_ip` | `__return_empty_string`
| `pre_get_posts` | `fictioneer_extend_taxonomy_pages`, `fictioneer_limit_user_fiction_queries`, `fictioneer_add_sof_to_taxonomy_query`
| `pre_get_posts` | `fictioneer_extend_taxonomy_pages`, `fictioneer_edit_others_fictioneer_posts`, `fictioneer_add_sof_to_taxonomy_query`
| `preprocess_comment` | `fictioneer_preprocess_comment`, `fictioneer_validate_comment_form`
| `protected_title_format` | `fictioneer_remove_protected_text`
| `query_vars` | `fictioneer_query_vars`

View File

@ -514,7 +514,7 @@ if ( ! current_user_can( 'manage_options' ) ) {
* @param WP_Query $query The WP_Query instance (passed by reference).
*/
function fictioneer_limit_user_fiction_queries( $query ) {
function fictioneer_edit_others_fictioneer_posts( $query ) {
global $pagenow;
// Abort conditions...
@ -538,7 +538,7 @@ if ( ! current_user_can( 'manage_options' ) ) {
$query->set( 'author', get_current_user_id() );
}
}
add_filter( 'pre_get_posts', 'fictioneer_limit_user_fiction_queries', 9999 );
add_filter( 'pre_get_posts', 'fictioneer_edit_others_fictioneer_posts', 9999 );
// === EDIT_READ_OTHERS_FILES ================================================