dismissed_updates [ WordPress Function ]
dismissed_updates ( No parameters )
| Defined at: |
|
Soorgelijke functies: dismiss_core_update, undismiss_core_update, do_dismiss_core_update, do_undismiss_core_update, list_theme_updates
No description yet.
Source
<?php
function dismissed_updates() {
$dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false ) );
if ( $dismissed ) {
$show_text = esc_js(__('Show hidden updates'));
$hide_text = esc_js(__('Hide hidden updates'));
?>
<script type="text/javascript">
jQuery(function($) {
$('dismissed-updates').show();
$('#show-dismissed').toggle(function(){$(this).text('<?php echo $hide_text; ?>');}, function() {$(this).text('<?php echo $show_text; ?>')});
$('#show-dismissed').click(function() { $('#dismissed-updates').toggle('slow');});
});
</script>
<?php
echo '<p class="hide-if-no-js"><a id="show-dismissed" href="#">'.__('Show hidden updates').'</a></p>';
echo '<ul id="dismissed-updates" class="core-updates dismissed">';
foreach( (array) $dismissed as $update) {
echo '<li>';
list_core_update( $update );
echo '</li>';
}
echo '</ul>';
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Rep. Joe Walsh: Child support case dismissed UPDATES - Lynn ...
Apr 19, 2012 ... WASHINGTON--Rep. Joe Walsh (R-Ill.) announced Thursday--in a joint statement with his ex-wife Laura-- that the issues surrounding her child ...
blogs.suntimes.com - WordPress › Support » [Plugin: Update Notifier] Dismissed Updates
Jon, I'd like to submit a feature request: In WP3, there's an option to dismiss an update notification. For example, a plugin author may release a buggy update ...
wordpress.org - Justin Bieber Is Not a Teen Dad, Paternity Suit Dismissed (UPDATES)
Nov 16, 2011 ... From the blog Amplifier (NEW): Update: Maybe Bieber hasn't dodged his DNA test just yet. WGN Chicago is reporting that Mariah Yeater's suit ...
music.yahoo.com - PHPXRef 0.7 : WordPress : Detail view of update-core.php
Defines 9 functions. list_core_update() dismissed_updates() ...
phpxref.ftwr.co.uk