Changeset 54543
- Timestamp:
- 10/17/2022 04:22:04 PM (2 years ago)
- Location:
- branches/6.0
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/package-lock.json
r54035 r54543 3997 3997 }, 3998 3998 "@wordpress/block-directory": { 3999 "version": "3.4.1 4",4000 "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.4.1 4.tgz",4001 "integrity": "sha512- IGvHEZ15Q3AdnulU2EoMlNbrf6rU+LJkLWObwdtMCUsge2r6xC2wQTpPveTNIIn4j7YgTm4B2EqkBi+ujvs7dw==",3999 "version": "3.4.15", 4000 "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.4.15.tgz", 4001 "integrity": "sha512-RLp1HoiwYdH5lLCJaI9zrfz8Nem/FOWi7MVv35LyLLgWO2XMcMPPxnJQYEyq6kYqG+dpO8pab5qUJNG/3FvU4Q==", 4002 4002 "requires": { 4003 4003 "@babel/runtime": "^7.16.0", … … 4010 4010 "@wordpress/core-data": "^4.4.5", 4011 4011 "@wordpress/data": "^6.6.1", 4012 "@wordpress/edit-post": "^6.3.1 4",4012 "@wordpress/edit-post": "^6.3.15", 4013 4013 "@wordpress/editor": "^12.5.10", 4014 4014 "@wordpress/element": "^4.4.1", … … 4069 4069 }, 4070 4070 "@wordpress/block-library": { 4071 "version": "7.3.1 4",4072 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-7.3.1 4.tgz",4073 "integrity": "sha512- qo4xFrgj1HxyBmIKbpffss2bzW4v3XyUgw3GE3EhBgc7WikCFAuiOnutEaByGpjFIol+CkSK09ujqMWo+O7FXQ==",4071 "version": "7.3.15", 4072 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-7.3.15.tgz", 4073 "integrity": "sha512-UWKplojrgZuXWPUWNL/Q9jYgelfnqMdAtOIltcCK+dq03f3jWymYIZbZQAcqmYjXkK2unXLG77Drp3mVZXnKeQ==", 4074 4074 "requires": { 4075 4075 "@babel/runtime": "^7.16.0", … … 4242 4242 }, 4243 4243 "@wordpress/customize-widgets": { 4244 "version": "3.3.1 4",4245 "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-3.3.1 4.tgz",4246 "integrity": "sha512- Y0PAWXiG6XVmTexqO/mKDI8b+9PnHwhY9NtfpWTdkFnahtQ0H42wMZtiewX9cKiCp5n6MSNQ6jZmUQUaZSoaWw==",4244 "version": "3.3.15", 4245 "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-3.3.15.tgz", 4246 "integrity": "sha512-yubgzsHGWjZwswzQnta8mYQD9vqKfC226/1cOtEUqCczVephax2D9GiQu/OEZ8gbZhjmq+fme4Ubtc5EUMjFnQ==", 4247 4247 "requires": { 4248 4248 "@babel/runtime": "^7.16.0", 4249 4249 "@wordpress/block-editor": "^8.5.10", 4250 "@wordpress/block-library": "^7.3.1 4",4250 "@wordpress/block-library": "^7.3.15", 4251 4251 "@wordpress/blocks": "^11.5.3", 4252 4252 "@wordpress/components": "^19.8.5", … … 4265 4265 "@wordpress/media-utils": "^3.4.1", 4266 4266 "@wordpress/preferences": "^1.2.5", 4267 "@wordpress/widgets": "^2.4.1 0",4267 "@wordpress/widgets": "^2.4.11", 4268 4268 "classnames": "^2.3.1", 4269 4269 "lodash": "^4.17.21" … … 4376 4376 }, 4377 4377 "@wordpress/edit-post": { 4378 "version": "6.3.1 4",4379 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-6.3.1 4.tgz",4380 "integrity": "sha512- d3x1qSMAF2zBKxFvi4xoq11pssaVqU8CDW3zTca+2/7rE8BtGw+zYryBb41VRZZQCx4CbZIwZBzKWGB4hJRGuQ==",4378 "version": "6.3.15", 4379 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-6.3.15.tgz", 4380 "integrity": "sha512-u1ibxfjNZ/QBu6b+mDatvZYmdutcxUvmfTPrzJKHpD/Nt7kEAo/oWJsWZBkZp7jmNuE59Iod17pMh/Ygao3xmQ==", 4381 4381 "requires": { 4382 4382 "@babel/runtime": "^7.16.0", … … 4384 4384 "@wordpress/api-fetch": "^6.3.1", 4385 4385 "@wordpress/block-editor": "^8.5.10", 4386 "@wordpress/block-library": "^7.3.1 4",4386 "@wordpress/block-library": "^7.3.15", 4387 4387 "@wordpress/blocks": "^11.5.3", 4388 4388 "@wordpress/components": "^19.8.5", … … 4413 4413 }, 4414 4414 "@wordpress/edit-site": { 4415 "version": "4.3.1 4",4416 "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-4.3.1 4.tgz",4417 "integrity": "sha512- ylTAN0dkjNFM1xQi5p+EpojYv9q2ooJXiCytWHlS1ra735iEiJw5bS4RIjZl3q5xFdClWF0KkSmEqJEpywVeEQ==",4415 "version": "4.3.15", 4416 "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-4.3.15.tgz", 4417 "integrity": "sha512-TeyXmxLNnrR788zGHDj6KcO+CB5m+bV+JDg5TUsyF8Jy9ggxeK+NS2uB369ytyTqJX/G5HtX90bvGnz/lmJthQ==", 4418 4418 "requires": { 4419 4419 "@babel/runtime": "^7.16.0", … … 4421 4421 "@wordpress/api-fetch": "^6.3.1", 4422 4422 "@wordpress/block-editor": "^8.5.10", 4423 "@wordpress/block-library": "^7.3.1 4",4423 "@wordpress/block-library": "^7.3.15", 4424 4424 "@wordpress/blocks": "^11.5.3", 4425 4425 "@wordpress/components": "^19.8.5", … … 4454 4454 }, 4455 4455 "@wordpress/edit-widgets": { 4456 "version": "4.3.1 4",4457 "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-4.3.1 4.tgz",4458 "integrity": "sha512- MA33r+lk/74KwzeZVuaDgOM0FkbNEPmdBjn2J6j2lqSIZpWfLH5hVynz5KpSB4LE9YdvCmbGQhFF0ta6l7pD/A==",4456 "version": "4.3.15", 4457 "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-4.3.15.tgz", 4458 "integrity": "sha512-9WH5Dh7V5uChvTwsbwh8Gf2az3rCzTfL4XHw9TSrE0dhnKb7V+InttcdrUhbW1367U4+1lV1ZZnexFMeOkQb3Q==", 4459 4459 "requires": { 4460 4460 "@babel/runtime": "^7.16.0", 4461 4461 "@wordpress/api-fetch": "^6.3.1", 4462 4462 "@wordpress/block-editor": "^8.5.10", 4463 "@wordpress/block-library": "^7.3.1 4",4463 "@wordpress/block-library": "^7.3.15", 4464 4464 "@wordpress/blocks": "^11.5.3", 4465 4465 "@wordpress/components": "^19.8.5", … … 4481 4481 "@wordpress/reusable-blocks": "^3.4.10", 4482 4482 "@wordpress/url": "^3.7.1", 4483 "@wordpress/widgets": "^2.4.1 0",4483 "@wordpress/widgets": "^2.4.11", 4484 4484 "classnames": "^2.3.1", 4485 4485 "lodash": "^4.17.21" … … 5757 5757 }, 5758 5758 "@wordpress/widgets": { 5759 "version": "2.4.1 0",5760 "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.4.1 0.tgz",5761 "integrity": "sha512- EiZkJO8FSftwtNGvnSfeQruvSkwPe9KJRg/+5fPJhD9YQ3da0MiXrwqaQKMn0bIugJfvtbxdkc9dJfIQWy4bcA==",5759 "version": "2.4.11", 5760 "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.4.11.tgz", 5761 "integrity": "sha512-9aQJ+YLUJ51/L0o8teBLY+hlrYs8zAve+8nvFduj+lEtjAFS2gdXLpvPfU0wKOVixRseMbGFMKh8p/jlkjOtDQ==", 5762 5762 "requires": { 5763 5763 "@babel/runtime": "^7.16.0", -
branches/6.0/package.json
r54035 r54543 82 82 "@wordpress/autop": "3.6.1", 83 83 "@wordpress/blob": "3.6.1", 84 "@wordpress/block-directory": "3.4.1 4",84 "@wordpress/block-directory": "3.4.15", 85 85 "@wordpress/block-editor": "8.5.10", 86 "@wordpress/block-library": "7.3.1 4",86 "@wordpress/block-library": "7.3.15", 87 87 "@wordpress/block-serialization-default-parser": "4.6.1", 88 88 "@wordpress/blocks": "11.5.3", … … 90 90 "@wordpress/compose": "5.4.1", 91 91 "@wordpress/core-data": "4.4.5", 92 "@wordpress/customize-widgets": "3.3.1 4",92 "@wordpress/customize-widgets": "3.3.15", 93 93 "@wordpress/data": "6.6.1", 94 94 "@wordpress/data-controls": "2.6.1", … … 97 97 "@wordpress/dom": "3.6.1", 98 98 "@wordpress/dom-ready": "3.6.1", 99 "@wordpress/edit-post": "6.3.1 4",100 "@wordpress/edit-site": "4.3.1 4",101 "@wordpress/edit-widgets": "4.3.1 4",99 "@wordpress/edit-post": "6.3.15", 100 "@wordpress/edit-site": "4.3.15", 101 "@wordpress/edit-widgets": "4.3.15", 102 102 "@wordpress/editor": "12.5.10", 103 103 "@wordpress/element": "4.4.1", … … 130 130 "@wordpress/viewport": "4.4.1", 131 131 "@wordpress/warning": "2.6.1", 132 "@wordpress/widgets": "2.4.1 0",132 "@wordpress/widgets": "2.4.11", 133 133 "@wordpress/wordcount": "3.6.1", 134 134 "backbone": "1.4.1", -
branches/6.0/src/wp-includes/blocks/legacy-widget.php
r53157 r54543 35 35 if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) { 36 36 $serialized_instance = base64_decode( $attributes['instance']['encoded'] ); 37 if ( wp_hash( $serialized_instance ) !== $attributes['instance']['hash']) {37 if ( ! hash_equals( wp_hash( $serialized_instance ), (string) $attributes['instance']['hash'] ) ) { 38 38 return ''; 39 39 } -
branches/6.0/src/wp-includes/blocks/navigation.php
r53381 r54543 627 627 esc_attr( implode( ' ', $responsive_container_classes ) ), 628 628 esc_attr( implode( ' ', $open_button_classes ) ), 629 safecss_filter_attr( $colors['overlay_inline_styles']),629 esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) ), 630 630 __( 'Menu' ), 631 631 $toggle_button_content -
branches/6.0/src/wp-includes/blocks/post-featured-image.php
r53157 r54543 46 46 $image_styles .= "object-fit:{$attributes['scale']};"; 47 47 } 48 $featured_image = str_replace( ' src=', 'style="' . esc_attr( $image_styles ) . '" src=', $featured_image );48 $featured_image = str_replace( '<img ', '<img style="' . esc_attr( safecss_filter_attr( $image_styles ) ) . '" ', $featured_image ); 49 49 } 50 50 -
branches/6.0/src/wp-includes/blocks/rss.php
r53157 r54543 21 21 22 22 if ( is_wp_error( $rss ) ) { 23 return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . $rss->get_error_message() . '</div></div>';23 return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . esc_html( $rss->get_error_message() ) . '</div></div>'; 24 24 } 25 25 … … 49 49 $date = sprintf( 50 50 '<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ', 51 date_i18n( get_option( 'c' ), $date),52 date_i18n( get_option( 'date_format' ), $date)51 esc_attr( date_i18n( get_option( 'c' ), $date ) ), 52 esc_attr( date_i18n( get_option( 'date_format' ), $date ) ) 53 53 ); 54 54 } -
branches/6.0/src/wp-includes/blocks/search.php
r53157 r54543 288 288 $has_text_color = ! empty( $attributes['style']['color']['text'] ); 289 289 if ( $has_text_color ) { 290 $button_styles[] = sprintf( 'color: %s;', esc_attr( $attributes['style']['color']['text'] ));290 $button_styles[] = sprintf( 'color: %s;', $attributes['style']['color']['text'] ); 291 291 } 292 292 293 293 $has_background_color = ! empty( $attributes['style']['color']['background'] ); 294 294 if ( $has_background_color ) { 295 $button_styles[] = sprintf( 'background-color: %s;', esc_attr( $attributes['style']['color']['background'] ));295 $button_styles[] = sprintf( 'background-color: %s;', $attributes['style']['color']['background'] ); 296 296 } 297 297 … … 302 302 303 303 return array( 304 'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $input_styles) ) ) : '',305 'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $button_styles) ) ) : '',306 'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $wrapper_styles) ) ) : '',304 'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $input_styles ) ) ) ) : '', 305 'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $button_styles ) ) ) ) : '', 306 'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $wrapper_styles ) ) ) ) : '', 307 307 ); 308 308 } -
branches/6.0/src/wp-includes/blocks/widget-group.php
r52069 r54543 29 29 30 30 if ( ! empty( $attributes['title'] ) ) { 31 $html .= $before_title . $attributes['title']. $after_title;31 $html .= $before_title . esc_html( $attributes['title'] ) . $after_title; 32 32 } 33 33
Note: See TracChangeset
for help on using the changeset viewer.