code&theory

What Are WordPress Nonces?

Keeping your WordPress theme or plugin code secure is important to prevent possible attacks from malicious users. Today we’ll look at how nonces (number used once) can also help keep your WordPress themes and plugins secure. What Are WordPress Nonces? WordPress nonces are defined as: … a “number used once” to help protect URLs and forms from certain types of misuse, malicious…

Plurality of the web with javascript

Seventy-one percent of today’s internet users don’t speak English as a first language, and that number keeps growing. But few people specialize in internationalization. As a result, most sites get it wrong—because things that seem straightforward are often anything but. Take pluralization. Turning singular words into plurals within strings gets tricky quickly—even in English, where most plural words end with an s.…

File Upload With AJAX

This is a very basic AJAX file uploading to demonstrate how uploading can be done through AJAX, an advanced file uploading script will soon follow. The Concept Unlike the ordinary file upload, where you submit the file and getting processed, most of the action happens in the back-end and the it is the Web Browsers that does the front-end crunching, but in…