[wp-trac] [WordPress Trac] #60026: Strange behavior WordPress in multisite environment wicustomizer
WordPress Trac
noreply at wordpress.org
Sun Aug 18 22:31:16 UTC 2024
#60026: Strange behavior WordPress in multisite environment wicustomizer
-----------------------------+-----------------------------------
Reporter: fkfaisalkhan007 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.4.2
Severity: normal | Resolution:
Keywords: | Focuses: docs, administration
-----------------------------+-----------------------------------
Comment (by junebey):
if valid, i can provide a patch.
{{{
$sendback = admin_url( 'edit.php' );
if ( 'post' != $post->post_type && ( $post_type_object =
get_post_type_object( $post->post_type ) ) ) {
$sendback .= '?post_type=' . $post->post_type;
$sendback_text = sprintf( _x('Go to All %s', 'post type general name:
Posts, Pages, etc.'), $post_type_object->labels->name );
} else {
$sendback_text = __('Go to All Posts');
}
if ( 'post' != $post->post_type )
$sendback = add_query_arg( 'post_type', $post->post_type, $sendback );
$sendback_text = get_post_type_object( $post->post_type
)->labels->all_items;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60026#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list