Ticket #36702: 36702.wapuu-default.diff
File 36702.wapuu-default.diff, 10.3 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/class-wp-comments-list-table.php
56 56 57 57 public function floated_admin_avatar( $name, $comment_ID ) { 58 58 $comment = get_comment( $comment_ID ); 59 $avatar = get_avatar( $comment, 32, ' mystery' );59 $avatar = get_avatar( $comment, 32, 'wapuu' ); 60 60 return "$avatar $name"; 61 61 } 62 62 -
src/wp-admin/includes/comment.php
172 172 * @return string Avatar with Admin name. 173 173 */ 174 174 function floated_admin_avatar( $name ) { 175 $avatar = get_avatar( get_comment(), 32, ' mystery' );175 $avatar = get_avatar( get_comment(), 32, 'wapuu' ); 176 176 return "$avatar $name"; 177 177 } 178 178 -
src/wp-admin/includes/dashboard.php
665 665 666 666 <li id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>> 667 667 668 <?php echo get_avatar( $comment, 50, ' mystery' ); ?>668 <?php echo get_avatar( $comment, 50, 'wapuu' ); ?> 669 669 670 670 <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?> 671 671 -
src/wp-admin/includes/schema.php
474 474 'medium_size_h' => 300, 475 475 476 476 // 2.6 477 'avatar_default' => ' mystery',477 'avatar_default' => 'wapuu', 478 478 479 479 // 2.7 480 480 'large_size_w' => 1024, -
src/wp-admin/includes/upgrade.php
191 191 $wpdb->insert( $wpdb->term_relationships, array('term_taxonomy_id' => $cat_tt_id, 'object_id' => 1) ); 192 192 193 193 // Default comment 194 $first_comment_author = __('Mr WordPress'); 194 $first_comment_author = __('A WordPress Commenter'); 195 $first_comment_email = 'wapuu@wordpress.org'; 195 196 $first_comment_url = 'https://wordpress.org/'; 196 197 $first_comment = __('Hi, this is a comment. 197 To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.'); 198 To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them. 199 Commenter avatars come from <a href="https://gravatar.com">Gravatar</a>.'); 198 200 if ( is_multisite() ) { 199 201 $first_comment_author = get_site_option( 'first_comment_author', $first_comment_author ); 202 $first_comment_email = get_site_option( 'first_comment_email', $first_comment_email ); 200 203 $first_comment_url = get_site_option( 'first_comment_url', network_home_url() ); 201 204 $first_comment = get_site_option( 'first_comment', $first_comment ); 202 205 } … … 203 206 $wpdb->insert( $wpdb->comments, array( 204 207 'comment_post_ID' => 1, 205 208 'comment_author' => $first_comment_author, 206 'comment_author_email' => '',209 'comment_author_email' => $first_comment_email, 207 210 'comment_author_url' => $first_comment_url, 208 211 'comment_date' => $now, 209 212 'comment_date_gmt' => $now_gmt, -
src/wp-admin/network/settings.php
62 62 'first_post', 'first_page', 'first_comment', 'first_comment_url', 'first_comment_author', 63 63 'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'global_terms_enabled', 64 64 'illegal_names', 'limited_email_domains', 'banned_email_domains', 'WPLANG', 'admin_email', 65 'first_comment_email', 65 66 ); 66 67 67 68 // Handle translation install. … … 265 266 </td> 266 267 </tr> 267 268 <tr> 269 <th scope="row"><label for="first_comment_email"><?php _e( 'First Comment Email' ) ?></label></th> 270 <td> 271 <input type="text" size="40" name="first_comment_email" id="first_comment_email" aria-describedby="first-comment-email-desc" value="<?php echo esc_attr( get_site_option( 'first_comment_email' ) ); ?>" /> 272 <p class="description" id="first-comment-email-desc"> 273 <?php _e( 'The email address of the first comment author on a new site.' ) ?> 274 </p> 275 </td> 276 </tr> 277 <tr> 268 278 <th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th> 269 279 <td> 270 280 <input type="text" size="40" name="first_comment_url" id="first_comment_url" aria-describedby="first-comment-url-desc" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" /> -
src/wp-admin/options-discussion.php
220 220 221 221 <?php 222 222 $avatar_defaults = array( 223 'wapuu' => __( 'Wapuu' ), 223 224 'mystery' => __('Mystery Person'), 224 225 'blank' => __('Blank'), 225 226 'gravatar_default' => __('Gravatar Logo'), … … 239 240 * @param array $avatar_defaults Array of default avatars. 240 241 */ 241 242 $avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults ); 242 $default = get_option( 'avatar_default', ' mystery' );243 $default = get_option( 'avatar_default', 'wapuu' ); 243 244 $avatar_list = ''; 244 245 245 246 // Force avatars on to display these choices -
src/wp-includes/link-template.php
3739 3739 * @type string $default URL for the default image or a default type. Accepts '404' (return 3740 3740 * a 404 instead of a default image), 'retro' (8bit), 'monsterid' (monster), 3741 3741 * 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'mystery', 'mm', 3742 * or 'mysteryman' (The Oyster Man), ' blank' (transparent GIF), or3742 * or 'mysteryman' (The Oyster Man), 'wapuu', 'blank' (transparent GIF), or 3743 3743 * 'gravatar_default' (the Gravatar logo). Default is the value of the 3744 * 'avatar_default' option, with a fallback of ' mystery'.3744 * 'avatar_default' option, with a fallback of 'wapuu'. 3745 3745 * @type bool $force_default Whether to always show the default image, never the Gravatar. Default false. 3746 3746 * @type string $rating What rating to display avatars up to. Accepts 'G', 'PG', 'R', 'X', and are 3747 3747 * judged in that order. Default is the value of the 'avatar_rating' option. … … 3773 3773 * @type string $default URL for the default image or a default type. Accepts '404' (return 3774 3774 * a 404 instead of a default image), 'retro' (8bit), 'monsterid' (monster), 3775 3775 * 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'mystery', 'mm', 3776 * or 'mysteryman' (The Oyster Man), ' blank' (transparent GIF), or3776 * or 'mysteryman' (The Oyster Man), 'wapuu', blank' (transparent GIF), or 3777 3777 * 'gravatar_default' (the Gravatar logo). Default is the value of the 3778 * 'avatar_default' option, with a fallback of ' mystery'.3778 * 'avatar_default' option, with a fallback of 'wapuu'. 3779 3779 * @type bool $force_default Whether to always show the default image, never the Gravatar. Default false. 3780 3780 * @type string $rating What rating to display avatars up to. Accepts 'G', 'PG', 'R', 'X', and are 3781 3781 * judged in that order. Default is the value of the 'avatar_rating' option. … … 3798 3798 'size' => 96, 3799 3799 'height' => null, 3800 3800 'width' => null, 3801 'default' => get_option( 'avatar_default', ' mystery' ),3801 'default' => get_option( 'avatar_default', 'wapuu' ), 3802 3802 'force_default' => false, 3803 3803 'rating' => get_option( 'avatar_rating' ), 3804 3804 'scheme' => null, … … 3834 3834 } 3835 3835 3836 3836 if ( empty( $args['default'] ) ) { 3837 $args['default'] = get_option( 'avatar_default', ' mystery' );3837 $args['default'] = get_option( 'avatar_default', 'wapuu' ); 3838 3838 } 3839 3839 3840 3840 switch ( $args['default'] ) { -
src/wp-includes/pluggable.php
2237 2237 * @param int $size Optional. Height and width of the avatar image file in pixels. Default 96. 2238 2238 * @param string $default Optional. URL for the default image or a default type. Accepts '404' 2239 2239 * (return a 404 instead of a default image), 'retro' (8bit), 'monsterid' 2240 * (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 2240 * (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'wapuu', 2241 2241 * 'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF), 2242 2242 * or 'gravatar_default' (the Gravatar logo). Default is the value of the 2243 * 'avatar_default' option, with a fallback of ' mystery'.2243 * 'avatar_default' option, with a fallback of 'wapuu'. 2244 2244 * @param string $alt Optional. Alternative text to use in <img> tag. Default empty. 2245 2245 * @param array $args { 2246 2246 * Optional. Extra arguments to retrieve the avatar. … … 2266 2266 'size' => 96, 2267 2267 'height' => null, 2268 2268 'width' => null, 2269 'default' => get_option( 'avatar_default', ' mystery' ),2269 'default' => get_option( 'avatar_default', 'wapuu' ), 2270 2270 'force_default' => false, 2271 2271 'rating' => get_option( 'avatar_rating' ), 2272 2272 'scheme' => null,