summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-options.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-08-25 11:21:21 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-08-25 11:21:21 +0000
commitf2784d070beeaee5cf53508fdbfe979238a03dee (patch)
tree88e05c0f92f187ba292652e028ba616f92756ba2 /wp-admin/wpmu-options.php
parentee214c220f14d5a95b74e03f7d440475e3dd352f (diff)
downloadwordpress-mu-f2784d070beeaee5cf53508fdbfe979238a03dee.tar.gz
wordpress-mu-f2784d070beeaee5cf53508fdbfe979238a03dee.tar.xz
wordpress-mu-f2784d070beeaee5cf53508fdbfe979238a03dee.zip
Added mu_menu_items filter. props momo360modena, fixes #723
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1435 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/wpmu-options.php')
-rw-r--r--wp-admin/wpmu-options.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/wp-admin/wpmu-options.php b/wp-admin/wpmu-options.php
index a888ff2..cd772a4 100644
--- a/wp-admin/wpmu-options.php
+++ b/wp-admin/wpmu-options.php
@@ -182,10 +182,9 @@ if (isset($_GET['updated'])) {
</tr>
<?php
$menu_perms = get_site_option( "menu_items" );
- $menu_items = array('plugins');
+ $menu_items = apply_filters( 'mu_menu_items', array('plugins' => __('Plugins')) );
foreach ( (array) $menu_items as $key => $val ) {
- $checked = ( $menu_perms[$val] == '1' ) ? ' checked="checked"' : '';
- echo "<tr><th scope='row'>" . ucfirst( $val ) . "</th><td><input type='checkbox' name='menu_items[" . $val . "]' value='1'" . $checked . " /></td></tr>";
+ echo "<tr><th scope='row'>" . wp_specialchars($val) . "</th><td><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . (( $menu_perms[$key] == '1' ) ? ' checked="checked"' : '') . " /></td></tr>";
}
?>
</table>