Support 110 years of independent journalism.

  1. Science & Tech
9 December 2015

The story of WordPress’s nonces

An etymological explanation. 

By Barbara Speed

We all know what nonce means. It means paedophile, right? Someone, in the words of Oxford Dictionaries, “convicted of a sexual offence, especially against a child.”

So when Twitter user @thepigeonpost stumbled across this blogpost, titled “an introduction to WordPress nonces”, the whole internet giggled its way through the unintentionally funny piece. (Especially enjoyable was the subhead “What does a nonce look like”?)

WordPress itself hosts a long explanation of its nonces, beginning with the simple definition: “A nonce is a ‘number used once’ to help protect URLs and forms from certain types of misuse, malicious or otherwise.” But the site hasn’t accidentally re-coined a British slang word: this usage of the term has actually been around since 1150, and still forms the primary meaning of the word in most dictionaries. 

While it makes sense as a shortening of “n(umber used )once”, it actually started out as a truncated version of “the” and the Middle English word “ane”, meaning “one”. Over time, “thane” became “nonce” via what Oxford Dictionaries calls a “wrong division”, which is where a word loses or gains letters based on words commonly used before or after. Another example is “newt”, which was originally “ewt” but took on the “n” thanks to misunderstandings of the phase “an ewt”. 

This sense of “nonce” is now rarely used, but is a very useful and commonly used concept in technology, where unque strings of numbers and letters are used to create unique website links or profiles, or send secure data via encryption. Confusingly, WordPress’s nonces used as security keys aren’t only used once, but they still, according to the site, “protect against several types of attack” in URLs.

Select and enter your email address Your weekly guide to the best writing on ideas, politics, books and culture every Saturday - from the New Statesman. Sign up directly at The New Statesman's quick and essential guide to the news and politics of the day. Sign up directly at Stay up to date with NS events, subscription offers & updates. Weekly analysis of the shift to a new economy from the New Statesman's Spotlight on Policy team.
  • Administration / Office
  • Arts and Culture
  • Board Member
  • Business / Corporate Services
  • Client / Customer Services
  • Communications
  • Construction, Works, Engineering
  • Education, Curriculum and Teaching
  • Environment, Conservation and NRM
  • Facility / Grounds Management and Maintenance
  • Finance Management
  • Health - Medical and Nursing Management
  • HR, Training and Organisational Development
  • Information and Communications Technology
  • Information Services, Statistics, Records, Archives
  • Infrastructure Management - Transport, Utilities
  • Legal Officers and Practitioners
  • Librarians and Library Management
  • Management
  • Marketing
  • OH&S, Risk Management
  • Operations Management
  • Planning, Policy, Strategy
  • Printing, Design, Publishing, Web
  • Projects, Programs and Advisors
  • Property, Assets and Fleet Management
  • Public Relations and Media
  • Purchasing and Procurement
  • Quality Management
  • Science and Technical Research and Development
  • Security and Law Enforcement
  • Service Delivery
  • Sport and Recreation
  • Travel, Accommodation, Tourism
  • Wellbeing, Community / Social Services
Visit our privacy Policy for more information about our services, how New Statesman Media Group may use, process and share your personal data, including information on your rights in respect of your personal data and how you can unsubscribe from future marketing communications.

“Nonce”, meaning sex offender, came from different roots altogether: it seems to have started in prisons, and comes either from the word “Nonsense” or the Lincolnshire slang “nonse”, meaning “good for nothing person”, depending on who you ask.

Content from our partners
Planetary perspectives: how data can transform disaster response and preparation
How measurement can help turn businesses’ sustainability goals into action
How UK ports are unlocking green growth

So in summary: WordPress looks a bit silly, but less silly than you might assume.