Firstly it is best to not edit your wordpress core files inside wp-admin but rather modify them with filters/actions and hooks. Check the wordpress codex to see all the filters you could use. Here is the code for a filter that you can put into your theme functions file (/wp-content/themes/{the-theme-you-are-using}/functions.php) to make the view post use target="_blank"
function my_get_sample_permalink_html($a){
return preg_replace("/<span id='view-post-btn'><a/","<span id='view-post-btn'><a target="_blank"",$a);
}
add_filter('get_sample_permalink_html','my_get_sample_permalink_html');
Related Posts:
- Change the Theme in Jupyter Notebook?
- Extra TinyMCE editor strips and tags?
- Avoid converting “>” to >
- How to add multiple buttons to TinyMCE?
- How to edit posts with the new wp_editor api?
- Force TinyMCE editor’s “Toolbar Toggle” to be automatically chosen & expanded
- WordPress 4.6 link edit dialog is too rudimentary
- post editor changes & to &
- Disable escaping html
- Gutenberg block editor – list of form components for custom blocks
- Completely disable editor
- Editing Screen: Make Update or Publish Button Follow The Page
- If two users attempt to modify a page, does WordPress still work correctly?
- What’s the Best Way to Edit WordPress Files?
- Why is WordPress WYSIWYMG and how do I make it WYSIWYG?
- Add visual editor capability to custom excerpt window?
- Open posts in editor in the ‘Text’ mode by default
- Text cut off on save
- line break are not working when editing a post [closed]
- Making the Post/Page Content Editor Box Bigger?
- Showing only certain buttons on tinymice content editor
- Set default text for the editor in new posts
- Add option for editors through `register_setting`
- Remove all table widths from editor content
- WordPress post editor crashes with Polyfill typo
- in network setup super admin has the tinyMCE buttons and the regular admin has not
- edit posts through front-end
- How to get Text Selection in WordPress Editor
- Float images in content
- Good tutorial on how to make custom write panels in WordPress 3?
- Always paste as a text in visual editor
- Use MarkItUp as editor and not the default
- Restrict other Admins from using Editor in Admin Panel
- Editor doesn’t load properly on my self-hosted WordPress 3.3
- Can Rich Text features be configured per user?
- How to add notice text above Post Editor?
- Edit the archive-{custom_page}.php via WP editor
- How to disable YouTube (and any other oembed) embeding in the editor
- Creating table layout in WYSIWYG editor
- Add default text to multiple wysiwyg editors
- WYSIWYG eating up first p in td
- problem adding code into wp editor for https://wordpress.org/support [closed]
- Adding content in Gutenberg editor
- How to display full width block without toolbar?
- WordPress editor converted/deleted HTML entities code
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Opening Brackets Do Not Format to Paragraphs in Visual Editor
- WordPress editor spacing very unreliable
- wp_editor responsive?
- WordPress editor removes all the linefeed characters with WP-Markdown and Syntax Highlighter evolved
- wysiwyg is scrambled
- Why wordpress word count differs from Microsoft word and sites like wordcounter.net
- Is there a plugin that let you edit Posts and Comments in a front-end page?
- WP is not allowing me to post Macintosh .pages documents to my blog
- Intermittant problem saving posts
- Visual Editor: Paragraph styles appear to one admin but not to others
- The simplest way to let clients edit pages
- Editor is shown at full width
- How do you stop WP from stripping code? [closed]
- Problem with some keys when editing HTML in wordpress “text” editor
- Feauterd image meta box not showing up
- change width of the fullscreen editor
- How to paste into WordPress editor without changing existing formatting in editor?
- Edit box scrolls back to the top after updating post
- Built-in spell checker not working in WordPress 3.3.1
- How to use numbered lists in the post editor?
- Force WP to ignore multiple whitespaces
- I want a widget to appear on only one page
- Resize Rich Post Editor in Chrome
- Best way to strip the_content of html on the front end?
- Why does a certain attribute disappear after a while from a page?
- Can only edit longer pages on phone, not on PC
- Adding a Media Button to the WordPress Content Editor
- Edit Post with a parameter in URL
- Missing Edit button
- Can’t update or publish post/pages with browser Safari
- WordPress page edits are now slow
- Elementor Text Editor Widget Not Working
- Editor width automatically reduced – text is wrapped after 1 character
- editor option not available in dashboard
- WordPress Gutenberg home page “edit Page” option missing
- WP 5 how to add_editor_style for both tinyMCE and Gutenberg
- How to hide a field of the editor by default
- Allow contributors to edit their own images
- Visual editor on front-end call not working properly
- How do I add one more status as “edited by editor”?
- Image Post creates unusual extra HTML
- How to add Thumbnail button in frontend editor
- Inline style appears in the editor but breaks on live site
- How can show my images style from editor
- No paragraphs for a part of text in editor
- WordPress page editor for clients, opinions needed
- Contributor post to be reviewed and published by only one editor
- Tool bar in editor missing in WP
- Forbidden when I’m trying to edit one page
- Only ONE of my blog posts aren’t loading when I click “edit”…really bizarre?
- Why are many options missing from the editor?
- WYSIWYG – Custom field inside link
- Page Edit – Re-arange the order of contents (images, banners, blocks) on a wordpress website
- How can I edit global styles?