Last active
          August 15, 2022 13:35 
        
      - 
      
 - 
        
Save ginsterbusch/3c18f6863c070a2e35148ef8f1e66911 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
ginsterbusch revised this gist
Aug 15, 2022 . No changes.There are no files selected for viewing
 - 
        
ginsterbusch revised this gist
Aug 15, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function fix_admin_page_title( $admin_title, $title ) { if( isset( $current_screen->post_type ) && $action == 'edit' ) { //$return = $post->post_title . ' (' . $post->ID . ') - ' . get_bloginfo('name'); $return = $post->post_title . ' (' . $post->ID . ') - ' . $admin_title; } return $return;  - 
        
ginsterbusch revised this gist
Aug 15, 2022 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,13 @@ function fix_admin_page_title( $admin_title, $title ) { global $post, $title, $action, $current_screen; $return = $admin_title; if( isset( $current_screen->post_type ) && $action == 'edit' ) { //$return = $post->post_title . ' (' . $post->ID . ') - ' . get_bloginfo('name'); $return = $post->post_title . ' (' . $post->ID . ') - ' . $admin_title . ''; } return $return; }  - 
        
ginsterbusch revised this gist
Aug 15, 2022 . No changes.There are no files selected for viewing
 - 
        
ginsterbusch created this gist
Aug 15, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ add_filter( 'admin_title', 'fix_admin_page_title' , 10, 2 ); function fix_admin_page_title( $admin_title, $title ) { global $post, $title, $action, $current_screen; if( isset( $current_screen->post_type ) && $action == 'edit' ) { /* this is the new page title */ $title = $post->post_title . ' (' . $post->ID . ') - ' . get_bloginfo('name'); } else { $title = $title . ' - ' . get_bloginfo('name'); } return $title; }