Random File
Version: 1.6.2
Retrieve the name, path, or link to a randomly chosen file or files in a specified directory.
1.6.2
- Note compatibility through WP 3.3+
- Add link to plugin directory page to readme.txt
- Add Upgrade Notice section to readme.txt
- Update copyright date (2012)
1.6.1
- Note compatibility through WP 3.2+
- Minor code formatting changes (spacing)
- Minor readme.txt formatting changes
- Add plugin homepage and author links in description in readme.txt
- Update copyright date (2011)
1.6
- Add c2c_random_files() to retrieve array of random unique files
- Add hooks 'c2c_random_file' (filter) and 'c2c_random_files' (filter) to respond to the function of the same name so that users can use the apply_filters() notation for invoking template tags
- Use get_option() instead of deprecated get_settings()
- Wrap functions in if(!function_exists()) check
- Remove docs from top of plugin file (all that and more are in readme.txt)
- Tweak description
- Note compatibility with WP 3.0+
- Minor tweaks to code formatting (spacing)
- Add Filters and Upgrade Notice sections to readme.txt
- Remove trailing whitespace
1.5.2
- Add PHPDoc documentation
- Note compatibility with WP 2.9+
- Update copyright date
- Update readme.txt
1.5.1
- Fixed: missing '/' in path construction for reftype 'absolute'
1.5
- Added new reftype of 'hyperlink' to return the filename of the random file hyperlinked to that file
- Added error checking to avoid error when referenced directory does not exist
- Added error checking for when there is an error opening a directory
- Explicit handling of reftype 'absolute' in the code was actually supposed to be 'serverabsolute'
- Minor code tweaks
- Tweaked installation instructions
- Added readme.txt
- Noted and tested compatibility with WP 2.3.3 through 2.8
1.0
- Renamed function from random_file() to c2c_random_file()
- Added new reftype of 'filename'
- Added optional array argument $exceptions for files not to be considered in random file selection
- Updated license and examples
- Verified that plugin works in WP 1.5 (and still works in WP 1.2)
0.9
Requires: 1.5 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-14
Downloads: 14,798
Average Rating
(5 ratings)
Support
Got something to say? Need help?