Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staylor/big-middle-little-endians
WordPress plugin - Fixes rewrites for non-Big Endian date permastructs
https://github.com/staylor/big-middle-little-endians
Last synced: 30 days ago
JSON representation
WordPress plugin - Fixes rewrites for non-Big Endian date permastructs
- Host: GitHub
- URL: https://github.com/staylor/big-middle-little-endians
- Owner: staylor
- Created: 2012-12-30T07:42:21.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-30T23:13:07.000Z (almost 12 years ago)
- Last Synced: 2023-04-09T09:57:21.856Z (over 1 year ago)
- Language: PHP
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
=== Big, Middle, and Little Endians ===
Contributors: wonderboymusic
Tags: rewrite, date, permalinks
Requires at least: 3.0
Tested up to: 3.5
Stable Tag: 0.1Fixes rewrites for non-Big Endian date permastructs
== Description ==
## DATES BY ENDIANNESS ##
(http://{SITE}/{DATE}/hello-world/)
Regardless of your post permastruct, date archives are generated.
Post rewrites completely clobber date rewrites. Date rewrites are broken already, but even when fixed,
they can be overwritten by post rewrites. This plugin fixes date archives and persists them past post overwrites -
supporting every possible flavor of endian, and every logical combination of %year%, %monthnum%, %day% within them.
Below is a matrix of what is possible, the things which do not work in core are marked.!!! = Doesn't work without this plugin
### Big Endian in both directions ###
2012/09/12 yyyy/mm/dd
2012/09 yyyy/mm
2012 yyyy
12 dd !!!
09/12 mm/dd !!!### Reverse of Middle Endian in both directions ###
2012/12/09 yyyy/dd/mm
2012/09 yyyy/mm !!! ~ matches day
2012 yyyyy
09 mm !!!
12/09 dd/mm !!!### Middle Endian in both directions ###
09/12/2012 mm/dd/yyyy
09/12 mm/dd
09 mm
2012 yyyy !!!
09/2012 mm/yyyy !!!### Little Endian in both directions ###
12/09/2012 dd/mm/yyyy
12/09 dd/yy
12 dd
2012 yyyy !!!
09/2012 mm/yyyy !!!### Translated: ###
Year and Month archives don't work when you date format is Middle or Little Endian.
Year archives work in Middle when reversed (reversed, why not), but months do not.This plugin makes all date formats work regardless of endianness.
== Changelog ==
= 0.1 =
* Initial release== Upgrade Notice ==