mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Menu updates: single top level menus, B&W/color icons (sprite), fix for the Firefox bug of not firing mouseout on absolute positioned elements over textareas/text fields, scaling down properly for different user roles, includes patch by Ryan, fixes #7966
git-svn-id: https://develop.svn.wordpress.org/trunk@9578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1252,7 +1252,7 @@ SWFUpload.onload = function() {
|
||||
swfupload_load_failed_handler: swfuploadLoadFailed,
|
||||
custom_settings : {
|
||||
degraded_element_id : "html-upload-ui", // id of the element displayed when swfupload is unavailable
|
||||
swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available
|
||||
swfupload_element_id : "flash-upload-ui" // id of the element displayed when swfupload is available
|
||||
},
|
||||
debug: false
|
||||
});
|
||||
@@ -1262,8 +1262,8 @@ SWFUpload.onload = function() {
|
||||
|
||||
<div id="flash-upload-ui">
|
||||
<?php do_action('pre-flash-upload-ui'); ?>
|
||||
<div id="flash-browse-button"></div>
|
||||
<p><?php _e( 'Choose files to upload' ); ?></p>
|
||||
|
||||
<div><?php _e( 'Choose files to upload' ); ?> <div id="flash-browse-button"></div></div>
|
||||
<?php do_action('post-flash-upload-ui'); ?>
|
||||
<p class="howto"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p>
|
||||
</div>
|
||||
|
||||
@@ -549,10 +549,9 @@ function add_menu_page( $page_title, $menu_title, $access_level, $file, $functio
|
||||
add_action( $hookname, $function );
|
||||
|
||||
if ( empty($icon_url) )
|
||||
$icon_url = 'images/menu/generic.png';
|
||||
$icon_url = 'images/generic.png';
|
||||
|
||||
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top-single ' . $hookname, $hookname, $icon_url );
|
||||
$menu[] = array ( '', $access_level, '', '', 'wp-menu-separator-last' );
|
||||
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
|
||||
|
||||
return $hookname;
|
||||
}
|
||||
|
||||
@@ -2652,7 +2652,7 @@ function do_meta_boxes($page, $context, $object) {
|
||||
if ( in_array($box['id'], $hidden) )
|
||||
$style = 'style="display:none;"';
|
||||
echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '" ' . $style . '>' . "\n";
|
||||
echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
|
||||
echo "<div class='handlediv'><br /></div><h3 class='hndle'><span>{$box['title']}</span></h3>\n";
|
||||
echo '<div class="inside">' . "\n";
|
||||
call_user_func($box['callback'], $object, $box);
|
||||
echo "</div>\n";
|
||||
|
||||
Reference in New Issue
Block a user