Permalink
Browse files

adding version removal custom dashbaord thing

  • Loading branch information...
1 parent 2a04ac7 commit de33e13b6ef310fa335b23b626f0029e88d77057 @wycks committed Nov 4, 2011
Showing with 70 additions and 48 deletions.
  1. +70 −48 functions.php
View
@@ -1,49 +1,71 @@
-<?php
-/**
- * @package WordPress
- * @subpackage WP-Skeleton
- */
-
-// drag and drop menu support
-register_nav_menu( 'primary', 'Primary Menu' );
-
-
-//widget support for a right sidebar
-register_sidebar(array(
- 'name' => 'Right SideBar',
- 'id' => 'right-sidebar',
- 'description' => 'Widgets in this area will be shown on the right-hand side.',
- 'before_title' => '<h3>',
- 'after_title' => '</h3>'
-));
-
-//widget support for the footer
-register_sidebar(array(
- 'name' => 'Footer SideBar',
- 'id' => 'footer-sidebar',
- 'description' => 'Widgets in this area will be shown in the footer.',
- 'before_title' => '<h3>',
- 'after_title' => '</h3>'
-));
-
-//This theme uses post thumbnails
-add_theme_support( 'post-thumbnails' );
-
-
-//Apply do_shortcode() to widgets so that shortcodes will be executed in widgets
-add_filter('widget_text', 'do_shortcode');
-
-
-/**
- * MANAGE REMOVING OR ADDING STUFF (aka Function Snippets)
- * comment in or out what you want
- */
-
-// remove stuff, uncomment to enable
-//require_once( get_template_directory() . '/snippets/remove-stuff.php' );
-
-// add stuff
-//require_once( get_template_directory() . '/snippets/add-stuff.php' );
-
-
+<?php
+/**
+ * @package WordPress
+ * @subpackage WP-Skeleton
+ */
+
+// drag and drop menu support
+register_nav_menu( 'primary', 'Primary Menu' );
+
+
+//widget support for a right sidebar
+register_sidebar(array(
+ 'name' => 'Right SideBar',
+ 'id' => 'right-sidebar',
+ 'description' => 'Widgets in this area will be shown on the right-hand side.',
+ 'before_title' => '<h3>',
+ 'after_title' => '</h3>'
+));
+
+//widget support for the footer
+register_sidebar(array(
+ 'name' => 'Footer SideBar',
+ 'id' => 'footer-sidebar',
+ 'description' => 'Widgets in this area will be shown in the footer.',
+ 'before_title' => '<h3>',
+ 'after_title' => '</h3>'
+));
+
+//This theme uses post thumbnails
+add_theme_support( 'post-thumbnails' );
+
+
+//Apply do_shortcode() to widgets so that shortcodes will be executed in widgets
+add_filter('widget_text', 'do_shortcode');
+
+
+/**
+ * MANAGE REMOVING OR ADDING STUFF (aka Function Snippets)
+ * comment in or out what you want
+ */
+
+// remove stuff, uncomment to enable
+//require_once( get_template_directory() . '/snippets/remove-stuff.php' );
+
+// add stuff
+//require_once( get_template_directory() . '/snippets/add-stuff.php' );
+
+
+
+ add_filter('gettext', 'remove_admin_stuff', 20, 3);
+
+
+/**
+ * Remove the text at the bottom of the Custom fields box in WordPress Post/Page Editor.
+ *
+ * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
+ */
+function remove_admin_stuff( $translated_text, $untranslated_text, $domain ) {
+
+ $custom_field_text = 'You are using <span class="b">WordPress %s</span>.';
+
+ if ( is_admin() && $untranslated_text === $custom_field_text ) {
+ return '';
+ }
+
+ return $translated_text;
+}
+
+
+
?>

0 comments on commit de33e13

Please sign in to comment.