Changeset 58983 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 09/03/2024 10:41:06 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r58961 r58983 1805 1805 } 1806 1806 1807 $sendback = wp_get_referer(); 1808 if ( $locked && $sendback && ! str_contains( $sendback, 'post.php' ) && ! str_contains( $sendback, 'post-new.php' ) ) { 1809 1810 $sendback_text = __( 'Go back' ); 1811 } else { 1807 $sendback = wp_get_referer(); 1808 $sendback_text = __( 'Go back' ); 1809 1810 if ( ! $locked || ! $sendback || str_contains( $sendback, 'post.php' ) || str_contains( $sendback, 'post-new.php' ) ) { 1812 1811 $sendback = admin_url( 'edit.php' ); 1813 1812 … … 1816 1815 } 1817 1816 1818 $sendback_text = get_post_type_object( $post->post_type )->labels->all_items; 1817 $post_type_object = get_post_type_object( $post->post_type ); 1818 1819 if ( $post_type_object ) { 1820 $sendback_text = $post_type_object->labels->all_items; 1821 } 1819 1822 } 1820 1823
Note: See TracChangeset
for help on using the changeset viewer.