I'd say it's more reasons for plugins/themes to not serve parts of the product from their own domain. Keep everything self-contained in the plugin itself.
Honestly, that type of thing is best left AS a plugin. The better question is "how do I do similar things without installing their plugins?" which likely just have features/bloat that you don't need/want, and you prefer a slimmed down tailored version to you.
Alongside what @lynq mentioned, there are many types of posts in the posts table and the name used may be matching in a place that you don't realize. I've even seen the -2 appended because media library items already took the slug in question.
If their mime types are set correctly, it should only be opening in the browser, though not as a lightbox popup. Those that prompt you to download need to get some things fixed, but that's up the repo owner.
If you're aiming for making your theme/plugin translation ready, then the last one, esc_html(), doesn't apply. It's not one of the i18n functions. esc_html__() is, which I am guessing you meant.
Pretty much any time you have plain text that will be output to the browser, you should use one of them, but I'd recommend looking up what each do, so you know the right context to use them in.
The key then, from the above code, is to check the get_template_part() line, which looks for, at minimum, a content.php file. Possible, and by guess only, it may be something like content-excerpt.php or something similar. I'm not sure what $theme_options['posts_length'] may return.
Long story short, start looking in content-*.php files
It won't. No, PHP will still be a primary component of themes.
Calypso is a separate app. It uses the still pending REST API, at least for self hosted, to interact and manipulate the data. WordPress.com still has their own REST API that Calypso taps into.
As far as I'm aware, it's not replacing the current admin dashboard, so it's just an extra tool at the moment.
I've always been a fan of just extracting the .org download into the root of your public_html and go from there. This way above seems way more complex than it ever needs to be.
FTP into the server and upload it into the root directory. cPanel would do this fine, a dedicated FTP client would as well. I know WordPress SEO has robots.txt tools that can attempt to create it for you. Probably other SEO plugins have the same as well, but I don't have a wide experience with many of them.
Hopefully they're getting PHP 5.6, which is still a stable release with security updates.
Further reading: https://codex.wordpress.org/oEmbed
Unless I'm mistaken, it gets all the styling from Twitter themselves, so there's that. May or may not work for you still.
I'd say it's more reasons for plugins/themes to not serve parts of the product from their own domain. Keep everything self-contained in the plugin itself.
Besides simply pasting the url to the individual tweet into the post editor, and letting WordPress handle the embedding?
You'd use it as such:
if ( wp_is_mobile() ) { // Show mobile-only things here. }
Edit: It'd be in the template level for your site.
If you want to show something only for non mobile, you can switch above a bit to be:
if ( ! wp_is_mobile() ) { // Show desktop-only things here. }
https://codex.wordpress.org/Function_Reference/wp_is_mobile
Because of that, it's generally considered massively bloated too.
Honestly, that type of thing is best left AS a plugin. The better question is "how do I do similar things without installing their plugins?" which likely just have features/bloat that you don't need/want, and you prefer a slimmed down tailored version to you.
I doubt there's ever been much of a study on this one.
https://core.trac.wordpress.org/changeset/36607 cc /u/Lynq
Alongside what @lynq mentioned, there are many types of posts in the posts table and the name used may be matching in a place that you don't realize. I've even seen the -2 appended because media library items already took the slug in question.
I believe this one should already be taken care of. I remember one of the last couple releases had changes regarding trashed items.
If their mime types are set correctly, it should only be opening in the browser, though not as a lightbox popup. Those that prompt you to download need to get some things fixed, but that's up the repo owner.
If you're aiming for making your theme/plugin translation ready, then the last one, esc_html(), doesn't apply. It's not one of the i18n functions. esc_html__() is, which I am guessing you meant.
Pretty much any time you have plain text that will be output to the browser, you should use one of them, but I'd recommend looking up what each do, so you know the right context to use them in.
The key then, from the above code, is to check the get_template_part() line, which looks for, at minimum, a content.php file. Possible, and by guess only, it may be something like content-excerpt.php or something similar. I'm not sure what $theme_options['posts_length'] may return.
Long story short, start looking in content-*.php files
Chances are all the html you want to immediately deal with is in the post editor for the posts.
Get a dev clone of the website and tear it apart to figure out what's going on with this.
I'm one who'd just set up the redirect in the .htaccess file and be done with it.
Have you tried visiting the page afterwards, both logged in and logged out?
It won't. No, PHP will still be a primary component of themes.
Calypso is a separate app. It uses the still pending REST API, at least for self hosted, to interact and manipulate the data. WordPress.com still has their own REST API that Calypso taps into.
As far as I'm aware, it's not replacing the current admin dashboard, so it's just an extra tool at the moment.
go simple. absolute positioned div on top of everything else, have it fade out with JavaScript once the rest of the page is done.
I've always been a fan of just extracting the .org download into the root of your public_html and go from there. This way above seems way more complex than it ever needs to be.
Never seen any of those file names used before. Are these something outside the files you get when you download a fresh copy at WordPress.org ?
FTP into the server and upload it into the root directory. cPanel would do this fine, a dedicated FTP client would as well. I know WordPress SEO has robots.txt tools that can attempt to create it for you. Probably other SEO plugins have the same as well, but I don't have a wide experience with many of them.