Ticket #20194: 20194.diff
File 20194.diff, 5.0 KB (added by , 13 years ago) |
---|
-
wp-admin/options-general.php
112 112 <span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td> 113 113 </tr> 114 114 <tr valign="top"> 115 <th scope="row"><label for="home"><?php _e('Site Description') ?></label></th> 116 <td><textarea name="site_description" rows="5" cols="50" id="site_description" class="regular-text code"><?php echo esc_textarea( get_option( 'site_description' ) ); ?></textarea> 117 <span class="description"><?php _e('Enter a longer description of what the site is about. This will be seen by search engines looking at your site.'); ?></span></td> 118 </tr> 119 <tr valign="top"> 115 120 <th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th> 116 121 <td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" /> 117 122 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td> -
wp-admin/options.php
59 59 wp_die(__('Cheatin’ uh?')); 60 60 61 61 $whitelist_options = array( 62 'general' => array( 'blogname', 'blogdescription', ' gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string' ),62 'general' => array( 'blogname', 'blogdescription', 'site_description', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string' ), 63 63 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ), 64 64 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', 'embed_autourls', 'embed_size_w', 'embed_size_h' ), 65 65 'privacy' => array( 'blog_public' ), -
wp-includes/default-filters.php
199 199 add_action( 'wp_head', 'wp_enqueue_scripts', 1 ); 200 200 add_action( 'wp_head', 'feed_links', 2 ); 201 201 add_action( 'wp_head', 'feed_links_extra', 3 ); 202 add_action( 'wp_head', 'the_description' ); 202 203 add_action( 'wp_head', 'rsd_link' ); 203 204 add_action( 'wp_head', 'wlwmanifest_link' ); 204 205 add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); -
wp-includes/general-template.php
2212 2212 } 2213 2213 2214 2214 /** 2215 * Display the site description. 2216 * 2217 * Outputs the site description from the Settings->General field. 2218 * 2219 * @since 3.4.0 2220 * @uses apply_filters() Calls 'the_description' hook. 2221 * 2222 * @param string $type The type of description to output - (html|meta) 2223 */ 2224 function the_description( $type = '' ) { 2225 echo apply_filters('the_description', get_the_description($type), $type) . "\n"; 2226 } 2227 2228 /** 2229 * Creates the description output 2230 * 2231 * Returns the correct site description type for the requested output format. Allows 2232 * for a plugin to filter generators on an individual basis using the 2233 * 'get_the_description_{$type}' filter. 2234 * 2235 * @since 3.4.0 2236 * @uses apply_filters() Calls 'get_the_description_$type' hook. 2237 * 2238 * @param string $type The type of description to return - (html|meta) defaults to meta 2239 * @return string The HTML content for the description. 2240 */ 2241 function get_the_description( $type = '' ) { 2242 if ( empty( $type ) ) 2243 $type = 'meta'; 2244 2245 switch ( $type ) { 2246 case 'html': 2247 $des = get_option('site_description'); 2248 break; 2249 case 'meta': 2250 $des = '<meta name="description" content="' . esc_attr( get_option('site_description') ) . '" />'; 2251 break; 2252 } 2253 return apply_filters( 'get_the_description_{$type}', $des, $type ); 2254 } 2255 2256 2257 /** 2215 2258 * Outputs the html checked attribute. 2216 2259 * 2217 2260 * Compares the first two arguments and if identical marks as checked