diff --git a/src/wp-admin/css/nav-menus.css b/src/wp-admin/css/nav-menus.css
index 77c6274..cd883e2 100644
|
a
|
b
|
ul.add-menu-item-tabs li { |
| 65 | 65 | position: relative; |
| 66 | 66 | } |
| 67 | 67 | |
| | 68 | ul.nav-tab-wrapper > li { |
| | 69 | margin-bottom: 0; |
| | 70 | } |
| | 71 | |
| 68 | 72 | .blank-slate .menu-settings { |
| 69 | 73 | border: none; |
| 70 | 74 | margin-top: 0; |
diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index 7945bc4..ab521ba 100644
|
a
|
b
|
function wp_ajax_heartbeat() { |
| 3025 | 3025 | } |
| 3026 | 3026 | |
| 3027 | 3027 | if ( 1 !== $nonce_state ) { |
| 3028 | | /** |
| 3029 | | * Filters the nonces to send to the editor. |
| 3030 | | * |
| 3031 | | * @since 4.3.0 |
| 3032 | | * |
| 3033 | | * @param array|object $response The no-priv Heartbeat response object or array. |
| 3034 | | * @param array $data An array of data passed via $_POST. |
| 3035 | | * @param string $screen_id The screen id. |
| 3036 | | */ |
| 3037 | 3028 | $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id ); |
| 3038 | 3029 | |
| 3039 | 3030 | if ( false === $nonce_state ) { |
diff --git a/src/wp-admin/includes/class-walker-nav-menu-edit.php b/src/wp-admin/includes/class-walker-nav-menu-edit.php
index d53c0c8..7f5beaa 100644
|
a
|
b
|
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
| 116 | 116 | <div class="menu-item-bar"> |
| 117 | 117 | <div class="menu-item-handle"> |
| 118 | 118 | <span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span> |
| | 119 | <span class="screen-reader-text"><?php esc_html_e( 'Press return or enter to open this section.' ); ?></span> |
| 119 | 120 | <span class="item-controls"> |
| 120 | 121 | <span class="item-type"><?php echo esc_html( $item->type_label ); ?></span> |
| 121 | 122 | <span class="item-order hide-if-js"> |
diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php
index 5b8bfd7..547d324 100644
|
a
|
b
|
function wp_nav_menu_item_link_meta_box() { |
| 300 | 300 | |
| 301 | 301 | <p class="button-controls wp-clearfix"> |
| 302 | 302 | <span class="add-to-menu"> |
| 303 | | <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" /> |
| | 303 | <button type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" name="add-custom-menu-item" id="submit-customlinkdiv"> |
| | 304 | <?php esc_attr_e( 'Add to Menu' ); ?><span class="screen-reader-text"> <?php esc_attr_e( 'You will have to activate "save menu" button to save your changes' ); ?></span> |
| | 305 | </button> |
| 304 | 306 | <span class="spinner"></span> |
| 305 | 307 | </span> |
| 306 | 308 | </p> |
| … |
… |
function wp_nav_menu_item_post_type_meta_box( $object, $box ) { |
| 631 | 633 | </span> |
| 632 | 634 | |
| 633 | 635 | <span class="add-to-menu"> |
| 634 | | <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-post-type-menu-item" id="<?php echo esc_attr( 'submit-posttype-' . $post_type_name ); ?>" /> |
| | 636 | <button type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" name="add-post-type-menu-item" id="<?php echo esc_attr( 'submit-posttype-' . $post_type_name ); ?>"> |
| | 637 | <?php esc_attr_e( 'Add to Menu' ); ?><span class="screen-reader-text"> <?php esc_attr_e( 'You will have to activate "save menu" button to save your changes' ); ?></span> |
| | 638 | </button> |
| 635 | 639 | <span class="spinner"></span> |
| 636 | 640 | </span> |
| 637 | 641 | </p> |
| … |
… |
function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) { |
| 876 | 880 | </span> |
| 877 | 881 | |
| 878 | 882 | <span class="add-to-menu"> |
| 879 | | <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-taxonomy-menu-item" id="<?php echo esc_attr( 'submit-taxonomy-' . $taxonomy_name ); ?>" /> |
| | 883 | <button type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" name="add-taxonomy-menu-item" id="<?php echo esc_attr( 'submit-taxonomy-' . $taxonomy_name ); ?>"> |
| | 884 | <?php esc_attr_e( 'Add to Menu' ); ?><span class="screen-reader-text"> <?php esc_attr_e( 'You will have to activate "save menu" button to save your changes' ); ?></span> |
| | 885 | </button> |
| 880 | 886 | <span class="spinner"></span> |
| 881 | 887 | </span> |
| 882 | 888 | </p> |
diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php
index 90ecbc2..b9164a7 100644
|
a
|
b
|
function customize_themes_print_templates() { |
| 744 | 744 | |
| 745 | 745 | <div class="theme-actions"> |
| 746 | 746 | <# if ( data.active ) { #> |
| 747 | | <button type="button" class="button button-primary customize-theme"><?php _e( 'Customize' ); ?></button> |
| | 747 | <button type="button" class="button button-primary customize-theme"><?php _e( 'Customize' ); ?></a> |
| 748 | 748 | <# } else if ( 'installed' === data.type ) { #> |
| 749 | 749 | <?php if ( current_user_can( 'delete_themes' ) ) { ?> |
| 750 | 750 | <# if ( data.actions && data.actions['delete'] ) { #> |
| 751 | 751 | <a href="{{{ data.actions['delete'] }}}" data-slug="{{ data.id }}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a> |
| 752 | 752 | <# } #> |
| 753 | 753 | <?php } ?> |
| 754 | | <button type="button" class="button button-primary preview-theme" data-slug="{{ data.id }}"><?php _e( 'Live Preview' ); ?></button> |
| | 754 | <button type="button" class="button button-primary preview-theme" data-slug="{{ data.id }}"><?php _e( 'Live Preview' ); ?></span> |
| 755 | 755 | <# } else { #> |
| 756 | 756 | <button type="button" class="button theme-install" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></button> |
| 757 | 757 | <button type="button" class="button button-primary theme-install preview" data-slug="{{ data.id }}"><?php _e( 'Install & Preview' ); ?></button> |
diff --git a/src/wp-admin/js/user-suggest.js b/src/wp-admin/js/user-suggest.js
index 54cb99d..3efd628 100644
|
a
|
b
|
|
| 23 | 23 | * Adds an autocomplete function to input fields marked with the class |
| 24 | 24 | * 'wp-suggest-user'. |
| 25 | 25 | * |
| 26 | | * A minimum of two characters is required to trigger the suggestions. The |
| 27 | | * autocompletion menu is shown at the left bottom of the input field. On |
| 28 | | * RTL installations, it is shown at the right top. Adds the class 'open' to |
| 29 | | * the input field when the autocompletion menu is shown. |
| | 26 | * A minimum of two characters is required to trigger |
| | 27 | * the suggestions. The autocompletion menu is shown at the left bottom of the input |
| | 28 | * field. On RTL installations, it is shown at the right top. |
| | 29 | * Adds the class 'open' to the input field when the autocompletion menu |
| | 30 | * is shown. |
| 30 | 31 | * |
| 31 | 32 | * Does a backend call to retrieve the users. |
| 32 | 33 | * |
diff --git a/src/wp-admin/js/xfn.js b/src/wp-admin/js/xfn.js
index d290ac3..de8401b 100644
|
a
|
b
|
|
| 1 | | /** |
| 2 | | * Generates the XHTML Friends Network 'rel' string from the inputs. |
| 3 | | * |
| 4 | | * @deprecated 3.5.0 |
| 5 | | */ |
| 6 | 1 | jQuery( document ).ready(function( $ ) { |
| 7 | 2 | $( '#link_rel' ).prop( 'readonly', true ); |
| 8 | 3 | $( '#linkxfndiv input' ).bind( 'click keyup', function() { |
diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php
index 7f19e86..1e630e2 100644
|
a
|
b
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 626 | 626 | |
| 627 | 627 | <hr class="wp-header-end"> |
| 628 | 628 | |
| 629 | | <h2 class="nav-tab-wrapper wp-clearfix"> |
| 630 | | <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php echo $nav_tab_active_class; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a> |
| | 629 | <ul class="nav-tab-wrapper wp-clearfix"> |
| | 630 | <li><a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php echo $nav_tab_active_class; ?>" aria-label="<?php esc_html_e( 'Main tab to edit menus' ); ?>"><?php esc_html_e( 'Edit Menus' ); ?></a></li> |
| 631 | 631 | <?php if ( $num_locations && $menu_count ) : ?> |
| 632 | | <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab |
| | 632 | <li><a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab |
| 633 | 633 | <?php |
| 634 | 634 | if ( $locations_screen ) { |
| 635 | 635 | echo ' nav-tab-active';} |
| 636 | 636 | ?> |
| 637 | | "><?php esc_html_e( 'Manage Locations' ); ?></a> |
| | 637 | " aria-label="<?php esc_html_e( 'Main tab to edit menus locations' ); ?>"><?php esc_html_e( 'Manage Locations' ); ?></a></li> |
| 638 | 638 | <?php |
| 639 | 639 | endif; |
| 640 | 640 | ?> |
| 641 | | </h2> |
| | 641 | </ul> |
| 642 | 642 | <?php |
| 643 | 643 | foreach ( $messages as $message ) : |
| 644 | 644 | echo $message . "\n"; |
| … |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 737 | 737 | do_action( 'after_menu_locations_table' ); |
| 738 | 738 | ?> |
| 739 | 739 | <?php else : ?> |
| | 740 | <p class="screen-reader-text"><?php _e( 'Do not forget to activate "save menu" button to save all changes made in this screen.' ); ?></p> |
| 740 | 741 | <div class="manage-menus"> |
| 741 | 742 | <?php if ( $menu_count < 2 ) : ?> |
| 742 | 743 | <span class="add-edit-menu-action"> |
| … |
… |
if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) { |
| 830 | 831 | <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> |
| 831 | 832 | <input type="hidden" name="action" value="add-menu-item" /> |
| 832 | 833 | <?php wp_nonce_field( 'add-menu_item', 'menu-settings-column-nonce' ); ?> |
| | 834 | <h2 class="screen-reader-text"><?php _e( 'Select the items you want to display in your menu.' ); ?></h2> |
| 833 | 835 | <?php do_accordion_sections( 'nav-menus', 'side', null ); ?> |
| 834 | 836 | </form> |
| 835 | 837 | |
| … |
… |
if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) { |
| 843 | 845 | $new_screen_class = 'blank-slate'; |
| 844 | 846 | } |
| 845 | 847 | ?> |
| | 848 | <h2 class="screen-reader-text"><?php _e( 'Menu settings: menu location, display order of its items, labels, moving or deleting items, etc.' ); ?></h2> |
| 846 | 849 | <div class="menu-edit <?php echo $new_screen_class; ?>"> |
| 847 | 850 | <input type="hidden" name="nav-menu-data"> |
| 848 | 851 | <?php |
diff --git a/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css b/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css
index 3b85b97..d6fda60 100644
|
a
|
b
|
|
| 19 | 19 | .colors-dark .entry-content a:hover, |
| 20 | 20 | .colors-dark .entry-summary a:focus, |
| 21 | 21 | .colors-dark .entry-summary a:hover, |
| 22 | | .colors-dark .comment-content a:focus, |
| 23 | | .colors-dark .comment-content a:hover, |
| 24 | 22 | .colors-dark .widget a:focus, |
| 25 | 23 | .colors-dark .widget a:hover, |
| 26 | 24 | .colors-dark .site-footer .widget-area a:focus, |
| … |
… |
|
| 76 | 74 | .colors-dark .entry-content a:hover, |
| 77 | 75 | .colors-dark .entry-summary a:focus, |
| 78 | 76 | .colors-dark .entry-summary a:hover, |
| 79 | | .colors-dark .comment-content a:focus, |
| 80 | | .colors-dark .comment-content a:hover, |
| 81 | 77 | .colors-dark .widget a:focus, |
| 82 | 78 | .colors-dark .widget a:hover, |
| 83 | 79 | .colors-dark .site-footer .widget-area a:focus, |
| … |
… |
|
| 132 | 128 | |
| 133 | 129 | .colors-dark .entry-content a, |
| 134 | 130 | .colors-dark .entry-summary a, |
| 135 | | .colors-dark .comment-content a, |
| 136 | 131 | .colors-dark .widget a, |
| 137 | 132 | .colors-dark .site-footer .widget-area a, |
| 138 | 133 | .colors-dark .posts-navigation a, |
| … |
… |
body.colors-dark, |
| 480 | 475 | |
| 481 | 476 | /* Fixes linked images */ |
| 482 | 477 | .colors-dark .entry-content a img, |
| 483 | | .colors-dark .comment-content a img, |
| 484 | 478 | .colors-dark .widget a img { |
| 485 | 479 | -webkit-box-shadow: 0 0 0 8px #222; |
| 486 | 480 | box-shadow: 0 0 0 8px #222; |
diff --git a/src/wp-content/themes/twentyseventeen/inc/color-patterns.php b/src/wp-content/themes/twentyseventeen/inc/color-patterns.php
index ddd25d0..2eaca03 100644
|
a
|
b
|
function twentyseventeen_custom_colors_css() { |
| 36 | 36 | .colors-custom .entry-content a:hover, |
| 37 | 37 | .colors-custom .entry-summary a:focus, |
| 38 | 38 | .colors-custom .entry-summary a:hover, |
| 39 | | .colors-custom .comment-content a:focus, |
| 40 | | .colors-custom .comment-content a:hover, |
| 41 | 39 | .colors-custom .widget a:focus, |
| 42 | 40 | .colors-custom .widget a:hover, |
| 43 | 41 | .colors-custom .site-footer .widget-area a:focus, |
| … |
… |
function twentyseventeen_custom_colors_css() { |
| 93 | 91 | |
| 94 | 92 | .colors-custom .entry-content a, |
| 95 | 93 | .colors-custom .entry-summary a, |
| 96 | | .colors-custom .comment-content a, |
| 97 | 94 | .colors-custom .widget a, |
| 98 | 95 | .colors-custom .site-footer .widget-area a, |
| 99 | 96 | .colors-custom .posts-navigation a, |
| … |
… |
function twentyseventeen_custom_colors_css() { |
| 155 | 152 | .colors-custom .entry-content a:hover, |
| 156 | 153 | .colors-custom .entry-summary a:focus, |
| 157 | 154 | .colors-custom .entry-summary a:hover, |
| 158 | | .colors-custom .comment-content a:focus, |
| 159 | | .colors-custom .comment-content a:hover, |
| 160 | 155 | .colors-custom .widget a:focus, |
| 161 | 156 | .colors-custom .widget a:hover, |
| 162 | 157 | .colors-custom .site-footer .widget-area a:focus, |
| … |
… |
body.colors-custom, |
| 498 | 493 | .colors-custom .entry-content a:focus, |
| 499 | 494 | .colors-custom .entry-summary a:hover, |
| 500 | 495 | .colors-custom .entry-summary a:focus, |
| 501 | | .colors-custom .comment-content a:focus, |
| 502 | | .colors-custom .comment-content a:hover, |
| 503 | 496 | .colors-custom .widget a:hover, |
| 504 | 497 | .colors-custom .widget a:focus, |
| 505 | 498 | .colors-custom .site-footer .widget-area a:hover, |
diff --git a/src/wp-content/themes/twentyseventeen/style.css b/src/wp-content/themes/twentyseventeen/style.css
index de3c26f..5580e4e 100644
|
a
|
b
|
a:active { |
| 1178 | 1178 | |
| 1179 | 1179 | .entry-content a, |
| 1180 | 1180 | .entry-summary a, |
| 1181 | | .comment-content a, |
| 1182 | 1181 | .widget a, |
| 1183 | 1182 | .site-footer .widget-area a, |
| 1184 | 1183 | .posts-navigation a, |
| … |
… |
a .nav-title, |
| 1226 | 1225 | .entry-content a:hover, |
| 1227 | 1226 | .entry-summary a:focus, |
| 1228 | 1227 | .entry-summary a:hover, |
| 1229 | | .comment-content a:focus, |
| 1230 | | .comment-content a:hover, |
| 1231 | 1228 | .widget a:focus, |
| 1232 | 1229 | .widget a:hover, |
| 1233 | 1230 | .site-footer .widget-area a:focus, |
| … |
… |
a:hover .nav-title, |
| 1279 | 1276 | |
| 1280 | 1277 | /* Fixes linked images */ |
| 1281 | 1278 | .entry-content a img, |
| 1282 | | .comment-content a img, |
| 1283 | 1279 | .widget a img { |
| 1284 | 1280 | -webkit-box-shadow: 0 0 0 8px #fff; |
| 1285 | 1281 | box-shadow: 0 0 0 8px #fff; |
diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php
index 93fc9dd..bf963ab 100644
|
a
|
b
|
function _wp_kses_split_callback( $match ) { |
| 971 | 971 | function wp_kses_split2( $string, $allowed_html, $allowed_protocols ) { |
| 972 | 972 | $string = wp_kses_stripslashes( $string ); |
| 973 | 973 | |
| 974 | | // It matched a ">" character. |
| 975 | 974 | if ( substr( $string, 0, 1 ) != '<' ) { |
| 976 | 975 | return '>'; |
| 977 | 976 | } |
| | 977 | // It matched a ">" character |
| 978 | 978 | |
| 979 | | // Allow HTML comments. |
| 980 | 979 | if ( '<!--' == substr( $string, 0, 4 ) ) { |
| 981 | 980 | $string = str_replace( array( '<!--', '-->' ), '', $string ); |
| 982 | 981 | while ( $string != ( $newstring = wp_kses( $string, $allowed_html, $allowed_protocols ) ) ) { |
| … |
… |
function wp_kses_split2( $string, $allowed_html, $allowed_protocols ) { |
| 991 | 990 | $string = preg_replace( '/-$/', '', $string ); |
| 992 | 991 | return "<!--{$string}-->"; |
| 993 | 992 | } |
| | 993 | // Allow HTML comments |
| 994 | 994 | |
| 995 | | // It's seriously malformed. |
| 996 | 995 | if ( ! preg_match( '%^<\s*(/\s*)?([a-zA-Z0-9-]+)([^>]*)>?$%', $string, $matches ) ) { |
| 997 | 996 | return ''; |
| 998 | 997 | } |
| | 998 | // It's seriously malformed |
| 999 | 999 | |
| 1000 | 1000 | $slash = trim( $matches[1] ); |
| 1001 | 1001 | $elem = $matches[2]; |
| … |
… |
function wp_kses_split2( $string, $allowed_html, $allowed_protocols ) { |
| 1005 | 1005 | $allowed_html = wp_kses_allowed_html( $allowed_html ); |
| 1006 | 1006 | } |
| 1007 | 1007 | |
| 1008 | | // They are using a not allowed HTML element. |
| 1009 | 1008 | if ( ! isset( $allowed_html[ strtolower( $elem ) ] ) ) { |
| 1010 | 1009 | return ''; |
| 1011 | 1010 | } |
| | 1011 | // They are using a not allowed HTML element |
| 1012 | 1012 | |
| 1013 | | // No attributes are allowed for closing elements. |
| 1014 | 1013 | if ( $slash != '' ) { |
| 1015 | 1014 | return "</$elem>"; |
| 1016 | 1015 | } |
| | 1016 | // No attributes are allowed for closing elements |
| 1017 | 1017 | |
| 1018 | 1018 | return wp_kses_attr( $elem, $attrlist, $allowed_html, $allowed_protocols ); |
| 1019 | 1019 | } |
diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php
index 901cf10..1e5fda6 100644
|
a
|
b
|
class wpdb { |
| 3316 | 3316 | * @return false|void |
| 3317 | 3317 | */ |
| 3318 | 3318 | public function bail( $message, $error_code = '500' ) { |
| 3319 | | if ( $this->show_errors ) { |
| 3320 | | $error = ''; |
| 3321 | | |
| 3322 | | if ( $this->use_mysqli ) { |
| 3323 | | if ( $this->dbh instanceof mysqli ) { |
| 3324 | | $error = mysqli_error( $this->dbh ); |
| 3325 | | } elseif ( mysqli_connect_errno() ) { |
| 3326 | | $error = mysqli_connect_error(); |
| 3327 | | } |
| 3328 | | } else { |
| 3329 | | if ( is_resource( $this->dbh ) ) { |
| 3330 | | $error = mysql_error( $this->dbh ); |
| 3331 | | } else { |
| 3332 | | $error = mysql_error(); |
| 3333 | | } |
| 3334 | | } |
| 3335 | | |
| 3336 | | if ( $error ) { |
| 3337 | | $message = '<p><code>' . $error . "</code></p>\n" . $message; |
| 3338 | | } |
| 3339 | | |
| 3340 | | wp_die( $message ); |
| 3341 | | } else { |
| | 3319 | if ( ! $this->show_errors ) { |
| 3342 | 3320 | if ( class_exists( 'WP_Error', false ) ) { |
| 3343 | 3321 | $this->error = new WP_Error( $error_code, $message ); |
| 3344 | 3322 | } else { |
| 3345 | 3323 | $this->error = $message; |
| 3346 | 3324 | } |
| 3347 | | |
| 3348 | 3325 | return false; |
| 3349 | 3326 | } |
| | 3327 | wp_die( $message ); |
| 3350 | 3328 | } |
| 3351 | 3329 | |
| 3352 | 3330 | |