mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Place holder for Favorite Actions dropdown
git-svn-id: https://develop.svn.wordpress.org/trunk@8985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2446,4 +2446,26 @@ function the_post_password() {
|
||||
global $post;
|
||||
if ( isset( $post->post_password ) ) echo attribute_escape( $post->post_password );
|
||||
}
|
||||
|
||||
function favorite_actions() {
|
||||
$actions = array(
|
||||
'post-new.php' => __('Add New Post'),
|
||||
'page-new.php' => __('Add New Page'),
|
||||
);
|
||||
|
||||
$actions = apply_filters('favorite_actions', $actions);
|
||||
echo '<form class="favorites-form" action="" method="get">';
|
||||
echo '<p id="favorite-actions" class="favorite-actions">';
|
||||
echo '<select name="favorite-action">';
|
||||
foreach ( $actions as $action => $label) {
|
||||
echo "<option value='$action'>";
|
||||
echo $label;
|
||||
echo "</option>\n";
|
||||
}
|
||||
echo '</select>';
|
||||
echo '<input type="submit" value="' . __('Go') . '" name="doaction" id="doaction" class="button action" />';
|
||||
echo '</p>';
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user