update_recently_edited [ WordPress Function ]
update_recently_edited ( $file )
| Parameters: |
|
| Defined at: |
|
Benzer Fonksiyonlar: update_comment_meta, update_comment_cache, update_home_siteurl, update_archived, update_metadata
{@internal Missing Short Description}}
Source
<?php
function update_recently_edited( $file ) {
$oldfiles = (array ) get_option( 'recently_edited' );
if ( $oldfiles ) {
$oldfiles = array_reverse( $oldfiles );
$oldfiles[] = $file;
$oldfiles = array_reverse( $oldfiles );
$oldfiles = array_unique( $oldfiles );
if ( 5 < count( $oldfiles ))
array_pop( $oldfiles );
} else {
$oldfiles[] = $file;
}
update_option( 'recently_edited', $oldfiles );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Docs for page misc.php
update_recently_edited (line 179). since: 1.5.0. void update_recently_edited ( unknown_type $file). unknown_type $file. url_shorten (line 221). Shorten an URL ...
phpdoc.wordpress.org - Clean out User Contribution form after submit - Kentico CMS for ...
Jan 11, 2012 ... So the solution depends on whether you want to create a new document, after the form is cleared, or update recently edited document. Can you ...
devnet.kentico.com - <?php /** * Theme editor administration panel. * * @package ...
'wp-admin/admin-header.php' ); update_recently_edited( $file ); if ( ! is_file( $file ) ) $error = true; $content = ''; if ( ! $error && filesize( $file ) > 0 ) { $f = fopen($file, ...
svn.automattic.com - WordPress Cross Site Scripting Vulnerability in templates.php ...
Jan 4, 2007 ... Comment out line 72 in /wp-admin/templates.php, which contains update_recently_edited($file);; Patch templates.php with that from the latest ...
www.blogherald.com