Ticket #21523: 21523.6.patch
File 21523.6.patch, 3.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/credits.php
69 69 * @param string &$data External library data, passed by reference. 70 70 */ 71 71 function _wp_credits_build_object_link( &$data ) { 72 $data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0]. '</a>';72 $data = '<a href="' . esc_url( $data[1] ) . '">' . esc_html( $data[0] ) . '</a>'; 73 73 } 74 74 75 75 list( $display_version ) = explode( '-', $wp_version ); … … 78 78 ?> 79 79 <div class="wrap about-wrap"> 80 80 81 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version); ?></h1>81 <h1><?php printf( __( 'Welcome to WordPress %s' ), esc_html( $display_version ) ); ?></h1> 82 82 83 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s helps you communicate and share, globally.' ), $display_version); ?></div>83 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s helps you communicate and share, globally.' ), esc_html( $display_version ) ); ?></div> 84 84 85 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version); ?></div>85 <div class="wp-badge"><?php printf( __( 'Version %s' ), esc_html( $display_version ) ); ?></div> 86 86 87 87 <h2 class="nav-tab-wrapper"> 88 88 <a href="about.php" class="nav-tab"> … … 120 120 $title = translate( $group_data['name'] ); 121 121 } 122 122 123 echo '<h4 class="wp-people-group">' . $title. "</h4>\n";123 echo '<h4 class="wp-people-group">' . esc_html( $title ) . "</h4>\n"; 124 124 } 125 125 126 126 if ( ! empty( $group_data['shuffle'] ) ) … … 138 138 default: 139 139 $compact = 'compact' == $group_data['type']; 140 140 $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); 141 echo '<ul class="' . $classes. '" id="wp-people-group-' . $group_slug . '">' . "\n";141 echo '<ul class="' . esc_attr( $classes ) . '" id="wp-people-group-' . $group_slug . '">' . "\n"; 142 142 foreach ( $group_data['data'] as $person_data ) { 143 echo '<li class="wp-person" id="wp-person-' . $person_data[2]. '">' . "\n\t";144 echo '<a href="' . sprintf( $credits['data']['profiles'], $person_data[2]) . '">';143 echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t"; 144 echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '">'; 145 145 $size = 'compact' == $group_data['type'] ? 30 : 60; 146 146 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 147 147 $size *= 2; 148 148 $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 149 echo '<img src="' . esc_ attr( $data['url'] ) . '" srcset="' . esc_attr( $data2x['url'] ) . ' 2x" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t";150 echo '<a class="web" href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">' . $person_data[0]. "</a>\n\t";149 echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t"; 150 echo '<a class="web" href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '">' . esc_html( $person_data[0] ) . "</a>\n\t"; 151 151 if ( ! $compact ) 152 echo '<span class="title">' . translate( $person_data[3]) . "</span>\n";152 echo '<span class="title">' . esc_html( translate( $person_data[3] ) ) . "</span>\n"; 153 153 echo "</li>\n"; 154 154 } 155 155 echo "</ul>\n";