From 408e9ed2e278e28091560b8a79bccb22670e645a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 2 Apr 2010 04:45:22 +0000 Subject: [PATCH] Update obsolete docs in Twentyten. git-svn-id: https://develop.svn.wordpress.org/trunk@13936 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/functions.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index d65b85f457..9b0cd072dc 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -19,15 +19,12 @@ * to a filter or action hook. The hook can be removed by using remove_action() or * remove_filter() and you can attach your own function to the hook. * - * In this example, since both hooks are attached using the default priority (10), the first - * one attached (which would be the child theme) will run. We can remove the parent theme's - * hook only after it is attached, which means we need to wait until setting up the child theme: + * We can remove the parent theme's hook only after it is attached, which means we need to + * wait until setting up the child theme: * * * add_action( 'after_setup_theme', 'my_child_theme_setup' ); * function my_child_theme_setup() { - * // We are replacing twentyten_setup() with my_child_theme_setup() - * remove_action( 'after_setup_theme', 'twentyten_setup' ); * // We are providing our own filter for excerpt_length (or using the unfiltered value) * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); * ...