← All changes
|
jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php
+4
-3
3.3.6
→
3.3.8
View file →
| @@ -191,9 +191,9 @@ | ||
| 191 | 191 | * |
| 192 | 192 | * @return string |
| 193 | 193 | */ |
| 194 | 194 | protected static function get_site_title() { |
| 195 | - $title = get_bloginfo( 'name' ); | |
| 195 | + $title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); | |
| 196 | 196 | |
| 197 | 197 | return $title ? $title : esc_url_raw( ( get_site_url() ) ); |
| 198 | 198 | } |
| 199 | 199 | |
| @@ -229,10 +229,11 @@ | ||
| 229 | 229 | return array( |
| 230 | 230 | 'display_name' => $current_user->display_name, |
| 231 | 231 | 'id' => $current_user->ID, |
| 232 | 232 | 'capabilities' => array( |
| 233 | - 'manage_options' => current_user_can( 'manage_options' ), | |
| 234 | - 'manage_modules' => current_user_can( 'jetpack_manage_modules' ), | |
| 233 | + 'edit_others_posts' => current_user_can( 'edit_others_posts' ), | |
| 234 | + 'manage_options' => current_user_can( 'manage_options' ), | |
| 235 | + 'manage_modules' => current_user_can( 'jetpack_manage_modules' ), | |
| 235 | 236 | ), |
| 236 | 237 | ); |
| 237 | 238 | } |
| 238 | 239 | } |