Block Editor: Update the packages with a number of fixes targeted for Beta 4.
It includes fixes from these two backport PRs: - https://github.com/WordPress/gutenberg/pull/32992 - https://github.com/WordPress/gutenberg/pull/32956 Props gziolo, ryelle, ntsekouras, desrosj, jorgefilipecosta. See #53397 Built from https://develop.svn.wordpress.org/trunk@51241 git-svn-id: http://core.svn.wordpress.org/trunk@50850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
578cda50a2
commit
be0d5b2534
File diff suppressed because one or more lines are too long
@ -12,8 +12,8 @@ return array(
|
|||||||
'content' => '<!-- wp:query {"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3}} -->
|
'content' => '<!-- wp:query {"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3}} -->
|
||||||
<div class="wp-block-query">
|
<div class="wp-block-query">
|
||||||
<!-- wp:post-template -->
|
<!-- wp:post-template -->
|
||||||
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
|
||||||
<main class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:post-title {"isLink":true} /-->
|
<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:post-title {"isLink":true} /-->
|
||||||
<!-- wp:post-excerpt {"wordCount":20} /-->
|
<!-- wp:post-excerpt {"wordCount":20} /-->
|
||||||
<!-- wp:post-date /--></div>
|
<!-- wp:post-date /--></div>
|
||||||
<!-- /wp:group -->
|
<!-- /wp:group -->
|
||||||
|
@ -9,8 +9,8 @@ return array(
|
|||||||
'title' => _x( 'Offset', 'Block pattern title' ),
|
'title' => _x( 'Offset', 'Block pattern title' ),
|
||||||
'blockTypes' => array( 'core/query' ),
|
'blockTypes' => array( 'core/query' ),
|
||||||
'categories' => array( 'query' ),
|
'categories' => array( 'query' ),
|
||||||
'content' => '<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
|
'content' => '<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
|
||||||
<main class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:columns -->
|
<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:columns -->
|
||||||
<div class="wp-block-columns"><!-- wp:column {"width":"50%"} -->
|
<div class="wp-block-columns"><!-- wp:column {"width":"50%"} -->
|
||||||
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"list"}} -->
|
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"list"}} -->
|
||||||
<div class="wp-block-query"><!-- wp:post-template -->
|
<div class="wp-block-query"><!-- wp:post-template -->
|
||||||
@ -35,6 +35,6 @@ return array(
|
|||||||
<!-- /wp:post-template --></div>
|
<!-- /wp:post-template --></div>
|
||||||
<!-- /wp:query --></div>
|
<!-- /wp:query --></div>
|
||||||
<!-- /wp:column --></div>
|
<!-- /wp:column --></div>
|
||||||
<!-- /wp:columns --></main>
|
<!-- /wp:columns --></div>
|
||||||
<!-- /wp:group -->',
|
<!-- /wp:group -->',
|
||||||
);
|
);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When the `core/file` block is rendering, check if we need to enqueue the `'wp-block-library-file` script.
|
* When the `core/file` block is rendering, check if we need to enqueue the `'wp-block-file-view` script.
|
||||||
*
|
*
|
||||||
* @param array $attributes The block attributes.
|
* @param array $attributes The block attributes.
|
||||||
* @param array $content The block content.
|
* @param array $content The block content.
|
||||||
@ -14,11 +14,9 @@
|
|||||||
* @return string Returns the block content.
|
* @return string Returns the block content.
|
||||||
*/
|
*/
|
||||||
function render_block_core_file( $attributes, $content ) {
|
function render_block_core_file( $attributes, $content ) {
|
||||||
if ( ! empty( $attributes['displayPreview'] ) ) {
|
$should_load_view_script = ! empty( $attributes['displayPreview'] ) && ! wp_script_is( 'wp-block-file-view' );
|
||||||
// Check if it's already enqueued, so we don't add the inline script multiple times.
|
if ( $should_load_view_script ) {
|
||||||
if ( ! wp_script_is( 'wp-block-library-file' ) ) {
|
wp_enqueue_script( 'wp-block-file-view' );
|
||||||
wp_enqueue_script( 'wp-block-library-file', plugins_url( 'file/frontend.js', __FILE__ ) );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
"anchor": true,
|
"anchor": true,
|
||||||
"align": true
|
"align": true
|
||||||
},
|
},
|
||||||
|
"viewScript": "file:./view.min.js",
|
||||||
"editorStyle": "wp-block-file-editor",
|
"editorStyle": "wp-block-file-editor",
|
||||||
"style": "wp-block-file"
|
"style": "wp-block-file"
|
||||||
}
|
}
|
||||||
|
@ -127,3 +127,22 @@
|
|||||||
.wp-block-site-logo .components-placeholder .components-drop-zone__content-text {
|
.wp-block-site-logo .components-placeholder .components-drop-zone__content-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder svg {
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder p {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0;
|
||||||
|
line-height: initial;
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-left:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}
|
.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-left:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.editor-styles-wrapper .site-logo_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}.editor-styles-wrapper .site-logo_placeholder svg{margin-left:12px}.editor-styles-wrapper .site-logo_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;line-height:normal}
|
@ -127,3 +127,22 @@
|
|||||||
.wp-block-site-logo .components-placeholder .components-drop-zone__content-text {
|
.wp-block-site-logo .components-placeholder .components-drop-zone__content-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder svg {
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder p {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0;
|
||||||
|
line-height: initial;
|
||||||
|
}
|
2
wp-includes/blocks/site-logo/editor.min.css
vendored
2
wp-includes/blocks/site-logo/editor.min.css
vendored
@ -1 +1 @@
|
|||||||
.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-right:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}
|
.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-right:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.editor-styles-wrapper .site-logo_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}.editor-styles-wrapper .site-logo_placeholder svg{margin-right:12px}.editor-styles-wrapper .site-logo_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;line-height:normal}
|
@ -1095,7 +1095,6 @@ class WP_Theme_JSON {
|
|||||||
* In those cases, we want to replace the existing with the incoming value, if it exists.
|
* In those cases, we want to replace the existing with the incoming value, if it exists.
|
||||||
*/
|
*/
|
||||||
$to_replace = array();
|
$to_replace = array();
|
||||||
$to_replace[] = array( 'custom' );
|
|
||||||
$to_replace[] = array( 'spacing', 'units' );
|
$to_replace[] = array( 'spacing', 'units' );
|
||||||
$to_replace[] = array( 'color', 'duotone' );
|
$to_replace[] = array( 'color', 'duotone' );
|
||||||
foreach ( self::VALID_ORIGINS as $origin ) {
|
foreach ( self::VALID_ORIGINS as $origin ) {
|
||||||
|
@ -1990,6 +1990,7 @@
|
|||||||
background-color: #1e1e1e;
|
background-color: #1e1e1e;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
flex: 1 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator {
|
.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator {
|
||||||
|
File diff suppressed because one or more lines are too long
1
wp-includes/css/dist/block-editor/style.css
vendored
1
wp-includes/css/dist/block-editor/style.css
vendored
@ -1990,6 +1990,7 @@
|
|||||||
background-color: #1e1e1e;
|
background-color: #1e1e1e;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
flex: 1 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator {
|
.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1818,6 +1818,25 @@ body.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder svg {
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder p {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0;
|
||||||
|
line-height: initial;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-site-tagline__placeholder {
|
.wp-block-site-tagline__placeholder {
|
||||||
padding: 1em 0;
|
padding: 1em 0;
|
||||||
border: 1px dashed;
|
border: 1px dashed;
|
||||||
|
File diff suppressed because one or more lines are too long
19
wp-includes/css/dist/block-library/editor.css
vendored
19
wp-includes/css/dist/block-library/editor.css
vendored
@ -1823,6 +1823,25 @@ body.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder svg {
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
|
.editor-styles-wrapper .site-logo_placeholder p {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0;
|
||||||
|
line-height: initial;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-site-tagline__placeholder {
|
.wp-block-site-tagline__placeholder {
|
||||||
padding: 1em 0;
|
padding: 1em 0;
|
||||||
border: 1px dashed;
|
border: 1px dashed;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -300,14 +300,14 @@
|
|||||||
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
|
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding-top: 10px !important;
|
padding-top: 12px !important;
|
||||||
}
|
}
|
||||||
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
|
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
|
||||||
overflow: unset;
|
overflow: unset;
|
||||||
}
|
}
|
||||||
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
|
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
|
||||||
position: static !important;
|
position: static !important;
|
||||||
top: 0 !important;
|
margin-top: -12px !important;
|
||||||
width: unset !important;
|
width: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -300,14 +300,14 @@
|
|||||||
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
|
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding-top: 10px !important;
|
padding-top: 12px !important;
|
||||||
}
|
}
|
||||||
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
|
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
|
||||||
overflow: unset;
|
overflow: unset;
|
||||||
}
|
}
|
||||||
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
|
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
|
||||||
position: static !important;
|
position: static !important;
|
||||||
top: 0 !important;
|
margin-top: -12px !important;
|
||||||
width: unset !important;
|
width: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
5
wp-includes/css/dist/edit-post/style-rtl.css
vendored
5
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@ -1073,10 +1073,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-layout .interface-interface-skeleton__content {
|
|
||||||
background-color: #2f2f2f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
@media (min-width: 600px) {
|
||||||
.edit-post-manage-blocks-modal {
|
.edit-post-manage-blocks-modal {
|
||||||
height: calc(100% - 60px - 60px);
|
height: calc(100% - 60px - 60px);
|
||||||
@ -1749,6 +1745,7 @@ h2.edit-post-template-summary__title {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
|
background-color: #2f2f2f;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
.edit-post-visual-editor .components-button {
|
.edit-post-visual-editor .components-button {
|
||||||
|
File diff suppressed because one or more lines are too long
5
wp-includes/css/dist/edit-post/style.css
vendored
5
wp-includes/css/dist/edit-post/style.css
vendored
@ -1073,10 +1073,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-post-layout .interface-interface-skeleton__content {
|
|
||||||
background-color: #2f2f2f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
@media (min-width: 600px) {
|
||||||
.edit-post-manage-blocks-modal {
|
.edit-post-manage-blocks-modal {
|
||||||
height: calc(100% - 60px - 60px);
|
height: calc(100% - 60px - 60px);
|
||||||
@ -1753,6 +1749,7 @@ h2.edit-post-template-summary__title {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
|
background-color: #2f2f2f;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
.edit-post-visual-editor .components-button {
|
.edit-post-visual-editor .components-button {
|
||||||
|
2
wp-includes/css/dist/edit-post/style.min.css
vendored
2
wp-includes/css/dist/edit-post/style.min.css
vendored
File diff suppressed because one or more lines are too long
57
wp-includes/css/dist/edit-widgets/style-rtl.css
vendored
57
wp-includes/css/dist/edit-widgets/style-rtl.css
vendored
@ -400,26 +400,45 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||||||
}
|
}
|
||||||
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
|
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
margin-bottom: 0;
|
margin: 0;
|
||||||
|
height: 48px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
background: #fff;
|
||||||
|
transform: translateZ(0);
|
||||||
}
|
}
|
||||||
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
|
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
|
||||||
background: inherit;
|
background: #fff;
|
||||||
}
|
|
||||||
.wp-block[data-type="core/widget-area"] .components-panel__body .editor-styles-wrapper {
|
|
||||||
margin: 0 -16px -16px -16px;
|
|
||||||
padding: 16px;
|
|
||||||
}
|
}
|
||||||
.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
|
.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
|
||||||
width: initial;
|
width: initial;
|
||||||
}
|
}
|
||||||
|
.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block {
|
||||||
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks {
|
max-width: 100%;
|
||||||
padding-top: 24px;
|
|
||||||
}
|
}
|
||||||
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout {
|
.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper > .block-editor-block-list__layout {
|
||||||
|
margin-top: -48px;
|
||||||
|
padding: 72px 16px 16px;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-block-widget-area__highlight-drop-zone {
|
||||||
|
outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title,
|
||||||
|
body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title * {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.edit-widgets-header {
|
.edit-widgets-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -773,8 +792,20 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
|
|||||||
|
|
||||||
.edit-widgets-block-editor {
|
.edit-widgets-block-editor {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #f0f0f0;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
.edit-widgets-block-editor > div:last-of-type,
|
||||||
|
.edit-widgets-block-editor .block-editor-writing-flow,
|
||||||
|
.edit-widgets-block-editor .block-editor-writing-flow > div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
.edit-widgets-block-editor .edit-widgets-main-block-list {
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
.edit-widgets-block-editor .components-button {
|
.edit-widgets-block-editor .components-button {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@ -868,6 +899,10 @@ body.widgets-php .media-frame select.attachment-filters:last-of-type {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widgets-php .notice {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
body.admin-color-light {
|
body.admin-color-light {
|
||||||
--wp-admin-theme-color: #0085ba;
|
--wp-admin-theme-color: #0085ba;
|
||||||
--wp-admin-theme-color-darker-10: #0073a1;
|
--wp-admin-theme-color-darker-10: #0073a1;
|
||||||
|
File diff suppressed because one or more lines are too long
57
wp-includes/css/dist/edit-widgets/style.css
vendored
57
wp-includes/css/dist/edit-widgets/style.css
vendored
@ -400,26 +400,45 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||||||
}
|
}
|
||||||
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
|
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
margin-bottom: 0;
|
margin: 0;
|
||||||
|
height: 48px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
background: #fff;
|
||||||
|
transform: translateZ(0);
|
||||||
}
|
}
|
||||||
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
|
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
|
||||||
background: inherit;
|
background: #fff;
|
||||||
}
|
|
||||||
.wp-block[data-type="core/widget-area"] .components-panel__body .editor-styles-wrapper {
|
|
||||||
margin: 0 -16px -16px -16px;
|
|
||||||
padding: 16px;
|
|
||||||
}
|
}
|
||||||
.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
|
.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
|
||||||
width: initial;
|
width: initial;
|
||||||
}
|
}
|
||||||
|
.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block {
|
||||||
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks {
|
max-width: 100%;
|
||||||
padding-top: 24px;
|
|
||||||
}
|
}
|
||||||
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout {
|
.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper > .block-editor-block-list__layout {
|
||||||
|
margin-top: -48px;
|
||||||
|
padding: 72px 16px 16px;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-block-widget-area__highlight-drop-zone {
|
||||||
|
outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title,
|
||||||
|
body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title * {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.edit-widgets-header {
|
.edit-widgets-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -773,8 +792,20 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
|
|||||||
|
|
||||||
.edit-widgets-block-editor {
|
.edit-widgets-block-editor {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #f0f0f0;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
.edit-widgets-block-editor > div:last-of-type,
|
||||||
|
.edit-widgets-block-editor .block-editor-writing-flow,
|
||||||
|
.edit-widgets-block-editor .block-editor-writing-flow > div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
.edit-widgets-block-editor .edit-widgets-main-block-list {
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
.edit-widgets-block-editor .components-button {
|
.edit-widgets-block-editor .components-button {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@ -868,6 +899,10 @@ body.widgets-php .media-frame select.attachment-filters:last-of-type {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widgets-php .notice {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
body.admin-color-light {
|
body.admin-color-light {
|
||||||
--wp-admin-theme-color: #0085ba;
|
--wp-admin-theme-color: #0085ba;
|
||||||
--wp-admin-theme-color-darker-10: #0073a1;
|
--wp-admin-theme-color-darker-10: #0073a1;
|
||||||
|
File diff suppressed because one or more lines are too long
41
wp-includes/css/dist/widgets/style-rtl.css
vendored
41
wp-includes/css/dist/widgets/style-rtl.css
vendored
@ -81,6 +81,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget__edit-form {
|
.wp-block-legacy-widget__edit-form {
|
||||||
|
display: flow-root;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #1e1e1e;
|
border: 1px solid #1e1e1e;
|
||||||
@ -93,22 +94,50 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget-inside {
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside {
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
display: block;
|
display: block;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget-inside label {
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget-inside label + .widefat {
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label,
|
||||||
margin-top: 12px;
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,
|
||||||
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a {
|
||||||
|
font-family: system-ui;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],
|
||||||
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select {
|
||||||
|
font-family: system-ui;
|
||||||
|
background: transparent;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid #757575;
|
||||||
|
border-radius: 3px;
|
||||||
|
box-shadow: none;
|
||||||
|
color: #000;
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: normal;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 1;
|
||||||
|
min-height: 30px;
|
||||||
|
padding-right: 4px;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget.open {
|
.wp-block-legacy-widget__edit-form .widget.open {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,
|
||||||
|
.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget__edit-preview,
|
.wp-block-legacy-widget__edit-preview,
|
||||||
.wp-block-legacy-widget__edit-no-preview {
|
.wp-block-legacy-widget__edit-no-preview {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -166,6 +195,10 @@
|
|||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.components-popover__content .wp-block-legacy-widget__edit-form {
|
||||||
|
min-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget .components-select-control__input {
|
.wp-block-legacy-widget .components-select-control__input {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: system-ui;
|
font-family: system-ui;
|
||||||
|
@ -1 +1 @@
|
|||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside label+.widefat{margin-top:12px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";right:0;position:absolute;left:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{right:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{display:flow-root;background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-family:system-ui;font-weight:400;color:#000}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{font-family:system-ui;background:transparent;box-sizing:border-box;border:1px solid #757575;border-radius:3px;box-shadow:none;color:#000;display:block;margin:0;width:100%;font-size:13px;font-weight:400;height:30px;line-height:1;min-height:30px;padding-right:4px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";right:0;position:absolute;left:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{right:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
41
wp-includes/css/dist/widgets/style.css
vendored
41
wp-includes/css/dist/widgets/style.css
vendored
@ -81,6 +81,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget__edit-form {
|
.wp-block-legacy-widget__edit-form {
|
||||||
|
display: flow-root;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #1e1e1e;
|
border: 1px solid #1e1e1e;
|
||||||
@ -93,22 +94,50 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget-inside {
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside {
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
display: block;
|
display: block;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget-inside label {
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget-inside label + .widefat {
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label,
|
||||||
margin-top: 12px;
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,
|
||||||
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a {
|
||||||
|
font-family: system-ui;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],
|
||||||
|
.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select {
|
||||||
|
font-family: system-ui;
|
||||||
|
background: transparent;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid #757575;
|
||||||
|
border-radius: 3px;
|
||||||
|
box-shadow: none;
|
||||||
|
color: #000;
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: normal;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 1;
|
||||||
|
min-height: 30px;
|
||||||
|
padding-left: 4px;
|
||||||
}
|
}
|
||||||
.wp-block-legacy-widget__edit-form .widget.open {
|
.wp-block-legacy-widget__edit-form .widget.open {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,
|
||||||
|
.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget__edit-preview,
|
.wp-block-legacy-widget__edit-preview,
|
||||||
.wp-block-legacy-widget__edit-no-preview {
|
.wp-block-legacy-widget__edit-no-preview {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -166,6 +195,10 @@
|
|||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.components-popover__content .wp-block-legacy-widget__edit-form {
|
||||||
|
min-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget .components-select-control__input {
|
.wp-block-legacy-widget .components-select-control__input {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: system-ui;
|
font-family: system-ui;
|
||||||
|
2
wp-includes/css/dist/widgets/style.min.css
vendored
2
wp-includes/css/dist/widgets/style.min.css
vendored
@ -1 +1 @@
|
|||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside label+.widefat{margin-top:12px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{display:flow-root;background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-family:system-ui;font-weight:400;color:#000}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{font-family:system-ui;background:transparent;box-sizing:border-box;border:1px solid #757575;border-radius:3px;box-shadow:none;color:#000;display:block;margin:0;width:100%;font-size:13px;font-weight:400;height:30px;line-height:1;min-height:30px;padding-left:4px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
14
wp-includes/js/dist/block-editor.js
vendored
14
wp-includes/js/dist/block-editor.js
vendored
@ -23039,7 +23039,7 @@ function useInsertionPoint({
|
|||||||
|
|
||||||
let _destinationIndex;
|
let _destinationIndex;
|
||||||
|
|
||||||
if (insertionIndex) {
|
if (insertionIndex !== undefined) {
|
||||||
// Insert into a specific index.
|
// Insert into a specific index.
|
||||||
_destinationIndex = insertionIndex;
|
_destinationIndex = insertionIndex;
|
||||||
} else if (clientId) {
|
} else if (clientId) {
|
||||||
@ -24425,11 +24425,6 @@ function getNearestBlockIndex(elements, position, orientation) {
|
|||||||
let candidateIndex;
|
let candidateIndex;
|
||||||
let candidateDistance;
|
let candidateDistance;
|
||||||
elements.forEach((element, index) => {
|
elements.forEach((element, index) => {
|
||||||
// Ensure the element is a block. It should have the `wp-block` class.
|
|
||||||
if (!element.classList.contains('wp-block')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const rect = element.getBoundingClientRect();
|
const rect = element.getBoundingClientRect();
|
||||||
const [distance, edge] = getDistanceToNearestEdge(position, rect, allowedEdges);
|
const [distance, edge] = getDistanceToNearestEdge(position, rect, allowedEdges);
|
||||||
|
|
||||||
@ -24481,7 +24476,8 @@ function useBlockDropZone({
|
|||||||
const throttled = Object(external_wp_compose_["useThrottle"])(Object(external_wp_element_["useCallback"])((event, currentTarget) => {
|
const throttled = Object(external_wp_compose_["useThrottle"])(Object(external_wp_element_["useCallback"])((event, currentTarget) => {
|
||||||
var _getBlockListSettings;
|
var _getBlockListSettings;
|
||||||
|
|
||||||
const blockElements = Array.from(currentTarget.children);
|
const blockElements = Array.from(currentTarget.children).filter( // Ensure the element is a block. It should have the `wp-block` class.
|
||||||
|
element => element.classList.contains('wp-block'));
|
||||||
const targetIndex = getNearestBlockIndex(blockElements, {
|
const targetIndex = getNearestBlockIndex(blockElements, {
|
||||||
x: event.clientX,
|
x: event.clientX,
|
||||||
y: event.clientY
|
y: event.clientY
|
||||||
@ -30220,7 +30216,7 @@ var external_wp_shortcode_ = __webpack_require__("SVSp");
|
|||||||
|
|
||||||
|
|
||||||
function addActiveFormats(value, activeFormats) {
|
function addActiveFormats(value, activeFormats) {
|
||||||
if (activeFormats.length) {
|
if (activeFormats !== null && activeFormats !== void 0 && activeFormats.length) {
|
||||||
let index = value.formats.length;
|
let index = value.formats.length;
|
||||||
|
|
||||||
while (index--) {
|
while (index--) {
|
||||||
@ -37715,7 +37711,7 @@ function useDarkThemeBodyClassName(styles) {
|
|||||||
// DOM, so calculate the background color by creating a fake
|
// DOM, so calculate the background color by creating a fake
|
||||||
// wrapper.
|
// wrapper.
|
||||||
const tempCanvas = ownerDocument.createElement('div');
|
const tempCanvas = ownerDocument.createElement('div');
|
||||||
tempCanvas.classList.add(EDITOR_STYLES_SELECTOR);
|
tempCanvas.classList.add('editor-styles-wrapper');
|
||||||
body.appendChild(tempCanvas);
|
body.appendChild(tempCanvas);
|
||||||
backgroundColor = defaultView.getComputedStyle(tempCanvas, null).getPropertyValue('background-color');
|
backgroundColor = defaultView.getComputedStyle(tempCanvas, null).getPropertyValue('background-color');
|
||||||
body.removeChild(tempCanvas);
|
body.removeChild(tempCanvas);
|
||||||
|
2
wp-includes/js/dist/block-editor.min.js
vendored
2
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
184
wp-includes/js/dist/block-library.js
vendored
184
wp-includes/js/dist/block-library.js
vendored
@ -5146,6 +5146,20 @@ const isTemporaryImage = (id, url) => !id && Object(external_wp_blob_["isBlobURL
|
|||||||
|
|
||||||
|
|
||||||
const isExternalImage = (id, url) => url && !id && !Object(external_wp_blob_["isBlobURL"])(url);
|
const isExternalImage = (id, url) => url && !id && !Object(external_wp_blob_["isBlobURL"])(url);
|
||||||
|
/**
|
||||||
|
* Checks if WP generated default image size. Size generation is skipped
|
||||||
|
* when the image is smaller than the said size.
|
||||||
|
*
|
||||||
|
* @param {Object} image
|
||||||
|
* @param {string} defaultSize
|
||||||
|
*
|
||||||
|
* @return {boolean} Whether or not it has default image size.
|
||||||
|
*/
|
||||||
|
|
||||||
|
function hasDefaultSize(image, defaultSize) {
|
||||||
|
return Object(external_lodash_["has"])(image, ['sizes', defaultSize, 'url']) || Object(external_lodash_["has"])(image, ['media_details', 'sizes', defaultSize, 'source_url']);
|
||||||
|
}
|
||||||
|
|
||||||
function ImageEdit({
|
function ImageEdit({
|
||||||
attributes,
|
attributes,
|
||||||
setAttributes,
|
setAttributes,
|
||||||
@ -5225,7 +5239,9 @@ function ImageEdit({
|
|||||||
additionalAttributes = {
|
additionalAttributes = {
|
||||||
width: undefined,
|
width: undefined,
|
||||||
height: undefined,
|
height: undefined,
|
||||||
sizeSlug: imageDefaultSize
|
// Fallback to size "full" if there's no default image size.
|
||||||
|
// It means the image is smaller, and the block will use a full-size URL.
|
||||||
|
sizeSlug: hasDefaultSize(media, imageDefaultSize) ? imageDefaultSize : 'full'
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
// Keep the same url when selecting the same file, so "Image Size"
|
// Keep the same url when selecting the same file, so "Image Size"
|
||||||
@ -11130,7 +11146,8 @@ function CategoriesEdit({
|
|||||||
} = select('core/data');
|
} = select('core/data');
|
||||||
const query = {
|
const query = {
|
||||||
per_page: -1,
|
per_page: -1,
|
||||||
hide_empty: true
|
hide_empty: true,
|
||||||
|
context: 'view'
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
categories: getEntityRecords('taxonomy', 'category', query),
|
categories: getEntityRecords('taxonomy', 'category', query),
|
||||||
@ -11232,7 +11249,7 @@ function CategoriesEdit({
|
|||||||
}))), isRequesting && Object(external_wp_element_["createElement"])(external_wp_components_["Placeholder"], {
|
}))), isRequesting && Object(external_wp_element_["createElement"])(external_wp_components_["Placeholder"], {
|
||||||
icon: library_pin,
|
icon: library_pin,
|
||||||
label: Object(external_wp_i18n_["__"])('Categories')
|
label: Object(external_wp_i18n_["__"])('Categories')
|
||||||
}, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null)), !isRequesting && categories.length === 0 && Object(external_wp_element_["createElement"])("p", null, Object(external_wp_i18n_["__"])('Your site does not have any posts, so there is nothing to display here at the moment.')), !isRequesting && categories.length > 0 && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList()));
|
}, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null)), !isRequesting && (categories === null || categories === void 0 ? void 0 : categories.length) === 0 && Object(external_wp_element_["createElement"])("p", null, Object(external_wp_i18n_["__"])('Your site does not have any posts, so there is nothing to display here at the moment.')), !isRequesting && (categories === null || categories === void 0 ? void 0 : categories.length) > 0 && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js
|
||||||
@ -16355,6 +16372,7 @@ const file_metadata = {
|
|||||||
anchor: true,
|
anchor: true,
|
||||||
align: true
|
align: true
|
||||||
},
|
},
|
||||||
|
viewScript: "file:./view.min.js",
|
||||||
editorStyle: "wp-block-file-editor",
|
editorStyle: "wp-block-file-editor",
|
||||||
style: "wp-block-file"
|
style: "wp-block-file"
|
||||||
};
|
};
|
||||||
@ -27863,13 +27881,13 @@ const social_link_settings = {
|
|||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const site_logo_siteLogo = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
const siteLogo = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
||||||
xmlns: "http://www.w3.org/2000/svg",
|
xmlns: "http://www.w3.org/2000/svg",
|
||||||
viewBox: "0 0 24 24"
|
viewBox: "0 0 24 24"
|
||||||
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
||||||
d: "M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"
|
d: "M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"
|
||||||
}));
|
}));
|
||||||
/* harmony default export */ var site_logo = (site_logo_siteLogo);
|
/* harmony default export */ var site_logo = (siteLogo);
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-logo/edit.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-logo/edit.js
|
||||||
|
|
||||||
@ -27946,7 +27964,7 @@ const SiteLogo = ({
|
|||||||
title: siteEntities.title,
|
title: siteEntities.title,
|
||||||
...Object(external_lodash_["pick"])(getSettings(), ['imageSizes', 'maxWidth'])
|
...Object(external_lodash_["pick"])(getSettings(), ['imageSizes', 'maxWidth'])
|
||||||
};
|
};
|
||||||
});
|
}, []);
|
||||||
|
|
||||||
function onResizeStart() {
|
function onResizeStart() {
|
||||||
toggleSelection(false);
|
toggleSelection(false);
|
||||||
@ -28110,19 +28128,39 @@ function LogoEdit({
|
|||||||
const [error, setError] = Object(external_wp_element_["useState"])();
|
const [error, setError] = Object(external_wp_element_["useState"])();
|
||||||
const ref = Object(external_wp_element_["useRef"])();
|
const ref = Object(external_wp_element_["useRef"])();
|
||||||
const {
|
const {
|
||||||
mediaItemData,
|
siteLogoId,
|
||||||
siteLogo,
|
canUserEdit,
|
||||||
url
|
url,
|
||||||
|
mediaItemData
|
||||||
} = Object(external_wp_data_["useSelect"])(select => {
|
} = Object(external_wp_data_["useSelect"])(select => {
|
||||||
const siteSettings = select(external_wp_coreData_["store"]).getEditedEntityRecord('root', 'site');
|
const {
|
||||||
const mediaItem = siteSettings.site_logo ? select(external_wp_coreData_["store"]).getEntityRecord('root', 'media', siteSettings.site_logo) : null;
|
canUser,
|
||||||
|
getEntityRecord,
|
||||||
|
getEditedEntityRecord
|
||||||
|
} = select(external_wp_coreData_["store"]);
|
||||||
|
const siteSettings = getEditedEntityRecord('root', 'site');
|
||||||
|
const siteData = getEntityRecord('root', '__unstableBase');
|
||||||
|
|
||||||
|
const _siteLogo = siteSettings === null || siteSettings === void 0 ? void 0 : siteSettings.site_logo;
|
||||||
|
|
||||||
|
const _readOnlyLogo = siteData === null || siteData === void 0 ? void 0 : siteData.site_logo;
|
||||||
|
|
||||||
|
const _canUserEdit = canUser('update', 'settings');
|
||||||
|
|
||||||
|
const _siteLogoId = _siteLogo || _readOnlyLogo;
|
||||||
|
|
||||||
|
const mediaItem = _siteLogoId && select(external_wp_coreData_["store"]).getEntityRecord('root', 'media', _siteLogoId, {
|
||||||
|
context: 'view'
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
siteLogoId: _siteLogoId,
|
||||||
|
canUserEdit: _canUserEdit,
|
||||||
|
url: siteData === null || siteData === void 0 ? void 0 : siteData.url,
|
||||||
mediaItemData: mediaItem && {
|
mediaItemData: mediaItem && {
|
||||||
url: mediaItem.source_url,
|
url: mediaItem.source_url,
|
||||||
alt: mediaItem.alt_text
|
alt: mediaItem.alt_text
|
||||||
},
|
}
|
||||||
siteLogo: siteSettings.site_logo,
|
|
||||||
url: siteSettings.url
|
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
const {
|
const {
|
||||||
@ -28163,7 +28201,7 @@ function LogoEdit({
|
|||||||
setError(message[2] ? message[2] : null);
|
setError(message[2] ? message[2] : null);
|
||||||
};
|
};
|
||||||
|
|
||||||
const controls = logoUrl && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
|
const controls = canUserEdit && logoUrl && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
|
||||||
group: "other"
|
group: "other"
|
||||||
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaReplaceFlow"], {
|
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaReplaceFlow"], {
|
||||||
mediaURL: logoUrl,
|
mediaURL: logoUrl,
|
||||||
@ -28176,8 +28214,9 @@ function LogoEdit({
|
|||||||
const label = Object(external_wp_i18n_["__"])('Site Logo');
|
const label = Object(external_wp_i18n_["__"])('Site Logo');
|
||||||
|
|
||||||
let logoImage;
|
let logoImage;
|
||||||
|
const isLoading = siteLogoId === undefined || siteLogoId && !logoUrl;
|
||||||
|
|
||||||
if (siteLogo === undefined) {
|
if (isLoading) {
|
||||||
logoImage = Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null);
|
logoImage = Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28194,7 +28233,18 @@ function LogoEdit({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const mediaPlaceholder = Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaPlaceholder"], {
|
const classes = classnames_default()(className, {
|
||||||
|
'is-default-size': !width
|
||||||
|
});
|
||||||
|
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
|
||||||
|
ref,
|
||||||
|
className: classes
|
||||||
|
});
|
||||||
|
return Object(external_wp_element_["createElement"])("div", blockProps, controls, !!logoUrl && logoImage, !logoUrl && !canUserEdit && Object(external_wp_element_["createElement"])("div", {
|
||||||
|
className: "site-logo_placeholder"
|
||||||
|
}, Object(external_wp_element_["createElement"])(external_wp_components_["Icon"], {
|
||||||
|
icon: site_logo
|
||||||
|
}), Object(external_wp_element_["createElement"])("p", null, " ", Object(external_wp_i18n_["__"])('Site Logo'))), !logoUrl && canUserEdit && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaPlaceholder"], {
|
||||||
icon: Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockIcon"], {
|
icon: Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockIcon"], {
|
||||||
icon: site_logo
|
icon: site_logo
|
||||||
}),
|
}),
|
||||||
@ -28211,15 +28261,7 @@ function LogoEdit({
|
|||||||
isDismissible: false
|
isDismissible: false
|
||||||
}, error),
|
}, error),
|
||||||
onError: onUploadError
|
onError: onUploadError
|
||||||
});
|
}));
|
||||||
const classes = classnames_default()(className, {
|
|
||||||
'is-default-size': !width
|
|
||||||
});
|
|
||||||
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
|
|
||||||
ref,
|
|
||||||
className: classes
|
|
||||||
});
|
|
||||||
return Object(external_wp_element_["createElement"])("div", blockProps, controls, logoUrl && logoImage, !logoUrl && mediaPlaceholder);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-logo/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-logo/index.js
|
||||||
@ -31364,20 +31406,13 @@ const post_featured_image_settings = {
|
|||||||
edit: PostFeaturedImageEdit
|
edit: PostFeaturedImageEdit
|
||||||
};
|
};
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/use-term-links.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/use-post-terms.js
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* External dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function usePostTerms({
|
||||||
function useTermLinks({
|
|
||||||
postId,
|
postId,
|
||||||
postType,
|
postType,
|
||||||
term
|
term
|
||||||
@ -31386,37 +31421,39 @@ function useTermLinks({
|
|||||||
rest_base: restBase,
|
rest_base: restBase,
|
||||||
slug
|
slug
|
||||||
} = term;
|
} = term;
|
||||||
const [termItems] = Object(external_wp_coreData_["useEntityProp"])('postType', postType, restBase, postId);
|
const [termIds] = Object(external_wp_coreData_["useEntityProp"])('postType', postType, restBase, postId);
|
||||||
const {
|
return Object(external_wp_data_["useSelect"])(select => {
|
||||||
termLinks,
|
if (!termIds) {
|
||||||
isLoadingTermLinks
|
// Waiting for post terms to be fetched.
|
||||||
} = Object(external_wp_data_["useSelect"])(select => {
|
return {
|
||||||
const {
|
isLoading: true
|
||||||
getEntityRecord
|
};
|
||||||
} = select(external_wp_coreData_["store"]);
|
|
||||||
let loaded = true;
|
|
||||||
const links = Object(external_lodash_["map"])(termItems, itemId => {
|
|
||||||
const item = getEntityRecord('taxonomy', slug, itemId);
|
|
||||||
|
|
||||||
if (!item) {
|
|
||||||
return loaded = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Object(external_wp_element_["createElement"])("a", {
|
if (!termIds.length) {
|
||||||
key: itemId,
|
|
||||||
href: item.link,
|
|
||||||
onClick: event => event.preventDefault()
|
|
||||||
}, item.name);
|
|
||||||
});
|
|
||||||
return {
|
return {
|
||||||
termLinks: links,
|
isLoading: false
|
||||||
isLoadingTermLinks: !loaded
|
|
||||||
};
|
};
|
||||||
}, [termItems]);
|
}
|
||||||
|
|
||||||
|
const {
|
||||||
|
getEntityRecords,
|
||||||
|
isResolving
|
||||||
|
} = select(external_wp_coreData_["store"]);
|
||||||
|
const taxonomyArgs = ['taxonomy', slug, {
|
||||||
|
include: termIds,
|
||||||
|
context: 'view'
|
||||||
|
}];
|
||||||
|
const terms = getEntityRecords(...taxonomyArgs);
|
||||||
|
|
||||||
|
const _isLoading = isResolving('getEntityRecords', taxonomyArgs);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
termLinks,
|
postTerms: terms,
|
||||||
isLoadingTermLinks
|
isLoading: _isLoading,
|
||||||
|
hasPostTerms: !!(terms !== null && terms !== void 0 && terms.length)
|
||||||
};
|
};
|
||||||
|
}, [termIds]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/edit.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/edit.js
|
||||||
@ -31426,7 +31463,6 @@ function useTermLinks({
|
|||||||
* External dependencies
|
* External dependencies
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
*/
|
*/
|
||||||
@ -31457,22 +31493,25 @@ function PostTermsEdit({
|
|||||||
postType
|
postType
|
||||||
} = context;
|
} = context;
|
||||||
const selectedTerm = Object(external_wp_data_["useSelect"])(select => {
|
const selectedTerm = Object(external_wp_data_["useSelect"])(select => {
|
||||||
|
var _taxonomy$visibility;
|
||||||
|
|
||||||
if (!term) return {};
|
if (!term) return {};
|
||||||
const taxonomies = select(external_wp_coreData_["store"]).getTaxonomies({
|
const {
|
||||||
per_page: -1
|
getTaxonomy
|
||||||
});
|
} = select(external_wp_coreData_["store"]);
|
||||||
return Object(external_lodash_["find"])(taxonomies, taxonomy => taxonomy.slug === term && taxonomy.visibility.show_ui) || {};
|
const taxonomy = getTaxonomy(term);
|
||||||
|
return taxonomy !== null && taxonomy !== void 0 && (_taxonomy$visibility = taxonomy.visibility) !== null && _taxonomy$visibility !== void 0 && _taxonomy$visibility.show_ui ? taxonomy : {};
|
||||||
}, [term]);
|
}, [term]);
|
||||||
const {
|
const {
|
||||||
termLinks,
|
postTerms,
|
||||||
isLoadingTermLinks
|
hasPostTerms,
|
||||||
} = useTermLinks({
|
isLoading
|
||||||
|
} = usePostTerms({
|
||||||
postId,
|
postId,
|
||||||
postType,
|
postType,
|
||||||
term: selectedTerm
|
term: selectedTerm
|
||||||
});
|
});
|
||||||
const hasPost = postId && postType;
|
const hasPost = postId && postType;
|
||||||
const hasTermLinks = termLinks && termLinks.length > 0;
|
|
||||||
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
|
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
|
||||||
className: classnames_default()({
|
className: classnames_default()({
|
||||||
[`has-text-align-${textAlign}`]: textAlign
|
[`has-text-align-${textAlign}`]: textAlign
|
||||||
@ -31494,8 +31533,11 @@ function PostTermsEdit({
|
|||||||
textAlign: nextAlign
|
textAlign: nextAlign
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})), Object(external_wp_element_["createElement"])("div", blockProps, isLoadingTermLinks && Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null), hasTermLinks && !isLoadingTermLinks && termLinks.reduce((prev, curr) => [prev, ' | ', curr]), !isLoadingTermLinks && !hasTermLinks && ( // eslint-disable-next-line camelcase
|
})), Object(external_wp_element_["createElement"])("div", blockProps, isLoading && Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null), !isLoading && hasPostTerms && postTerms.map(postTerm => Object(external_wp_element_["createElement"])("a", {
|
||||||
(selectedTerm === null || selectedTerm === void 0 ? void 0 : (_selectedTerm$labels = selectedTerm.labels) === null || _selectedTerm$labels === void 0 ? void 0 : _selectedTerm$labels.no_terms) || Object(external_wp_i18n_["__"])('Term items not found.'))));
|
key: postTerm.id,
|
||||||
|
href: postTerm.link,
|
||||||
|
onClick: event => event.preventDefault()
|
||||||
|
}, postTerm.name)).reduce((prev, curr) => [prev, ' | ', curr]), !isLoading && !hasPostTerms && ((selectedTerm === null || selectedTerm === void 0 ? void 0 : (_selectedTerm$labels = selectedTerm.labels) === null || _selectedTerm$labels === void 0 ? void 0 : _selectedTerm$labels.no_terms) || Object(external_wp_i18n_["__"])('Term items not found.'))));
|
||||||
}
|
}
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-categories.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-categories.js
|
||||||
|
2
wp-includes/js/dist/block-library.min.js
vendored
2
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
118
wp-includes/js/dist/core-data.js
vendored
118
wp-includes/js/dist/core-data.js
vendored
@ -2225,7 +2225,8 @@ function getQueryParts(query) {
|
|||||||
page: 1,
|
page: 1,
|
||||||
perPage: 10,
|
perPage: 10,
|
||||||
fields: null,
|
fields: null,
|
||||||
include: null
|
include: null,
|
||||||
|
context: 'default'
|
||||||
}; // Ensure stable key by sorting keys. Also more efficient for iterating.
|
}; // Ensure stable key by sorting keys. Also more efficient for iterating.
|
||||||
|
|
||||||
const keys = Object.keys(query).sort();
|
const keys = Object.keys(query).sort();
|
||||||
@ -2247,6 +2248,10 @@ function getQueryParts(query) {
|
|||||||
parts.include = get_normalized_comma_separable(value).map(Number);
|
parts.include = get_normalized_comma_separable(value).map(Number);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'context':
|
||||||
|
parts.context = value;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// While in theory, we could exclude "_fields" from the stableKey
|
// While in theory, we could exclude "_fields" from the stableKey
|
||||||
// because two request with different fields have the same results
|
// because two request with different fields have the same results
|
||||||
@ -2293,6 +2298,19 @@ function getQueryParts(query) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function getContextFromAction(action) {
|
||||||
|
const {
|
||||||
|
query
|
||||||
|
} = action;
|
||||||
|
|
||||||
|
if (!query) {
|
||||||
|
return 'default';
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParts = get_query_parts(query);
|
||||||
|
return queryParts.context;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Returns a merged array of item IDs, given details of the received paginated
|
* Returns a merged array of item IDs, given details of the received paginated
|
||||||
* items. The array is sparse-like with `undefined` entries where holes exist.
|
* items. The array is sparse-like with `undefined` entries where holes exist.
|
||||||
@ -2305,6 +2323,7 @@ function getQueryParts(query) {
|
|||||||
* @return {number[]} Merged array of item IDs.
|
* @return {number[]} Merged array of item IDs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function getMergedItemIds(itemIds, nextItemIds, page, perPage) {
|
function getMergedItemIds(itemIds, nextItemIds, page, perPage) {
|
||||||
const receivedAllIds = page === 1 && perPage === -1;
|
const receivedAllIds = page === 1 && perPage === -1;
|
||||||
|
|
||||||
@ -2340,18 +2359,24 @@ function getMergedItemIds(itemIds, nextItemIds, page, perPage) {
|
|||||||
function reducer_items(state = {}, action) {
|
function reducer_items(state = {}, action) {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case 'RECEIVE_ITEMS':
|
case 'RECEIVE_ITEMS':
|
||||||
|
{
|
||||||
|
const context = getContextFromAction(action);
|
||||||
const key = action.key || DEFAULT_ENTITY_KEY;
|
const key = action.key || DEFAULT_ENTITY_KEY;
|
||||||
return { ...state,
|
return { ...state,
|
||||||
|
[context]: { ...state[context],
|
||||||
...action.items.reduce((accumulator, value) => {
|
...action.items.reduce((accumulator, value) => {
|
||||||
|
var _state$context;
|
||||||
|
|
||||||
const itemId = value[key];
|
const itemId = value[key];
|
||||||
accumulator[itemId] = conservativeMapItem(state[itemId], value);
|
accumulator[itemId] = conservativeMapItem(state === null || state === void 0 ? void 0 : (_state$context = state[context]) === null || _state$context === void 0 ? void 0 : _state$context[itemId], value);
|
||||||
return accumulator;
|
return accumulator;
|
||||||
}, {})
|
}, {})
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
case 'REMOVE_ITEMS':
|
case 'REMOVE_ITEMS':
|
||||||
const newState = Object(external_lodash_["omit"])(state, action.itemIds);
|
return Object(external_lodash_["mapValues"])(state, contextState => Object(external_lodash_["omit"])(contextState, action.itemIds));
|
||||||
return newState;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
@ -2369,35 +2394,44 @@ function reducer_items(state = {}, action) {
|
|||||||
* @return {Object<string,boolean>} Next state.
|
* @return {Object<string,boolean>} Next state.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function itemIsComplete(state = {}, action) {
|
function itemIsComplete(state = {}, action) {
|
||||||
|
switch (action.type) {
|
||||||
|
case 'RECEIVE_ITEMS':
|
||||||
|
{
|
||||||
|
const context = getContextFromAction(action);
|
||||||
const {
|
const {
|
||||||
type,
|
|
||||||
query,
|
query,
|
||||||
key = DEFAULT_ENTITY_KEY
|
key = DEFAULT_ENTITY_KEY
|
||||||
} = action;
|
} = action; // An item is considered complete if it is received without an associated
|
||||||
|
|
||||||
if (type !== 'RECEIVE_ITEMS') {
|
|
||||||
return state;
|
|
||||||
} // An item is considered complete if it is received without an associated
|
|
||||||
// fields query. Ideally, this would be implemented in such a way where the
|
// fields query. Ideally, this would be implemented in such a way where the
|
||||||
// complete aggregate of all fields would satisfy completeness. Since the
|
// complete aggregate of all fields would satisfy completeness. Since the
|
||||||
// fields are not consistent across all entity types, this would require
|
// fields are not consistent across all entity types, this would require
|
||||||
// introspection on the REST schema for each entity to know which fields
|
// introspection on the REST schema for each entity to know which fields
|
||||||
// compose a complete item for that entity.
|
// compose a complete item for that entity.
|
||||||
|
|
||||||
|
const queryParts = query ? get_query_parts(query) : {};
|
||||||
const isCompleteQuery = !query || !Array.isArray(get_query_parts(query).fields);
|
const isCompleteQuery = !query || !Array.isArray(queryParts.fields);
|
||||||
return { ...state,
|
return { ...state,
|
||||||
|
[context]: { ...state[context],
|
||||||
...action.items.reduce((result, item) => {
|
...action.items.reduce((result, item) => {
|
||||||
|
var _state$context2;
|
||||||
|
|
||||||
const itemId = item[key]; // Defer to completeness if already assigned. Technically the
|
const itemId = item[key]; // Defer to completeness if already assigned. Technically the
|
||||||
// data may be outdated if receiving items for a field subset.
|
// data may be outdated if receiving items for a field subset.
|
||||||
|
|
||||||
result[itemId] = state[itemId] || isCompleteQuery;
|
result[itemId] = (state === null || state === void 0 ? void 0 : (_state$context2 = state[context]) === null || _state$context2 === void 0 ? void 0 : _state$context2[itemId]) || isCompleteQuery;
|
||||||
return result;
|
return result;
|
||||||
}, {})
|
}, {})
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'REMOVE_ITEMS':
|
||||||
|
return Object(external_lodash_["mapValues"])(state, contextState => Object(external_lodash_["omit"])(contextState, action.itemIds));
|
||||||
|
}
|
||||||
|
|
||||||
|
return state;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Reducer tracking queries state, keyed by stable query key. Each reducer
|
* Reducer tracking queries state, keyed by stable query key. Each reducer
|
||||||
* query object includes `itemIds` and `requestingPageByPerPage`.
|
* query object includes `itemIds` and `requestingPageByPerPage`.
|
||||||
@ -2422,7 +2456,7 @@ replace_action(action => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return action;
|
return action;
|
||||||
}), // Queries shape is shared, but keyed by query `stableKey` part. Original
|
}), on_sub_key('context'), // Queries shape is shared, but keyed by query `stableKey` part. Original
|
||||||
// reducer tracks only a single query object.
|
// reducer tracks only a single query object.
|
||||||
on_sub_key('stableKey')])((state = null, action) => {
|
on_sub_key('stableKey')])((state = null, action) => {
|
||||||
const {
|
const {
|
||||||
@ -2453,18 +2487,17 @@ const reducer_queries = (state = {}, action) => {
|
|||||||
return receiveQueries(state, action);
|
return receiveQueries(state, action);
|
||||||
|
|
||||||
case 'REMOVE_ITEMS':
|
case 'REMOVE_ITEMS':
|
||||||
const newState = { ...state
|
|
||||||
};
|
|
||||||
const removedItems = action.itemIds.reduce((result, itemId) => {
|
const removedItems = action.itemIds.reduce((result, itemId) => {
|
||||||
result[itemId] = true;
|
result[itemId] = true;
|
||||||
return result;
|
return result;
|
||||||
}, {});
|
}, {});
|
||||||
Object(external_lodash_["forEach"])(newState, (queryItems, key) => {
|
return Object(external_lodash_["mapValues"])(state, contextQueries => {
|
||||||
newState[key] = Object(external_lodash_["filter"])(queryItems, queryId => {
|
return Object(external_lodash_["mapValues"])(contextQueries, queryItems => {
|
||||||
|
return Object(external_lodash_["filter"])(queryItems, queryId => {
|
||||||
return !removedItems[queryId];
|
return !removedItems[queryId];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return newState;
|
});
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
@ -2801,8 +2834,16 @@ function reducer_entity(entityConfig) {
|
|||||||
})])(Object(external_wp_data_["combineReducers"])({
|
})])(Object(external_wp_data_["combineReducers"])({
|
||||||
queriedData: reducer,
|
queriedData: reducer,
|
||||||
edits: (state = {}, action) => {
|
edits: (state = {}, action) => {
|
||||||
|
var _action$query$context, _action$query;
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case 'RECEIVE_ITEMS':
|
case 'RECEIVE_ITEMS':
|
||||||
|
const context = (_action$query$context = action === null || action === void 0 ? void 0 : (_action$query = action.query) === null || _action$query === void 0 ? void 0 : _action$query.context) !== null && _action$query$context !== void 0 ? _action$query$context : 'default';
|
||||||
|
|
||||||
|
if (context !== 'default') {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
const nextState = { ...state
|
const nextState = { ...state
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3179,12 +3220,15 @@ const queriedItemsCacheByState = new WeakMap();
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function getQueriedItemsUncached(state, query) {
|
function getQueriedItemsUncached(state, query) {
|
||||||
|
var _state$queries, _state$queries$contex;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
stableKey,
|
stableKey,
|
||||||
page,
|
page,
|
||||||
perPage,
|
perPage,
|
||||||
include,
|
include,
|
||||||
fields
|
fields,
|
||||||
|
context
|
||||||
} = get_query_parts(query);
|
} = get_query_parts(query);
|
||||||
let itemIds;
|
let itemIds;
|
||||||
|
|
||||||
@ -3195,8 +3239,8 @@ function getQueriedItemsUncached(state, query) {
|
|||||||
// accounted for below in the loop `null` return.
|
// accounted for below in the loop `null` return.
|
||||||
itemIds = include; // TODO: Avoid storing the empty stable string in reducer, since it
|
itemIds = include; // TODO: Avoid storing the empty stable string in reducer, since it
|
||||||
// can be computed dynamically here always.
|
// can be computed dynamically here always.
|
||||||
} else if (state.queries[stableKey]) {
|
} else if ((_state$queries = state.queries) !== null && _state$queries !== void 0 && (_state$queries$contex = _state$queries[context]) !== null && _state$queries$contex !== void 0 && _state$queries$contex[stableKey]) {
|
||||||
itemIds = state.queries[stableKey];
|
itemIds = state.queries[context][stableKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!itemIds) {
|
if (!itemIds) {
|
||||||
@ -3208,17 +3252,19 @@ function getQueriedItemsUncached(state, query) {
|
|||||||
const items = [];
|
const items = [];
|
||||||
|
|
||||||
for (let i = startOffset; i < endOffset; i++) {
|
for (let i = startOffset; i < endOffset; i++) {
|
||||||
|
var _state$items$context;
|
||||||
|
|
||||||
const itemId = itemIds[i];
|
const itemId = itemIds[i];
|
||||||
|
|
||||||
if (Array.isArray(include) && !include.includes(itemId)) {
|
if (Array.isArray(include) && !include.includes(itemId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!state.items.hasOwnProperty(itemId)) {
|
if (!((_state$items$context = state.items[context]) !== null && _state$items$context !== void 0 && _state$items$context.hasOwnProperty(itemId))) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const item = state.items[itemId];
|
const item = state.items[context][itemId];
|
||||||
let filteredItem;
|
let filteredItem;
|
||||||
|
|
||||||
if (Array.isArray(fields)) {
|
if (Array.isArray(fields)) {
|
||||||
@ -3230,9 +3276,11 @@ function getQueriedItemsUncached(state, query) {
|
|||||||
Object(external_lodash_["set"])(filteredItem, field, value);
|
Object(external_lodash_["set"])(filteredItem, field, value);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
var _state$itemIsComplete;
|
||||||
|
|
||||||
// If expecting a complete item, validate that completeness, or
|
// If expecting a complete item, validate that completeness, or
|
||||||
// otherwise abort.
|
// otherwise abort.
|
||||||
if (!state.itemIsComplete[itemId]) {
|
if (!((_state$itemIsComplete = state.itemIsComplete[context]) !== null && _state$itemIsComplete !== void 0 && _state$itemIsComplete[itemId])) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3416,22 +3464,28 @@ function getEntity(state, kind, name) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function getEntityRecord(state, kind, name, key, query) {
|
function getEntityRecord(state, kind, name, key, query) {
|
||||||
|
var _query$context, _queriedState$items$c;
|
||||||
|
|
||||||
const queriedState = Object(external_lodash_["get"])(state.entities.data, [kind, name, 'queriedData']);
|
const queriedState = Object(external_lodash_["get"])(state.entities.data, [kind, name, 'queriedData']);
|
||||||
|
|
||||||
if (!queriedState) {
|
if (!queriedState) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const context = (_query$context = query === null || query === void 0 ? void 0 : query.context) !== null && _query$context !== void 0 ? _query$context : 'default';
|
||||||
|
|
||||||
if (query === undefined) {
|
if (query === undefined) {
|
||||||
|
var _queriedState$itemIsC;
|
||||||
|
|
||||||
// If expecting a complete item, validate that completeness.
|
// If expecting a complete item, validate that completeness.
|
||||||
if (!queriedState.itemIsComplete[key]) {
|
if (!((_queriedState$itemIsC = queriedState.itemIsComplete[context]) !== null && _queriedState$itemIsC !== void 0 && _queriedState$itemIsC[key])) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
return queriedState.items[key];
|
return queriedState.items[context][key];
|
||||||
}
|
}
|
||||||
|
|
||||||
const item = queriedState.items[key];
|
const item = (_queriedState$items$c = queriedState.items[context]) === null || _queriedState$items$c === void 0 ? void 0 : _queriedState$items$c[key];
|
||||||
|
|
||||||
if (item && query._fields) {
|
if (item && query._fields) {
|
||||||
const filteredItem = {};
|
const filteredItem = {};
|
||||||
@ -4181,8 +4235,8 @@ function* resolvers_getEntityRecords(kind, name, query = {}) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const path = Object(external_wp_url_["addQueryArgs"])(entity.baseURL, { ...query,
|
const path = Object(external_wp_url_["addQueryArgs"])(entity.baseURL, { ...entity.baseURLParams,
|
||||||
context: 'edit'
|
...query
|
||||||
});
|
});
|
||||||
let records = Object.values(yield Object(external_wp_dataControls_["apiFetch"])({
|
let records = Object.values(yield Object(external_wp_dataControls_["apiFetch"])({
|
||||||
path
|
path
|
||||||
@ -4206,7 +4260,7 @@ function* resolvers_getEntityRecords(kind, name, query = {}) {
|
|||||||
// resolve the `getEntityRecord` selector in addition to `getEntityRecords`.
|
// resolve the `getEntityRecord` selector in addition to `getEntityRecords`.
|
||||||
// See https://github.com/WordPress/gutenberg/pull/26575
|
// See https://github.com/WordPress/gutenberg/pull/26575
|
||||||
|
|
||||||
if (!((_query = query) !== null && _query !== void 0 && _query._fields)) {
|
if (!((_query = query) !== null && _query !== void 0 && _query._fields) && !query.context) {
|
||||||
const key = entity.key || DEFAULT_ENTITY_KEY;
|
const key = entity.key || DEFAULT_ENTITY_KEY;
|
||||||
const resolutionsArgs = records.filter(record => record[key]).map(record => [kind, name, record[key]]);
|
const resolutionsArgs = records.filter(record => record[key]).map(record => [kind, name, record[key]]);
|
||||||
yield {
|
yield {
|
||||||
|
2
wp-includes/js/dist/core-data.min.js
vendored
2
wp-includes/js/dist/core-data.min.js
vendored
File diff suppressed because one or more lines are too long
6
wp-includes/js/dist/customize-widgets.js
vendored
6
wp-includes/js/dist/customize-widgets.js
vendored
@ -2413,6 +2413,8 @@ Object(external_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/customize-widg
|
|||||||
const {
|
const {
|
||||||
wp: build_module_wp
|
wp: build_module_wp
|
||||||
} = window;
|
} = window;
|
||||||
|
const DISABLED_BLOCKS = ['core/more', 'core/block', 'core/freeform'];
|
||||||
|
const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
|
||||||
/**
|
/**
|
||||||
* Initializes the widgets block editor in the customizer.
|
* Initializes the widgets block editor in the customizer.
|
||||||
*
|
*
|
||||||
@ -2421,7 +2423,9 @@ const {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function initialize(editorName, blockEditorSettings) {
|
function initialize(editorName, blockEditorSettings) {
|
||||||
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => !['core/more', 'core/freeform'].includes(block.name));
|
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => {
|
||||||
|
return !(DISABLED_BLOCKS.includes(block.name) || block.name.startsWith('core/post') || block.name.startsWith('core/query') || block.name.startsWith('core/site'));
|
||||||
|
});
|
||||||
|
|
||||||
Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
|
Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
|
||||||
Object(external_wp_widgets_["registerLegacyWidgetBlock"])();
|
Object(external_wp_widgets_["registerLegacyWidgetBlock"])();
|
||||||
|
4
wp-includes/js/dist/customize-widgets.min.js
vendored
4
wp-includes/js/dist/customize-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
626
wp-includes/js/dist/edit-post.js
vendored
626
wp-includes/js/dist/edit-post.js
vendored
@ -14505,306 +14505,6 @@ var list_view = __webpack_require__("OzlF");
|
|||||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
|
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
|
||||||
var plus = __webpack_require__("Q4Sy");
|
var plus = __webpack_require__("Q4Sy");
|
||||||
|
|
||||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
|
|
||||||
var chevron_down = __webpack_require__("NWDH");
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/delete-template.js
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* External dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function DeleteTemplate() {
|
|
||||||
const {
|
|
||||||
clearSelectedBlock
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]);
|
|
||||||
const {
|
|
||||||
setIsEditingTemplate
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
|
|
||||||
const {
|
|
||||||
getEditorSettings
|
|
||||||
} = Object(external_wp_data_["useSelect"])(external_wp_editor_["store"]);
|
|
||||||
const {
|
|
||||||
updateEditorSettings,
|
|
||||||
editPost
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(external_wp_editor_["store"]);
|
|
||||||
const {
|
|
||||||
deleteEntityRecord
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
|
|
||||||
const {
|
|
||||||
template
|
|
||||||
} = Object(external_wp_data_["useSelect"])(select => {
|
|
||||||
const {
|
|
||||||
isEditingTemplate,
|
|
||||||
getEditedPostTemplate
|
|
||||||
} = select(store["a" /* store */]);
|
|
||||||
|
|
||||||
const _isEditing = isEditingTemplate();
|
|
||||||
|
|
||||||
return {
|
|
||||||
template: _isEditing ? getEditedPostTemplate() : null
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
if (!template || !template.wp_id) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
let templateTitle = template.slug;
|
|
||||||
|
|
||||||
if (template !== null && template !== void 0 && template.title) {
|
|
||||||
templateTitle = template.title;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
|
|
||||||
className: "edit-post-template-top-area__second-menu-group"
|
|
||||||
}, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
|
|
||||||
className: "edit-post-template-top-area__delete-template-button",
|
|
||||||
isDestructive: true,
|
|
||||||
isSecondary: true,
|
|
||||||
"aria-label": Object(external_wp_i18n_["__"])('Delete template'),
|
|
||||||
onClick: () => {
|
|
||||||
if ( // eslint-disable-next-line no-alert
|
|
||||||
window.confirm(Object(external_wp_i18n_["sprintf"])(
|
|
||||||
/* translators: %s: template name */
|
|
||||||
Object(external_wp_i18n_["__"])('Are you sure you want to delete the %s template? It may be used by other pages or posts.'), templateTitle))) {
|
|
||||||
clearSelectedBlock();
|
|
||||||
setIsEditingTemplate(false);
|
|
||||||
editPost({
|
|
||||||
template: ''
|
|
||||||
});
|
|
||||||
const settings = getEditorSettings();
|
|
||||||
const newAvailableTemplates = Object(external_lodash_["pickBy"])(settings.availableTemplates, (_title, id) => {
|
|
||||||
return id !== template.slug;
|
|
||||||
});
|
|
||||||
updateEditorSettings({ ...settings,
|
|
||||||
availableTemplates: newAvailableTemplates
|
|
||||||
});
|
|
||||||
deleteEntityRecord('postType', 'wp_template', template.id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, Object(external_wp_i18n_["__"])('Delete template')));
|
|
||||||
}
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/edit-template-title.js
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* External dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function EditTemplateTitle() {
|
|
||||||
const {
|
|
||||||
template
|
|
||||||
} = Object(external_wp_data_["useSelect"])(select => {
|
|
||||||
const {
|
|
||||||
getEditedPostTemplate
|
|
||||||
} = select(store["a" /* store */]);
|
|
||||||
return {
|
|
||||||
template: getEditedPostTemplate()
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
const {
|
|
||||||
editEntityRecord
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
|
|
||||||
const {
|
|
||||||
getEditorSettings
|
|
||||||
} = Object(external_wp_data_["useSelect"])(external_wp_editor_["store"]);
|
|
||||||
const {
|
|
||||||
updateEditorSettings
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(external_wp_editor_["store"]);
|
|
||||||
|
|
||||||
let templateTitle = Object(external_wp_i18n_["__"])('Default');
|
|
||||||
|
|
||||||
if (template !== null && template !== void 0 && template.title) {
|
|
||||||
templateTitle = template.title;
|
|
||||||
} else if (!!template) {
|
|
||||||
templateTitle = template.slug;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], {
|
|
||||||
label: Object(external_wp_i18n_["__"])('Title'),
|
|
||||||
value: templateTitle,
|
|
||||||
help: Object(external_wp_i18n_["__"])('Give the template a title that indicates its purpose, e.g. "Full Width".'),
|
|
||||||
onChange: newTitle => {
|
|
||||||
const settings = getEditorSettings();
|
|
||||||
const newAvailableTemplates = Object(external_lodash_["mapValues"])(settings.availableTemplates, (existingTitle, id) => {
|
|
||||||
if (id !== template.slug) {
|
|
||||||
return existingTitle;
|
|
||||||
}
|
|
||||||
|
|
||||||
return newTitle;
|
|
||||||
});
|
|
||||||
updateEditorSettings({ ...settings,
|
|
||||||
availableTemplates: newAvailableTemplates
|
|
||||||
});
|
|
||||||
editEntityRecord('postType', 'wp_template', template.id, {
|
|
||||||
title: newTitle
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/template-description.js
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function TemplateDescription() {
|
|
||||||
const {
|
|
||||||
description
|
|
||||||
} = Object(external_wp_data_["useSelect"])(select => {
|
|
||||||
const {
|
|
||||||
getEditedPostTemplate
|
|
||||||
} = select(store["a" /* store */]);
|
|
||||||
return {
|
|
||||||
description: getEditedPostTemplate().description
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
if (!description) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalText"], {
|
|
||||||
size: "body"
|
|
||||||
}, description);
|
|
||||||
}
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/index.js
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function TemplateTitle() {
|
|
||||||
const {
|
|
||||||
template,
|
|
||||||
isEditing,
|
|
||||||
title
|
|
||||||
} = Object(external_wp_data_["useSelect"])(select => {
|
|
||||||
const {
|
|
||||||
isEditingTemplate,
|
|
||||||
getEditedPostTemplate
|
|
||||||
} = select(store["a" /* store */]);
|
|
||||||
const {
|
|
||||||
getEditedPostAttribute
|
|
||||||
} = select(external_wp_editor_["store"]);
|
|
||||||
|
|
||||||
const _isEditing = isEditingTemplate();
|
|
||||||
|
|
||||||
return {
|
|
||||||
template: _isEditing ? getEditedPostTemplate() : null,
|
|
||||||
isEditing: _isEditing,
|
|
||||||
title: getEditedPostAttribute('title')
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
const {
|
|
||||||
clearSelectedBlock
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]);
|
|
||||||
const {
|
|
||||||
setIsEditingTemplate
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
|
|
||||||
|
|
||||||
if (!isEditing || !template) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
let templateTitle = Object(external_wp_i18n_["__"])('Default');
|
|
||||||
|
|
||||||
if (template !== null && template !== void 0 && template.title) {
|
|
||||||
templateTitle = template.title;
|
|
||||||
} else if (!!template) {
|
|
||||||
templateTitle = template.slug;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarItem"], null, toolbarItemHTMLProps => {
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["Dropdown"], {
|
|
||||||
className: "edit-post-template-top-area",
|
|
||||||
position: "bottom center",
|
|
||||||
contentClassName: "edit-post-template-top-area__popover",
|
|
||||||
renderToggle: ({
|
|
||||||
onToggle
|
|
||||||
}) => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, toolbarItemHTMLProps, {
|
|
||||||
className: "edit-post-template-post-title",
|
|
||||||
isLink: true,
|
|
||||||
showTooltip: true,
|
|
||||||
label: Object(external_wp_i18n_["sprintf"])(
|
|
||||||
/* translators: %s: Title of the referring post, e.g: "Hello World!" */
|
|
||||||
Object(external_wp_i18n_["__"])('Edit %s'), title),
|
|
||||||
onClick: () => {
|
|
||||||
clearSelectedBlock();
|
|
||||||
setIsEditingTemplate(false);
|
|
||||||
}
|
|
||||||
}), title), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, toolbarItemHTMLProps, {
|
|
||||||
className: "edit-post-template-title",
|
|
||||||
isLink: true,
|
|
||||||
icon: chevron_down["a" /* default */],
|
|
||||||
showTooltip: true,
|
|
||||||
onClick: onToggle,
|
|
||||||
label: Object(external_wp_i18n_["__"])('Template Options')
|
|
||||||
}), templateTitle)),
|
|
||||||
renderContent: () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, template.has_theme_file ? Object(external_wp_element_["createElement"])(TemplateDescription, null) : Object(external_wp_element_["createElement"])(EditTemplateTitle, null), Object(external_wp_element_["createElement"])(DeleteTemplate, null))
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ var template_title = (TemplateTitle);
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js
|
||||||
|
|
||||||
|
|
||||||
@ -14826,7 +14526,6 @@ function TemplateTitle() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function HeaderToolbar() {
|
function HeaderToolbar() {
|
||||||
const inserterButton = Object(external_wp_element_["useRef"])();
|
const inserterButton = Object(external_wp_element_["useRef"])();
|
||||||
const {
|
const {
|
||||||
@ -14934,7 +14633,7 @@ function HeaderToolbar() {
|
|||||||
as: external_wp_editor_["EditorHistoryRedo"],
|
as: external_wp_editor_["EditorHistoryRedo"],
|
||||||
showTooltip: !showIconLabels,
|
showTooltip: !showIconLabels,
|
||||||
isTertiary: showIconLabels
|
isTertiary: showIconLabels
|
||||||
}), overflowItems)), Object(external_wp_element_["createElement"])(template_title, null));
|
}), overflowItems)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var header_toolbar = (HeaderToolbar);
|
/* harmony default export */ var header_toolbar = (HeaderToolbar);
|
||||||
@ -15390,6 +15089,304 @@ const main_dashboard_button_Slot = ({
|
|||||||
MainDashboardButton.Slot = main_dashboard_button_Slot;
|
MainDashboardButton.Slot = main_dashboard_button_Slot;
|
||||||
/* harmony default export */ var main_dashboard_button = (MainDashboardButton);
|
/* harmony default export */ var main_dashboard_button = (MainDashboardButton);
|
||||||
|
|
||||||
|
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
|
||||||
|
var chevron_down = __webpack_require__("NWDH");
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/delete-template.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* External dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function DeleteTemplate() {
|
||||||
|
const {
|
||||||
|
clearSelectedBlock
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]);
|
||||||
|
const {
|
||||||
|
setIsEditingTemplate
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
|
||||||
|
const {
|
||||||
|
getEditorSettings
|
||||||
|
} = Object(external_wp_data_["useSelect"])(external_wp_editor_["store"]);
|
||||||
|
const {
|
||||||
|
updateEditorSettings,
|
||||||
|
editPost
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(external_wp_editor_["store"]);
|
||||||
|
const {
|
||||||
|
deleteEntityRecord
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
|
||||||
|
const {
|
||||||
|
template
|
||||||
|
} = Object(external_wp_data_["useSelect"])(select => {
|
||||||
|
const {
|
||||||
|
isEditingTemplate,
|
||||||
|
getEditedPostTemplate
|
||||||
|
} = select(store["a" /* store */]);
|
||||||
|
|
||||||
|
const _isEditing = isEditingTemplate();
|
||||||
|
|
||||||
|
return {
|
||||||
|
template: _isEditing ? getEditedPostTemplate() : null
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
if (!template || !template.wp_id) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
let templateTitle = template.slug;
|
||||||
|
|
||||||
|
if (template !== null && template !== void 0 && template.title) {
|
||||||
|
templateTitle = template.title;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
|
||||||
|
className: "edit-post-template-top-area__second-menu-group"
|
||||||
|
}, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
|
||||||
|
className: "edit-post-template-top-area__delete-template-button",
|
||||||
|
isDestructive: true,
|
||||||
|
isSecondary: true,
|
||||||
|
"aria-label": Object(external_wp_i18n_["__"])('Delete template'),
|
||||||
|
onClick: () => {
|
||||||
|
if ( // eslint-disable-next-line no-alert
|
||||||
|
window.confirm(Object(external_wp_i18n_["sprintf"])(
|
||||||
|
/* translators: %s: template name */
|
||||||
|
Object(external_wp_i18n_["__"])('Are you sure you want to delete the %s template? It may be used by other pages or posts.'), templateTitle))) {
|
||||||
|
clearSelectedBlock();
|
||||||
|
setIsEditingTemplate(false);
|
||||||
|
editPost({
|
||||||
|
template: ''
|
||||||
|
});
|
||||||
|
const settings = getEditorSettings();
|
||||||
|
const newAvailableTemplates = Object(external_lodash_["pickBy"])(settings.availableTemplates, (_title, id) => {
|
||||||
|
return id !== template.slug;
|
||||||
|
});
|
||||||
|
updateEditorSettings({ ...settings,
|
||||||
|
availableTemplates: newAvailableTemplates
|
||||||
|
});
|
||||||
|
deleteEntityRecord('postType', 'wp_template', template.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, Object(external_wp_i18n_["__"])('Delete template')));
|
||||||
|
}
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/edit-template-title.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* External dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function EditTemplateTitle() {
|
||||||
|
const {
|
||||||
|
template
|
||||||
|
} = Object(external_wp_data_["useSelect"])(select => {
|
||||||
|
const {
|
||||||
|
getEditedPostTemplate
|
||||||
|
} = select(store["a" /* store */]);
|
||||||
|
return {
|
||||||
|
template: getEditedPostTemplate()
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
const {
|
||||||
|
editEntityRecord
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
|
||||||
|
const {
|
||||||
|
getEditorSettings
|
||||||
|
} = Object(external_wp_data_["useSelect"])(external_wp_editor_["store"]);
|
||||||
|
const {
|
||||||
|
updateEditorSettings
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(external_wp_editor_["store"]);
|
||||||
|
|
||||||
|
let templateTitle = Object(external_wp_i18n_["__"])('Default');
|
||||||
|
|
||||||
|
if (template !== null && template !== void 0 && template.title) {
|
||||||
|
templateTitle = template.title;
|
||||||
|
} else if (!!template) {
|
||||||
|
templateTitle = template.slug;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], {
|
||||||
|
label: Object(external_wp_i18n_["__"])('Title'),
|
||||||
|
value: templateTitle,
|
||||||
|
help: Object(external_wp_i18n_["__"])('Give the template a title that indicates its purpose, e.g. "Full Width".'),
|
||||||
|
onChange: newTitle => {
|
||||||
|
const settings = getEditorSettings();
|
||||||
|
const newAvailableTemplates = Object(external_lodash_["mapValues"])(settings.availableTemplates, (existingTitle, id) => {
|
||||||
|
if (id !== template.slug) {
|
||||||
|
return existingTitle;
|
||||||
|
}
|
||||||
|
|
||||||
|
return newTitle;
|
||||||
|
});
|
||||||
|
updateEditorSettings({ ...settings,
|
||||||
|
availableTemplates: newAvailableTemplates
|
||||||
|
});
|
||||||
|
editEntityRecord('postType', 'wp_template', template.id, {
|
||||||
|
title: newTitle
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/template-description.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function TemplateDescription() {
|
||||||
|
const {
|
||||||
|
description
|
||||||
|
} = Object(external_wp_data_["useSelect"])(select => {
|
||||||
|
const {
|
||||||
|
getEditedPostTemplate
|
||||||
|
} = select(store["a" /* store */]);
|
||||||
|
return {
|
||||||
|
description: getEditedPostTemplate().description
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
if (!description) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalText"], {
|
||||||
|
size: "body"
|
||||||
|
}, description);
|
||||||
|
}
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/template-title/index.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function TemplateTitle() {
|
||||||
|
const {
|
||||||
|
template,
|
||||||
|
isEditing,
|
||||||
|
title
|
||||||
|
} = Object(external_wp_data_["useSelect"])(select => {
|
||||||
|
const {
|
||||||
|
isEditingTemplate,
|
||||||
|
getEditedPostTemplate
|
||||||
|
} = select(store["a" /* store */]);
|
||||||
|
const {
|
||||||
|
getEditedPostAttribute
|
||||||
|
} = select(external_wp_editor_["store"]);
|
||||||
|
|
||||||
|
const _isEditing = isEditingTemplate();
|
||||||
|
|
||||||
|
return {
|
||||||
|
template: _isEditing ? getEditedPostTemplate() : null,
|
||||||
|
isEditing: _isEditing,
|
||||||
|
title: getEditedPostAttribute('title')
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
const {
|
||||||
|
clearSelectedBlock
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]);
|
||||||
|
const {
|
||||||
|
setIsEditingTemplate
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
|
||||||
|
|
||||||
|
if (!isEditing || !template) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
let templateTitle = Object(external_wp_i18n_["__"])('Default');
|
||||||
|
|
||||||
|
if (template !== null && template !== void 0 && template.title) {
|
||||||
|
templateTitle = template.title;
|
||||||
|
} else if (!!template) {
|
||||||
|
templateTitle = template.slug;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Object(external_wp_element_["createElement"])("div", {
|
||||||
|
className: "edit-post-template-top-area"
|
||||||
|
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
||||||
|
className: "edit-post-template-post-title",
|
||||||
|
isLink: true,
|
||||||
|
showTooltip: true,
|
||||||
|
label: Object(external_wp_i18n_["sprintf"])(
|
||||||
|
/* translators: %s: Title of the referring post, e.g: "Hello World!" */
|
||||||
|
Object(external_wp_i18n_["__"])('Edit %s'), title),
|
||||||
|
onClick: () => {
|
||||||
|
clearSelectedBlock();
|
||||||
|
setIsEditingTemplate(false);
|
||||||
|
}
|
||||||
|
}, title), Object(external_wp_element_["createElement"])(external_wp_components_["Dropdown"], {
|
||||||
|
position: "bottom center",
|
||||||
|
contentClassName: "edit-post-template-top-area__popover",
|
||||||
|
renderToggle: ({
|
||||||
|
onToggle
|
||||||
|
}) => Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
||||||
|
className: "edit-post-template-title",
|
||||||
|
isLink: true,
|
||||||
|
icon: chevron_down["a" /* default */],
|
||||||
|
showTooltip: true,
|
||||||
|
onClick: onToggle,
|
||||||
|
label: Object(external_wp_i18n_["__"])('Template Options')
|
||||||
|
}, templateTitle),
|
||||||
|
renderContent: () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, template.has_theme_file ? Object(external_wp_element_["createElement"])(TemplateDescription, null) : Object(external_wp_element_["createElement"])(EditTemplateTitle, null), Object(external_wp_element_["createElement"])(DeleteTemplate, null))
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* harmony default export */ var template_title = (TemplateTitle);
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/index.js
|
||||||
|
|
||||||
|
|
||||||
@ -15417,6 +15414,7 @@ MainDashboardButton.Slot = main_dashboard_button_Slot;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Header({
|
function Header({
|
||||||
setEntitiesSavedStatesCallback
|
setEntitiesSavedStatesCallback
|
||||||
}) {
|
}) {
|
||||||
@ -15441,7 +15439,7 @@ function Header({
|
|||||||
className: classes
|
className: classes
|
||||||
}, Object(external_wp_element_["createElement"])(main_dashboard_button.Slot, null, Object(external_wp_element_["createElement"])(fullscreen_mode_close, null)), Object(external_wp_element_["createElement"])("div", {
|
}, Object(external_wp_element_["createElement"])(main_dashboard_button.Slot, null, Object(external_wp_element_["createElement"])(fullscreen_mode_close, null)), Object(external_wp_element_["createElement"])("div", {
|
||||||
className: "edit-post-header__toolbar"
|
className: "edit-post-header__toolbar"
|
||||||
}, Object(external_wp_element_["createElement"])(header_toolbar, null)), Object(external_wp_element_["createElement"])("div", {
|
}, Object(external_wp_element_["createElement"])(header_toolbar, null), Object(external_wp_element_["createElement"])(template_title, null)), Object(external_wp_element_["createElement"])("div", {
|
||||||
className: "edit-post-header__settings"
|
className: "edit-post-header__settings"
|
||||||
}, !isPublishSidebarOpened && // This button isn't completely hidden by the publish sidebar.
|
}, !isPublishSidebarOpened && // This button isn't completely hidden by the publish sidebar.
|
||||||
// We can't hide the whole toolbar when the publish sidebar is open because
|
// We can't hide the whole toolbar when the publish sidebar is open because
|
||||||
@ -16917,6 +16915,7 @@ function PostTemplateActions() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
@ -16934,6 +16933,7 @@ function TemplatePanel() {
|
|||||||
isOpened,
|
isOpened,
|
||||||
selectedTemplate,
|
selectedTemplate,
|
||||||
availableTemplates,
|
availableTemplates,
|
||||||
|
fetchedTemplates,
|
||||||
isViewable,
|
isViewable,
|
||||||
template,
|
template,
|
||||||
supportsTemplateMode
|
supportsTemplateMode
|
||||||
@ -16951,23 +16951,37 @@ function TemplatePanel() {
|
|||||||
getCurrentPostType
|
getCurrentPostType
|
||||||
} = select(external_wp_editor_["store"]);
|
} = select(external_wp_editor_["store"]);
|
||||||
const {
|
const {
|
||||||
getPostType
|
getPostType,
|
||||||
|
getEntityRecords
|
||||||
} = select(external_wp_coreData_["store"]);
|
} = select(external_wp_coreData_["store"]);
|
||||||
|
|
||||||
const _isViewable = (_getPostType$viewable = (_getPostType = getPostType(getCurrentPostType())) === null || _getPostType === void 0 ? void 0 : _getPostType.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false;
|
const _isViewable = (_getPostType$viewable = (_getPostType = getPostType(getCurrentPostType())) === null || _getPostType === void 0 ? void 0 : _getPostType.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false;
|
||||||
|
|
||||||
const _supportsTemplateMode = select(external_wp_editor_["store"]).getEditorSettings().supportsTemplateMode && _isViewable;
|
const _supportsTemplateMode = select(external_wp_editor_["store"]).getEditorSettings().supportsTemplateMode && _isViewable;
|
||||||
|
|
||||||
|
const wpTemplates = getEntityRecords('postType', 'wp_template', {
|
||||||
|
per_page: -1
|
||||||
|
});
|
||||||
|
const newAvailableTemplates = Object(external_lodash_["fromPairs"])((wpTemplates || []).map(({
|
||||||
|
slug,
|
||||||
|
title
|
||||||
|
}) => [slug, title.rendered]));
|
||||||
return {
|
return {
|
||||||
isEnabled: isEditorPanelEnabled(template_PANEL_NAME),
|
isEnabled: isEditorPanelEnabled(template_PANEL_NAME),
|
||||||
isOpened: isEditorPanelOpened(template_PANEL_NAME),
|
isOpened: isEditorPanelOpened(template_PANEL_NAME),
|
||||||
selectedTemplate: getEditedPostAttribute('template'),
|
selectedTemplate: getEditedPostAttribute('template'),
|
||||||
availableTemplates: getEditorSettings().availableTemplates,
|
availableTemplates: getEditorSettings().availableTemplates,
|
||||||
|
fetchedTemplates: newAvailableTemplates,
|
||||||
template: _supportsTemplateMode && getEditedPostTemplate(),
|
template: _supportsTemplateMode && getEditedPostTemplate(),
|
||||||
isViewable: _isViewable,
|
isViewable: _isViewable,
|
||||||
supportsTemplateMode: _supportsTemplateMode
|
supportsTemplateMode: _supportsTemplateMode
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
const templates = Object(external_wp_element_["useMemo"])(() => {
|
||||||
|
return { ...availableTemplates,
|
||||||
|
...fetchedTemplates
|
||||||
|
};
|
||||||
|
}, [availableTemplates, fetchedTemplates]);
|
||||||
const {
|
const {
|
||||||
toggleEditorPanelOpened
|
toggleEditorPanelOpened
|
||||||
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
|
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
|
||||||
@ -16998,13 +17012,13 @@ function TemplatePanel() {
|
|||||||
}, Object(external_wp_element_["createElement"])(external_wp_components_["SelectControl"], {
|
}, Object(external_wp_element_["createElement"])(external_wp_components_["SelectControl"], {
|
||||||
hideLabelFromVision: true,
|
hideLabelFromVision: true,
|
||||||
label: Object(external_wp_i18n_["__"])('Template:'),
|
label: Object(external_wp_i18n_["__"])('Template:'),
|
||||||
value: selectedTemplate,
|
value: Object.keys(templates).includes(selectedTemplate) ? selectedTemplate : '',
|
||||||
onChange: templateSlug => {
|
onChange: templateSlug => {
|
||||||
editPost({
|
editPost({
|
||||||
template: templateSlug || ''
|
template: templateSlug || ''
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
options: Object(external_lodash_["map"])(availableTemplates, (templateName, templateSlug) => ({
|
options: Object(external_lodash_["map"])(templates, (templateName, templateSlug) => ({
|
||||||
value: templateSlug,
|
value: templateSlug,
|
||||||
label: templateName
|
label: templateName
|
||||||
}))
|
}))
|
||||||
|
4
wp-includes/js/dist/edit-post.min.js
vendored
4
wp-includes/js/dist/edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
306
wp-includes/js/dist/edit-widgets.js
vendored
306
wp-includes/js/dist/edit-widgets.js
vendored
@ -746,15 +746,18 @@ function* saveWidgetArea(widgetAreaId) {
|
|||||||
|
|
||||||
const areaWidgets = Object.values(widgets).filter(({
|
const areaWidgets = Object.values(widgets).filter(({
|
||||||
sidebar
|
sidebar
|
||||||
}) => sidebar === widgetAreaId); // Remove all duplicate reference widget instances
|
}) => sidebar === widgetAreaId); // Remove all duplicate reference widget instances for legacy widgets.
|
||||||
|
// Why? We filter out the widgets with duplicate IDs to prevent adding more than one instance of a widget
|
||||||
|
// implemented using a function. WordPress doesn't support having more than one instance of these, if you try to
|
||||||
|
// save multiple instances of these in different sidebars you will run into undefined behaviors.
|
||||||
|
|
||||||
const usedReferenceWidgets = [];
|
const usedReferenceWidgets = [];
|
||||||
const widgetsBlocks = post.blocks.filter(({
|
const widgetsBlocks = post.blocks.filter(block => {
|
||||||
attributes: {
|
const {
|
||||||
id
|
id
|
||||||
}
|
} = block.attributes;
|
||||||
}) => {
|
|
||||||
if (id) {
|
if (block.name === 'core/legacy-widget' && id) {
|
||||||
if (usedReferenceWidgets.includes(id)) {
|
if (usedReferenceWidgets.includes(id)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1401,131 +1404,17 @@ Object(external_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-widgets
|
|||||||
// EXTERNAL MODULE: external ["wp","components"]
|
// EXTERNAL MODULE: external ["wp","components"]
|
||||||
var external_wp_components_ = __webpack_require__("tI+e");
|
var external_wp_components_ = __webpack_require__("tI+e");
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.js
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||||
|
var classnames = __webpack_require__("TSYQ");
|
||||||
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/use-is-dragging-within.js
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function WidgetAreaInnerBlocks() {
|
|
||||||
const [blocks, onInput, onChange] = Object(external_wp_coreData_["useEntityBlockEditor"])('root', 'postType');
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InnerBlocks"], {
|
|
||||||
value: blocks,
|
|
||||||
onInput: onInput,
|
|
||||||
onChange: onChange,
|
|
||||||
templateLock: false,
|
|
||||||
renderAppender: external_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/index.js
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WordPress dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal dependencies
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @typedef {import('@wordpress/element').RefObject} RefObject */
|
/** @typedef {import('@wordpress/element').RefObject} RefObject */
|
||||||
|
|
||||||
function WidgetAreaEdit({
|
|
||||||
clientId,
|
|
||||||
className,
|
|
||||||
attributes: {
|
|
||||||
id,
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}) {
|
|
||||||
const isOpen = Object(external_wp_data_["useSelect"])(select => select(store).getIsWidgetAreaOpen(clientId), [clientId]);
|
|
||||||
const {
|
|
||||||
setIsWidgetAreaOpen
|
|
||||||
} = Object(external_wp_data_["useDispatch"])(store);
|
|
||||||
const wrapper = Object(external_wp_element_["useRef"])();
|
|
||||||
const setOpen = Object(external_wp_element_["useCallback"])(openState => setIsWidgetAreaOpen(clientId, openState), [clientId]);
|
|
||||||
const isDragging = useIsDragging(wrapper);
|
|
||||||
const isDraggingWithin = useIsDraggingWithin(wrapper);
|
|
||||||
const [openedWhileDragging, setOpenedWhileDragging] = Object(external_wp_element_["useState"])(false);
|
|
||||||
Object(external_wp_element_["useEffect"])(() => {
|
|
||||||
if (!isDragging) {
|
|
||||||
setOpenedWhileDragging(false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isDraggingWithin && !isOpen) {
|
|
||||||
setOpen(true);
|
|
||||||
setOpenedWhileDragging(true);
|
|
||||||
} else if (!isDraggingWithin && isOpen && openedWhileDragging) {
|
|
||||||
setOpen(false);
|
|
||||||
}
|
|
||||||
}, [isOpen, isDragging, isDraggingWithin, openedWhileDragging]);
|
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["Panel"], {
|
|
||||||
className: className,
|
|
||||||
ref: wrapper
|
|
||||||
}, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
|
|
||||||
title: name,
|
|
||||||
opened: isOpen,
|
|
||||||
onToggle: () => {
|
|
||||||
setIsWidgetAreaOpen(clientId, !isOpen);
|
|
||||||
},
|
|
||||||
scrollAfterOpen: !isDragging
|
|
||||||
}, ({
|
|
||||||
opened
|
|
||||||
}) => // This is required to ensure LegacyWidget blocks are not
|
|
||||||
// unmounted when the panel is collapsed. Unmounting legacy
|
|
||||||
// widgets may have unintended consequences (e.g. TinyMCE
|
|
||||||
// not being properly reinitialized)
|
|
||||||
Object(external_wp_element_["createElement"])(external_wp_components_["__unstableDisclosureContent"], {
|
|
||||||
visible: opened
|
|
||||||
}, Object(external_wp_element_["createElement"])("div", {
|
|
||||||
className: "editor-styles-wrapper"
|
|
||||||
}, Object(external_wp_element_["createElement"])(external_wp_coreData_["EntityProvider"], {
|
|
||||||
kind: "root",
|
|
||||||
type: "postType",
|
|
||||||
id: `widget-area-${id}`
|
|
||||||
}, Object(external_wp_element_["createElement"])(WidgetAreaInnerBlocks, null))))));
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* A React hook to determine if dragging is active.
|
|
||||||
*
|
|
||||||
* @param {RefObject<HTMLElement>} elementRef The target elementRef object.
|
|
||||||
*
|
|
||||||
* @return {boolean} Is dragging within the entire document.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const useIsDragging = elementRef => {
|
|
||||||
const [isDragging, setIsDragging] = Object(external_wp_element_["useState"])(false);
|
|
||||||
Object(external_wp_element_["useEffect"])(() => {
|
|
||||||
const {
|
|
||||||
ownerDocument
|
|
||||||
} = elementRef.current;
|
|
||||||
|
|
||||||
function handleDragStart() {
|
|
||||||
setIsDragging(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleDragEnd() {
|
|
||||||
setIsDragging(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
ownerDocument.addEventListener('dragstart', handleDragStart);
|
|
||||||
ownerDocument.addEventListener('dragend', handleDragEnd);
|
|
||||||
return () => {
|
|
||||||
ownerDocument.removeEventListener('dragstart', handleDragStart);
|
|
||||||
ownerDocument.removeEventListener('dragend', handleDragEnd);
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
return isDragging;
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* A React hook to determine if it's dragging within the target element.
|
* A React hook to determine if it's dragging within the target element.
|
||||||
*
|
*
|
||||||
@ -1534,7 +1423,6 @@ const useIsDragging = elementRef => {
|
|||||||
* @return {boolean} Is dragging within the target element.
|
* @return {boolean} Is dragging within the target element.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
const useIsDraggingWithin = elementRef => {
|
const useIsDraggingWithin = elementRef => {
|
||||||
const [isDraggingWithin, setIsDraggingWithin] = Object(external_wp_element_["useState"])(false);
|
const [isDraggingWithin, setIsDraggingWithin] = Object(external_wp_element_["useState"])(false);
|
||||||
Object(external_wp_element_["useEffect"])(() => {
|
Object(external_wp_element_["useEffect"])(() => {
|
||||||
@ -1575,6 +1463,157 @@ const useIsDraggingWithin = elementRef => {
|
|||||||
return isDraggingWithin;
|
return isDraggingWithin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* harmony default export */ var use_is_dragging_within = (useIsDraggingWithin);
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* External dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function WidgetAreaInnerBlocks() {
|
||||||
|
const [blocks, onInput, onChange] = Object(external_wp_coreData_["useEntityBlockEditor"])('root', 'postType');
|
||||||
|
const innerBlocksRef = Object(external_wp_element_["useRef"])();
|
||||||
|
const isDraggingWithinInnerBlocks = use_is_dragging_within(innerBlocksRef);
|
||||||
|
const shouldHighlightDropZone = isDraggingWithinInnerBlocks; // Using the experimental hook so that we can control the className of the element.
|
||||||
|
|
||||||
|
const innerBlocksProps = Object(external_wp_blockEditor_["__experimentalUseInnerBlocksProps"])({
|
||||||
|
ref: innerBlocksRef
|
||||||
|
}, {
|
||||||
|
value: blocks,
|
||||||
|
onInput,
|
||||||
|
onChange,
|
||||||
|
templateLock: false,
|
||||||
|
renderAppender: external_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender
|
||||||
|
});
|
||||||
|
|
||||||
|
return Object(external_wp_element_["createElement"])("div", {
|
||||||
|
className: classnames_default()('wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper', {
|
||||||
|
'wp-block-widget-area__highlight-drop-zone': shouldHighlightDropZone
|
||||||
|
})
|
||||||
|
}, Object(external_wp_element_["createElement"])("div", innerBlocksProps));
|
||||||
|
}
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/index.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/** @typedef {import('@wordpress/element').RefObject} RefObject */
|
||||||
|
|
||||||
|
function WidgetAreaEdit({
|
||||||
|
clientId,
|
||||||
|
className,
|
||||||
|
attributes: {
|
||||||
|
id,
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}) {
|
||||||
|
const isOpen = Object(external_wp_data_["useSelect"])(select => select(store).getIsWidgetAreaOpen(clientId), [clientId]);
|
||||||
|
const {
|
||||||
|
setIsWidgetAreaOpen
|
||||||
|
} = Object(external_wp_data_["useDispatch"])(store);
|
||||||
|
const wrapper = Object(external_wp_element_["useRef"])();
|
||||||
|
const setOpen = Object(external_wp_element_["useCallback"])(openState => setIsWidgetAreaOpen(clientId, openState), [clientId]);
|
||||||
|
const isDragging = useIsDragging(wrapper);
|
||||||
|
const isDraggingWithin = use_is_dragging_within(wrapper);
|
||||||
|
const [openedWhileDragging, setOpenedWhileDragging] = Object(external_wp_element_["useState"])(false);
|
||||||
|
Object(external_wp_element_["useEffect"])(() => {
|
||||||
|
if (!isDragging) {
|
||||||
|
setOpenedWhileDragging(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isDraggingWithin && !isOpen) {
|
||||||
|
setOpen(true);
|
||||||
|
setOpenedWhileDragging(true);
|
||||||
|
} else if (!isDraggingWithin && isOpen && openedWhileDragging) {
|
||||||
|
setOpen(false);
|
||||||
|
}
|
||||||
|
}, [isOpen, isDragging, isDraggingWithin, openedWhileDragging]);
|
||||||
|
return Object(external_wp_element_["createElement"])(external_wp_components_["Panel"], {
|
||||||
|
className: className,
|
||||||
|
ref: wrapper
|
||||||
|
}, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
|
||||||
|
title: name,
|
||||||
|
opened: isOpen,
|
||||||
|
onToggle: () => {
|
||||||
|
setIsWidgetAreaOpen(clientId, !isOpen);
|
||||||
|
},
|
||||||
|
scrollAfterOpen: !isDragging
|
||||||
|
}, ({
|
||||||
|
opened
|
||||||
|
}) => // This is required to ensure LegacyWidget blocks are not
|
||||||
|
// unmounted when the panel is collapsed. Unmounting legacy
|
||||||
|
// widgets may have unintended consequences (e.g. TinyMCE
|
||||||
|
// not being properly reinitialized)
|
||||||
|
Object(external_wp_element_["createElement"])(external_wp_components_["__unstableDisclosureContent"], {
|
||||||
|
className: "wp-block-widget-area__panel-body-content",
|
||||||
|
visible: opened
|
||||||
|
}, Object(external_wp_element_["createElement"])(external_wp_coreData_["EntityProvider"], {
|
||||||
|
kind: "root",
|
||||||
|
type: "postType",
|
||||||
|
id: `widget-area-${id}`
|
||||||
|
}, Object(external_wp_element_["createElement"])(WidgetAreaInnerBlocks, null)))));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* A React hook to determine if dragging is active.
|
||||||
|
*
|
||||||
|
* @param {RefObject<HTMLElement>} elementRef The target elementRef object.
|
||||||
|
*
|
||||||
|
* @return {boolean} Is dragging within the entire document.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const useIsDragging = elementRef => {
|
||||||
|
const [isDragging, setIsDragging] = Object(external_wp_element_["useState"])(false);
|
||||||
|
Object(external_wp_element_["useEffect"])(() => {
|
||||||
|
const {
|
||||||
|
ownerDocument
|
||||||
|
} = elementRef.current;
|
||||||
|
|
||||||
|
function handleDragStart() {
|
||||||
|
setIsDragging(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDragEnd() {
|
||||||
|
setIsDragging(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
ownerDocument.addEventListener('dragstart', handleDragStart);
|
||||||
|
ownerDocument.addEventListener('dragend', handleDragEnd);
|
||||||
|
return () => {
|
||||||
|
ownerDocument.removeEventListener('dragstart', handleDragStart);
|
||||||
|
ownerDocument.removeEventListener('dragend', handleDragEnd);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
return isDragging;
|
||||||
|
};
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
@ -1801,6 +1840,10 @@ const useLastSelectedWidgetArea = () => Object(external_wp_data_["useSelect"])(s
|
|||||||
|
|
||||||
/* harmony default export */ var use_last_selected_widget_area = (useLastSelectedWidgetArea);
|
/* harmony default export */ var use_last_selected_widget_area = (useLastSelectedWidgetArea);
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/constants.js
|
||||||
|
const ALLOW_REUSABLE_BLOCKS = false;
|
||||||
|
const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-provider/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-provider/index.js
|
||||||
|
|
||||||
|
|
||||||
@ -1828,6 +1871,7 @@ const useLastSelectedWidgetArea = () => Object(external_wp_data_["useSelect"])(s
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function WidgetAreasBlockEditorProvider({
|
function WidgetAreasBlockEditorProvider({
|
||||||
blockEditorSettings,
|
blockEditorSettings,
|
||||||
children,
|
children,
|
||||||
@ -1842,7 +1886,7 @@ function WidgetAreasBlockEditorProvider({
|
|||||||
hasUploadPermissions: Object(external_lodash_["defaultTo"])(select('core').canUser('create', 'media'), true),
|
hasUploadPermissions: Object(external_lodash_["defaultTo"])(select('core').canUser('create', 'media'), true),
|
||||||
widgetAreas: select(store).getWidgetAreas(),
|
widgetAreas: select(store).getWidgetAreas(),
|
||||||
widgets: select(store).getWidgets(),
|
widgets: select(store).getWidgets(),
|
||||||
reusableBlocks: select('core').getEntityRecords('postType', 'wp_block'),
|
reusableBlocks: ALLOW_REUSABLE_BLOCKS ? select('core').getEntityRecords('postType', 'wp_block') : [],
|
||||||
isFixedToolbarActive: select(store).__unstableIsFeatureActive('fixedToolbar'),
|
isFixedToolbarActive: select(store).__unstableIsFeatureActive('fixedToolbar'),
|
||||||
keepCaretInsideBlock: select(store).__unstableIsFeatureActive('keepCaretInsideBlock')
|
keepCaretInsideBlock: select(store).__unstableIsFeatureActive('keepCaretInsideBlock')
|
||||||
}), []);
|
}), []);
|
||||||
@ -1891,10 +1935,6 @@ function WidgetAreasBlockEditorProvider({
|
|||||||
}))));
|
}))));
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
||||||
var classnames = __webpack_require__("TSYQ");
|
|
||||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
||||||
|
|
||||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/cog.js
|
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/cog.js
|
||||||
var cog = __webpack_require__("Cg8A");
|
var cog = __webpack_require__("Cg8A");
|
||||||
|
|
||||||
@ -3194,6 +3234,8 @@ function Layout({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const disabledBlocks = ['core/more', 'core/freeform', ...(!ALLOW_REUSABLE_BLOCKS && ['core/block'])];
|
||||||
/**
|
/**
|
||||||
* Initializes the block editor in the widgets screen.
|
* Initializes the block editor in the widgets screen.
|
||||||
*
|
*
|
||||||
@ -3202,7 +3244,9 @@ function Layout({
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function initialize(id, settings) {
|
function initialize(id, settings) {
|
||||||
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => !['core/more', 'core/freeform'].includes(block.name));
|
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => {
|
||||||
|
return !(disabledBlocks.includes(block.name) || block.name.startsWith('core/post') || block.name.startsWith('core/query') || block.name.startsWith('core/site'));
|
||||||
|
});
|
||||||
|
|
||||||
Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
|
Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
|
||||||
Object(external_wp_widgets_["registerLegacyWidgetBlock"])();
|
Object(external_wp_widgets_["registerLegacyWidgetBlock"])();
|
||||||
|
4
wp-includes/js/dist/edit-widgets.min.js
vendored
4
wp-includes/js/dist/edit-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1228,6 +1228,7 @@ class WP_REST_Server {
|
|||||||
$response = new WP_REST_Response( $available );
|
$response = new WP_REST_Response( $available );
|
||||||
$response->add_link( 'help', 'https://developer.wordpress.org/rest-api/' );
|
$response->add_link( 'help', 'https://developer.wordpress.org/rest-api/' );
|
||||||
$this->add_active_theme_link_to_index( $response );
|
$this->add_active_theme_link_to_index( $response );
|
||||||
|
$this->add_site_logo_to_index( $response );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters the REST API root index data.
|
* Filters the REST API root index data.
|
||||||
@ -1272,6 +1273,29 @@ class WP_REST_Server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exposes the site logo through the WordPress REST API.
|
||||||
|
* This is used for fetching this information when user has no rights
|
||||||
|
* to update settings.
|
||||||
|
*
|
||||||
|
* @since 5.8.0
|
||||||
|
*
|
||||||
|
* @param WP_REST_Response $response REST API response.
|
||||||
|
*/
|
||||||
|
protected function add_site_logo_to_index( WP_REST_Response $response ) {
|
||||||
|
$site_logo_id = get_theme_mod( 'custom_logo' );
|
||||||
|
$response->data['site_logo'] = $site_logo_id;
|
||||||
|
if ( $site_logo_id ) {
|
||||||
|
$response->add_link(
|
||||||
|
'https://api.w.org/featuredmedia',
|
||||||
|
rest_url( 'wp/v2/media/' . $site_logo_id ),
|
||||||
|
array(
|
||||||
|
'embeddable' => true,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the index for a namespace.
|
* Retrieves the index for a namespace.
|
||||||
*
|
*
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-beta3-51240';
|
$wp_version = '5.8-beta3-51241';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user