WordPress doesn’t have built-in support for developers working in multiple environments, i.e. local, staging, and production. It’s no surprise, given that this workflow isn’t part of the vast majority of users’ lives when publishing with WordPress.
Nevertheless, running a separate development site can be a complex and tedious endeavor and WordPress doesn’t make it very easy. The process usually involves updating the database settings in wp-config.php and running a SQL change on the database to update the ‘wp_siteurl’ and ‘wp_home’ settings. Developers have different tools to help streamline the task of moving between different environments, but it’s still a pain.
The CMS giant says the move is a response to ongoing government surveillance.
In the year since Edward Snowden blew the lid off of widespread government surveillance in the United States and around the world, tech companies large and small have been working to do their bit for online privacy in an effort to regain user trust. In the latest move, popular content management system (CMS) WordPress has announced that it will be securing the connections between users and its websites by serving all *.wordpress.com subdomains over SSL only, by the end of the year.
1) 40% of people will abandon a web page if it takes more than three seconds to load. (Source: Econsultancy)
2) 46% of mobile users report having difficulty interacting with a web page, and 44% complain that navigation was difficult. (Source: Keynote)
3) The change in a website bounce rate spikes to 100% when a page takes 4 seconds or more to load. It jumps to 150% if a page takes 8 seconds or more to load. (Source: Mobile Joomla)
4) 48% of users say that if they arrive on a business site that isn’t working well on mobile, they take it as an indication of the business simply not caring. (Source: MarginMedia)
5) 62% of companies that designed a website specifically for mobile had increased sales. (Source: Econsultancy)
Back in January we asked followers of our Facebook page to suggest and vote for the topic of the next PHP course we create. The winning suggestion was “PHP testing for newbs” from John in Spain. So we went away and spent some time putting together an informative beginner level course, based on your feedback.
Node.js has an under-appreciated module in its standard library that is surprisingly useful. The Readline module does what it says on the box: it reads a line of input from the terminal. This can be used to ask the user a question or two, or to create a prompt at the bottom of the screen. In this tutorial, I intend to show off the capability of Readline and make a real-time CLI chatroom backed by Socket.io. The client will not only send simple messages, but have commands for emotes with /me, private messages with /msg, and allow for nicknames to be changed with /nick.
The WordPress plugin and theme editors have a basic, bare bones implementation of a text editor. They function well but are rather plain and limited in features. This may be due in part to the fact that many WordPress contributors cannot agree on whether or not the admin plugin and theme editors should be included in core.
This hotly debated topic was reignited on the Tavern last year when we featured the controversial Code Revisions project, which added native revisions to the admin theme and plugin editors. The project was part of Google Summer of Code in 2013 and there was some discussion about the possibility of adding it to core.
Whether or not you agree on having the admin editors in core, there are many plugin developers who are happy to extend the feature for those who use it. Syntax Highlight is a new plugin that adds syntax highlighting and a few other handy bits to the editors by incorporating the open source Ace Editor.
The “Press This” browser bookmarklet in WordPress is on its way to a complete redesign via the features-as-plugins development path. If you’ve never used it before, the feature allows you to make quick posts to your WordPress site from anywhere on the web. It’s actually a pretty smart tool for posting and can automatically detect media and grab the proper embed codes.