Rename function
This commit is contained in:
parent
e84a2298e0
commit
0a288f5993
@ -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`
|
||||
|
@ -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 ================================================
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user