WP recently_edited option can be very useful – it tracks last 5 files that you’ve made changes to. Only problem is – well, that’s all, 5 files.
What if I’ve been made numerous changes to WordPress theme files by using default WP admin editor?
It would be helpfull if I had list of, say last 20 files edited and time when that happened.
Do anyone know where is stored function or some else mechanism that allow only 5 item to reside into array of recently_edited WP option?
I’ve tried with wp-admin/includes/schema.php and wp-includes/option.php where it, as I tohught, should be – no results.
The function is
update_recently_edited
inwp-admin/includes/misc.php
. unfortunately it is fixed at 5:The process of saving option conveniently offers filter for new value, with access to old value as well. We only need to combine both and give it to WP as value to save:
PS curiously I can’t figure out where is this list actually used?.. Or is it just there for those who want something to do with it in extensions?