mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Compare commits
60 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00a39b7510 | ||
|
|
904be9b358 | ||
|
|
dccc2fce72 | ||
|
|
6a74fbbdb4 | ||
|
|
59b90e00ba | ||
|
|
c4f71d7126 | ||
|
|
63a2a7d749 | ||
|
|
40923799b4 | ||
|
|
b80e93cc7c | ||
|
|
b0aca7258d | ||
|
|
fd299ecfd5 | ||
|
|
cc7e4357b2 | ||
|
|
2463b10f68 | ||
|
|
3ab9d9a827 | ||
|
|
c5f96c8c1e | ||
|
|
634f735534 | ||
|
|
04747a1a91 | ||
|
|
8aab47c60b | ||
|
|
9bb65cc1a2 | ||
|
|
7694fd6237 | ||
|
|
da8c2720e8 | ||
|
|
4827cf62a2 | ||
|
|
71a92b774c | ||
|
|
ef7eafa4ce | ||
|
|
1cd7b9badb | ||
|
|
40b07bd32d | ||
|
|
89c4da675f | ||
|
|
2ce6913586 | ||
|
|
e6d8ac1656 | ||
|
|
c7fdc6880e | ||
|
|
be59e6ba32 | ||
|
|
a305bc9b34 | ||
|
|
083603e40b | ||
|
|
89fd1a92f8 | ||
|
|
356ec11f9d | ||
|
|
3b5ab3f14b | ||
|
|
727cf8b0f4 | ||
|
|
b67821a2bd | ||
|
|
83e01e562b | ||
|
|
74381dbbc2 | ||
|
|
4726b812e8 | ||
|
|
6e0d362bcc | ||
|
|
98b5022652 | ||
|
|
df6f9bdc6a | ||
|
|
52d04586c1 | ||
|
|
14e9ba9312 | ||
|
|
1851213287 | ||
|
|
1dbdbb2152 | ||
|
|
8f9eafb8d0 | ||
|
|
98a9717a62 | ||
|
|
3c60d0f021 | ||
|
|
a49a0799f1 | ||
|
|
97d360e154 | ||
|
|
67523c0063 | ||
|
|
3ef7134941 | ||
|
|
7949f94836 | ||
|
|
c43d34cc8f | ||
|
|
5cef392972 | ||
|
|
6acd6b188d | ||
|
|
2d50a4104f |
|
|
@ -41,6 +41,62 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section changelog has-subtle-background-color">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
26
|
||||
),
|
||||
'6.6.2',
|
||||
'26'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '6.6.2' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
16
|
||||
),
|
||||
'6.6.1',
|
||||
'16'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '6.6.1' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section">
|
||||
<div class="column">
|
||||
<h2>
|
||||
|
|
@ -65,7 +121,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%23ededed' /%3E%3C/svg%3E" alt="" height="436" width="436" />
|
||||
<img src="https://s.w.org/images/core/6.6/color-palettes.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -73,7 +129,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%23ededed' /%3E%3C/svg%3E" alt="" height="436" width="436" />
|
||||
<img src="https://s.w.org/images/core/6.6/page-previews.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
|
|
@ -89,7 +145,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%23ededed' /%3E%3C/svg%3E" alt="" height="436" width="436" />
|
||||
<img src="https://s.w.org/images/core/6.6/feature-rollbacks.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -97,7 +153,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%23ededed' /%3E%3C/svg%3E" alt="" height="436" width="436" />
|
||||
<img src="https://s.w.org/images/core/6.6/overrides.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
|
|
@ -124,8 +180,9 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: code-formatted "data-wp-on-async". */
|
||||
__( '6.6 includes important updates like removing redundant WP_Theme_JSON calls, disabling autoload for large options, eliminating unnecessary polyfill dependencies, lazy loading post embeds, introducing the %s directive, and a 40%% reduction in template loading time in the editor.' ),
|
||||
/* translators: %1$s: code-formatted "WP_Theme_JSON", %2$s: code-formatted "data-wp-on-async", %%: escaped percent sign, leave as %%. */
|
||||
__( 'WordPress 6.6 includes important updates like removing redundant %1$s calls, disabling autoload for large options, eliminating unnecessary polyfill dependencies, lazy loading post embeds, introducing the %2$s directive, and a 33%% reduction in template loading time in the editor.' ),
|
||||
'<code>WP_Theme_JSON</code>',
|
||||
'<code>data-wp-on-async</code>'
|
||||
);
|
||||
?>
|
||||
|
|
@ -152,7 +209,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
</div>
|
||||
<div class="column aligncenter">
|
||||
<div class="about__image">
|
||||
<a href="<?php esc_url( __( 'https://wordpress.org/download/releases/6-6/' ) ); ?>" class="button button-primary button-hero"><?php _e( 'See everything new' ); ?></a>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/download/releases/6-6/' ) ); ?>" class="button button-primary button-hero"><?php _e( 'See everything new' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*
|
||||
* @link https://codex.wordpress.org/AJAX_in_Plugins
|
||||
* @link https://developer.wordpress.org/plugins/javascript/ajax
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -408,10 +408,14 @@
|
|||
.about__container h2,
|
||||
.about__container h3,
|
||||
.about__container h4 {
|
||||
text-wrap: balance;
|
||||
text-wrap: pretty;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.about__container :is(h1, h2, h3, h4):lang(en) {
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.about__container p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
|
|
|||
2
wp-admin/css/about-rtl.min.css
vendored
2
wp-admin/css/about-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -407,10 +407,14 @@
|
|||
.about__container h2,
|
||||
.about__container h3,
|
||||
.about__container h4 {
|
||||
text-wrap: balance;
|
||||
text-wrap: pretty;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.about__container :is(h1, h2, h3, h4):lang(en) {
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.about__container p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
|
|
|||
2
wp-admin/css/about.min.css
vendored
2
wp-admin/css/about.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1272,23 +1272,13 @@ label.post-format-icon {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.categorydiv,
|
||||
.customlinkdiv,
|
||||
.posttypediv,
|
||||
.taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-tab-panel,
|
||||
.categorydiv div.tabs-panel,
|
||||
.customlinkdiv div.tabs-panel,
|
||||
.posttypediv div.tabs-panel,
|
||||
.taxonomydiv div.tabs-panel {
|
||||
min-height: 42px;
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
max-height: 200px;
|
||||
overflow: auto;
|
||||
padding: 0 0.9em;
|
||||
border: solid 1px #dcdcde;
|
||||
|
|
|
|||
2
wp-admin/css/edit-rtl.min.css
vendored
2
wp-admin/css/edit-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1271,23 +1271,13 @@ label.post-format-icon {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.categorydiv,
|
||||
.customlinkdiv,
|
||||
.posttypediv,
|
||||
.taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-tab-panel,
|
||||
.categorydiv div.tabs-panel,
|
||||
.customlinkdiv div.tabs-panel,
|
||||
.posttypediv div.tabs-panel,
|
||||
.taxonomydiv div.tabs-panel {
|
||||
min-height: 42px;
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
max-height: 200px;
|
||||
overflow: auto;
|
||||
padding: 0 0.9em;
|
||||
border: solid 1px #dcdcde;
|
||||
|
|
|
|||
2
wp-admin/css/edit.min.css
vendored
2
wp-admin/css/edit.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -54,6 +54,24 @@ ul.add-menu-item-tabs li {
|
|||
max-height: inherit;
|
||||
}
|
||||
|
||||
#menu-settings-column .categorydiv,
|
||||
#menu-settings-column .customlinkdiv,
|
||||
#menu-settings-column .posttypediv,
|
||||
#menu-settings-column .taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#menu-settings-column .wp-tab-panel,
|
||||
#menu-settings-column .categorydiv div.tabs-panel,
|
||||
#menu-settings-column .customlinkdiv div.tabs-panel,
|
||||
#menu-settings-column .posttypediv div.tabs-panel,
|
||||
#menu-settings-column .taxonomydiv div.tabs-panel {
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.metabox-holder-disabled .postbox,
|
||||
.metabox-holder-disabled .accordion-section-content,
|
||||
.metabox-holder-disabled .accordion-section-title {
|
||||
|
|
|
|||
2
wp-admin/css/nav-menus-rtl.min.css
vendored
2
wp-admin/css/nav-menus-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -53,6 +53,24 @@ ul.add-menu-item-tabs li {
|
|||
max-height: inherit;
|
||||
}
|
||||
|
||||
#menu-settings-column .categorydiv,
|
||||
#menu-settings-column .customlinkdiv,
|
||||
#menu-settings-column .posttypediv,
|
||||
#menu-settings-column .taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#menu-settings-column .wp-tab-panel,
|
||||
#menu-settings-column .categorydiv div.tabs-panel,
|
||||
#menu-settings-column .customlinkdiv div.tabs-panel,
|
||||
#menu-settings-column .posttypediv div.tabs-panel,
|
||||
#menu-settings-column .taxonomydiv div.tabs-panel {
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.metabox-holder-disabled .postbox,
|
||||
.metabox-holder-disabled .accordion-section-content,
|
||||
.metabox-holder-disabled .accordion-section-title {
|
||||
|
|
|
|||
2
wp-admin/css/nav-menus.min.css
vendored
2
wp-admin/css/nav-menus.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -84,18 +84,20 @@ if ( $wp_customize->changeset_post_id() ) {
|
|||
}
|
||||
}
|
||||
|
||||
$url = ! empty( $_REQUEST['url'] ) ? sanitize_text_field( $_REQUEST['url'] ) : '';
|
||||
$return = ! empty( $_REQUEST['return'] ) ? sanitize_text_field( $_REQUEST['return'] ) : '';
|
||||
$autofocus = ! empty( $_REQUEST['autofocus'] ) ? sanitize_text_field( $_REQUEST['autofocus'] ) : '';
|
||||
$url = ! empty( $_REQUEST['url'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['url'] ) ) : '';
|
||||
$return = ! empty( $_REQUEST['return'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['return'] ) ) : '';
|
||||
$autofocus = ! empty( $_REQUEST['autofocus'] ) && is_array( $_REQUEST['autofocus'] )
|
||||
? array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['autofocus'] ) )
|
||||
: array();
|
||||
|
||||
if ( ! empty( $url ) ) {
|
||||
$wp_customize->set_preview_url( wp_unslash( $url ) );
|
||||
$wp_customize->set_preview_url( $url );
|
||||
}
|
||||
if ( ! empty( $return ) ) {
|
||||
$wp_customize->set_return_url( wp_unslash( $return ) );
|
||||
$wp_customize->set_return_url( $return );
|
||||
}
|
||||
if ( ! empty( $autofocus ) && is_array( $autofocus ) ) {
|
||||
$wp_customize->set_autofocus( wp_unslash( $autofocus ) );
|
||||
if ( ! empty( $autofocus ) ) {
|
||||
$wp_customize->set_autofocus( $autofocus );
|
||||
}
|
||||
|
||||
$registered = $wp_scripts->registered;
|
||||
|
|
|
|||
|
|
@ -72,6 +72,9 @@ $preload_paths = array(
|
|||
sprintf( '%s/autosaves?context=edit', $rest_path ),
|
||||
'/wp/v2/settings',
|
||||
array( '/wp/v2/settings', 'OPTIONS' ),
|
||||
'/wp/v2/global-styles/themes/' . get_stylesheet(),
|
||||
'/wp/v2/themes?context=edit&status=active',
|
||||
'/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit',
|
||||
);
|
||||
|
||||
block_editor_rest_api_preload( $preload_paths, $block_editor_context );
|
||||
|
|
|
|||
|
|
@ -1670,6 +1670,18 @@ class WP_Debug_Data {
|
|||
'raw' => 0,
|
||||
);
|
||||
|
||||
// If the directory does not exist, skip checking it, as it will skew the other results.
|
||||
if ( ! is_dir( $path ) ) {
|
||||
$all_sizes[ $name ] = array(
|
||||
'path' => $path,
|
||||
'raw' => 0,
|
||||
'size' => __( 'The directory does not exist.' ),
|
||||
'debug' => 'directory not found',
|
||||
);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( microtime( true ) - WP_START_TIMESTAMP < $max_execution_time ) {
|
||||
if ( 'wordpress_size' === $name ) {
|
||||
$dir_size = recurse_dirsize( $path, $exclude, $max_execution_time );
|
||||
|
|
|
|||
|
|
@ -1354,7 +1354,7 @@ function link_xfn_meta_box( $link ) {
|
|||
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check( 'friendship', 'friend' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friend' ); ?>
|
||||
</label>
|
||||
<label for="friendship">
|
||||
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> /> <?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
|
||||
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> /> <?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
|
||||
</label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
|
@ -1405,7 +1405,7 @@ function link_xfn_meta_box( $link ) {
|
|||
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check( 'geographical', 'neighbor' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'neighbor' ); ?>
|
||||
</label>
|
||||
<label for="geographical">
|
||||
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> /> <?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
|
||||
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> /> <?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
|
||||
</label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
|
@ -1434,7 +1434,7 @@ function link_xfn_meta_box( $link ) {
|
|||
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check( 'family', 'spouse' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'spouse' ); ?>
|
||||
</label>
|
||||
<label for="family">
|
||||
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> /> <?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
|
||||
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> /> <?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
|
||||
</label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -765,6 +765,11 @@ $_old_files = array(
|
|||
'wp-admin/images/about-header-freedoms.svg',
|
||||
'wp-admin/images/about-header-contribute.svg',
|
||||
'wp-admin/images/about-header-background.svg',
|
||||
// 6.6
|
||||
'wp-includes/blocks/block/editor.css',
|
||||
'wp-includes/blocks/block/editor.min.css',
|
||||
'wp-includes/blocks/block/editor-rtl.css',
|
||||
'wp-includes/blocks/block/editor-rtl.min.css',
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
wp-admin/js/code-editor.min.js
vendored
2
wp-admin/js/code-editor.min.js
vendored
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(u,d){function s(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function i(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=u.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&u.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&u.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=u.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint)&&(t.options.rules.csslint=s.csslint),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,n,e){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,n,e),!_.isEqual(o,a)&&(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,n,e),!r.state.focused||0===a.length||0<d.length)&&c()}),t)}r.setOption("lint",i()),r.on("optionChange",function(t,n){var e,o="CodeMirror-lint-markers";"lint"===n&&(n=r.getOption("gutters")||[],!0===(e=r.getOption("lint"))?(_.contains(n,o)||r.setOption("gutters",[o].concat(n)),r.setOption("lint",i())):e||r.setOption("gutters",_.without(n,o)),r.getOption("lint")?r.performLint():(a=[],c()))}),r.on("blur",c),r.on("startCompletion",function(){r.off("blur",c)}),r.on("endCompletion",function(){r.on("blur",c),_.delay(function(){r.state.focused||c()},500)}),u(document.body).on("mousedown",function(t){!r.state.focused||u.contains(r.display.wrapper,t.target)||u(t.target).hasClass("CodeMirror-hint")||c()})}d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,n){var a,e,o,i,t=u("string"==typeof t?"#"+t:t),r=u.extend({},d.codeEditor.defaultSettings,n);return r.codemirror=u.extend({},r.codemirror),s(a=d.CodeMirror.fromTextArea(t[0],r.codemirror),r),t={settings:r,codemirror:a},a.showHint&&a.on("keyup",function(t,n){var e,o,i,r,s=/^[a-zA-Z]$/.test(n.key);a.state.completionActive&&s||"string"!==(r=a.getTokenAt(a.getCursor())).type&&"comment"!==r.type&&(i=d.CodeMirror.innerMode(a.getMode(),r.state).mode.name,o=a.doc.getLine(a.doc.getCursor().line).substr(0,a.doc.getCursor().ch),"html"===i||"xml"===i?e="<"===n.key||"/"===n.key&&"tag"===r.type||s&&"tag"===r.type||s&&"attribute"===r.type||"="===r.string&&r.state.htmlState&&r.state.htmlState.tagName:"css"===i?e=s||":"===n.key||" "===n.key&&/:\s+$/.test(o):"javascript"===i?e=s||"."===n.key:"clike"===i&&"php"===a.options.mode&&(e="keyword"===r.type||"variable"===r.type),e)&&a.showHint({completeSingle:!1})}),o=n,i=u((e=a).getTextArea()),e.on("blur",function(){i.data("next-tab-blurs",!1)}),e.on("keydown",function(t,n){27===n.keyCode?i.data("next-tab-blurs",!0):9===n.keyCode&&i.data("next-tab-blurs")&&(n.shiftKey?o.onTabPrevious(e,n):o.onTabNext(e,n),i.data("next-tab-blurs",!1),n.preventDefault())}),t}}(window.jQuery,window.wp);
|
||||
void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(u,d){"use strict";function s(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function i(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=u.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&u.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&u.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=u.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint)&&(t.options.rules.csslint=s.csslint),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,e,n){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,e,n),!_.isEqual(o,a)&&(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,e,n),!r.state.focused||0===a.length||0<d.length)&&c()}),t)}r.setOption("lint",i()),r.on("optionChange",function(t,e){var n,o="CodeMirror-lint-markers";"lint"===e&&(e=r.getOption("gutters")||[],!0===(n=r.getOption("lint"))?(_.contains(e,o)||r.setOption("gutters",[o].concat(e)),r.setOption("lint",i())):n||r.setOption("gutters",_.without(e,o)),r.getOption("lint")?r.performLint():(a=[],c()))}),r.on("blur",c),r.on("startCompletion",function(){r.off("blur",c)}),r.on("endCompletion",function(){r.on("blur",c),_.delay(function(){r.state.focused||c()},500)}),u(document.body).on("mousedown",function(t){!r.state.focused||u.contains(r.display.wrapper,t.target)||u(t.target).hasClass("CodeMirror-hint")||c()})}d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,e){var a,n,o,i,t=u("string"==typeof t?"#"+t:t),r=u.extend({},d.codeEditor.defaultSettings,e);return r.codemirror=u.extend({},r.codemirror),s(a=d.CodeMirror.fromTextArea(t[0],r.codemirror),r),t={settings:r,codemirror:a},a.showHint&&a.on("keyup",function(t,e){var n,o,i,r,s=/^[a-zA-Z]$/.test(e.key);a.state.completionActive&&s||"string"!==(r=a.getTokenAt(a.getCursor())).type&&"comment"!==r.type&&(i=d.CodeMirror.innerMode(a.getMode(),r.state).mode.name,o=a.doc.getLine(a.doc.getCursor().line).substr(0,a.doc.getCursor().ch),"html"===i||"xml"===i?n="<"===e.key||"/"===e.key&&"tag"===r.type||s&&"tag"===r.type||s&&"attribute"===r.type||"="===r.string&&r.state.htmlState&&r.state.htmlState.tagName:"css"===i?n=s||":"===e.key||" "===e.key&&/:\s+$/.test(o):"javascript"===i?n=s||"."===e.key:"clike"===i&&"php"===a.options.mode&&(n="keyword"===r.type||"variable"===r.type),n)&&a.showHint({completeSingle:!1})}),o=e,i=u((n=a).getTextArea()),n.on("blur",function(){i.data("next-tab-blurs",!1)}),n.on("keydown",function(t,e){27===e.keyCode?i.data("next-tab-blurs",!0):9===e.keyCode&&i.data("next-tab-blurs")&&(e.shiftKey?o.onTabPrevious(n,e):o.onTabNext(n,e),i.data("next-tab-blurs",!1),e.preventDefault())}),t}}(window.jQuery,window.wp);
|
||||
2
wp-admin/js/customize-nav-menus.min.js
vendored
2
wp-admin/js/customize-nav-menus.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/js/dashboard.min.js
vendored
2
wp-admin/js/dashboard.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/js/editor-expand.min.js
vendored
2
wp-admin/js/editor-expand.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/js/svg-painter.min.js
vendored
2
wp-admin/js/svg-painter.min.js
vendored
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
window.wp=window.wp||{},wp.svgPainter=function(e,i,n){var t,o,a,m,r,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=r.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)l-=o,u+=a.charAt(r=s>>l),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,o={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=(n=String(n).split("=")).length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,r,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==i._wpColorScheme?i._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){i.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a;if(t&&f.hasOwnProperty(t)&&(t=f[t]).match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+t))){if(!e){if(!(a=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!a[1])return void n.data("wp-ui-svg-"+t,"none");try{e=("atob"in i?i:o).atob(a[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+t,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+t+'"')).replace(/style="(.+?)"/g,'style="fill:'+t+'"')).replace(/fill:.*?;/g,"fill: "+t+";"),e=("btoa"in i?i:o).btoa(e),n.data("wp-ui-svg-"+t,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);
|
||||
window.wp=window.wp||{},wp.svgPainter=function(e,i,n){"use strict";var t,o,a,m,r,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=r.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)l-=o,u+=a.charAt(r=s>>l),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,o={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=(n=String(n).split("=")).length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,r,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==i._wpColorScheme?i._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){i.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a;if(t&&f.hasOwnProperty(t)&&(t=f[t]).match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+t))){if(!e){if(!(a=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!a[1])return void n.data("wp-ui-svg-"+t,"none");try{e=("atob"in i?i:o).atob(a[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+t,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+t+'"')).replace(/style="(.+?)"/g,'style="fill:'+t+'"')).replace(/fill:.*?;/g,"fill: "+t+";"),e=("btoa"in i?i:o).btoa(e),n.data("wp-ui-svg-"+t,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);
|
||||
2
wp-admin/js/theme-plugin-editor.min.js
vendored
2
wp-admin/js/theme-plugin-editor.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -96,7 +96,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
|
|||
},
|
||||
|
||||
// Defines search element container.
|
||||
searchContainer: $( '.search-form .search-box' ),
|
||||
searchContainer: $( '.search-form' ),
|
||||
|
||||
// Search input and view
|
||||
// for current theme collection.
|
||||
|
|
@ -118,11 +118,13 @@ themes.view.Appearance = wp.Backbone.View.extend({
|
|||
// Render and append after screen title.
|
||||
view.render();
|
||||
this.searchContainer
|
||||
.find( '.search-box' )
|
||||
.append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) )
|
||||
.append( view.el )
|
||||
.on( 'submit', function( event ) {
|
||||
event.preventDefault();
|
||||
});
|
||||
.append( view.el );
|
||||
|
||||
this.searchContainer.on( 'submit', function( event ) {
|
||||
event.preventDefault();
|
||||
});
|
||||
},
|
||||
|
||||
// Checks when the user gets close to the bottom
|
||||
|
|
|
|||
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
!function(d){var a=wp.media.view.MediaFrame.AudioDetails.extend({createStates:function(){this.states.add([new wp.media.controller.AudioDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"audio",id:"add-audio-source",title:wp.media.view.l10n.audioAddSourceTitle,toolbar:"add-audio-source",media:this.media,menu:!1})])}}),e=d.MediaWidgetModel.extend({}),t=d.MediaWidgetControl.extend({showDisplaySettings:!1,mapModelToMediaFrameProps:function(e){e=d.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},renderPreview:function(){var e,d=this,t=d.model.get("attachment_id"),a=d.model.get("url");(t||a)&&(t=d.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-audio-preview"),t.html(e({model:{attachment_id:d.model.get("attachment_id"),src:a},error:d.model.get("error")})),wp.mediaelement.initialize())},editMedia:function(){var d=this,e=d.mapModelToMediaFrameProps(d.model.toJSON()),t=new a({frame:"audio",state:"audio-details",metadata:e});(wp.media.frame=t).$el.addClass("media-widget"),e=function(e){d.selectedAttachment.set(e),d.model.set(_.extend(d.model.defaults(),d.mapMediaToModelProps(e),{error:!1}))},t.state("audio-details").on("update",e),t.state("replace-audio").on("replace",e),t.on("close",function(){t.detach()}),t.open()}});d.controlConstructors.media_audio=t,d.modelConstructors.media_audio=e}(wp.mediaWidgets);
|
||||
!function(t){"use strict";var a=wp.media.view.MediaFrame.AudioDetails.extend({createStates:function(){this.states.add([new wp.media.controller.AudioDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"audio",id:"add-audio-source",title:wp.media.view.l10n.audioAddSourceTitle,toolbar:"add-audio-source",media:this.media,menu:!1})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},renderPreview:function(){var e,t=this,d=t.model.get("attachment_id"),a=t.model.get("url");(d||a)&&(d=t.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-audio-preview"),d.html(e({model:{attachment_id:t.model.get("attachment_id"),src:a},error:t.model.get("error")})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new a({frame:"audio",state:"audio-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(t.model.defaults(),t.mapMediaToModelProps(e),{error:!1}))},d.state("audio-details").on("update",e),d.state("replace-audio").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_audio=d,t.modelConstructors.media_audio=e}(wp.mediaWidgets);
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
!function(i){var a=wp.media.view.MediaFrame.Post.extend({createStates:function(){this.states.add([new wp.media.controller.Library({id:"gallery",title:wp.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!0,library:wp.media.query(_.defaults({type:"image"},this.options.library))}),new wp.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery"}),new wp.media.controller.GalleryAdd])}}),e=i.MediaWidgetModel.extend({}),t=i.MediaWidgetControl.extend({events:_.extend({},i.MediaWidgetControl.prototype.events,{"click .media-widget-gallery-preview":"editMedia"}),initialize:function(e){var t=this;i.MediaWidgetControl.prototype.initialize.call(t,e),_.bindAll(t,"updateSelectedAttachments","handleAttachmentDestroy"),t.selectedAttachments=new wp.media.model.Attachments,t.model.on("change:ids",t.updateSelectedAttachments),t.selectedAttachments.on("change",t.renderPreview),t.selectedAttachments.on("reset",t.renderPreview),t.updateSelectedAttachments(),wp.customize&&wp.customize.previewer&&t.selectedAttachments.on("change",function(){wp.customize.previewer.send("refresh-widget-partial",t.model.get("widget_id"))})},updateSelectedAttachments:function(){var e,t=this,i=t.model.get("ids"),d=_.pluck(t.selectedAttachments.models,"id"),a=_.difference(d,i);_.each(a,function(e){t.selectedAttachments.remove(t.selectedAttachments.get(e))}),_.difference(i,d).length&&(e=wp.media.query({order:"ASC",orderby:"post__in",perPage:-1,post__in:i,query:!0,type:"image"})).more().done(function(){t.selectedAttachments.reset(e.models)})},renderPreview:function(){var e=this,t=e.$el.find(".media-widget-preview"),i=wp.template("wp-media-widget-gallery-preview"),d=e.previewTemplateProps.toJSON();d.attachments={},e.selectedAttachments.each(function(e){d.attachments[e.id]=e.toJSON()}),t.html(i(d))},isSelected:function(){return!this.model.get("error")&&0<this.model.get("ids").length},editMedia:function(){var i,d=this,e=new wp.media.model.Selection(d.selectedAttachments.models,{multiple:!0}),t=d.mapModelToMediaFrameProps(d.model.toJSON());e.gallery=new Backbone.Model(t),t.size&&d.displaySettings.set("size",t.size),i=new a({frame:"manage",text:d.l10n.add_to_widget,selection:e,mimeType:d.mime_type,selectedDisplaySettings:d.displaySettings,showDisplaySettings:d.showDisplaySettings,metadata:t,editing:!0,multiple:!0,state:"gallery-edit"}),(wp.media.frame=i).on("update",function(e){var t=i.state(),e=e||t.get("selection");e&&(e.gallery&&d.model.set(d.mapMediaToModelProps(e.gallery.toJSON())),d.selectedAttachments.reset(e.models),d.model.set({ids:_.pluck(e.models,"id")}))}),i.$el.addClass("media-widget"),i.open(),e&&e.on("destroy",d.handleAttachmentDestroy)},selectMedia:function(){var i,d=this,e=new wp.media.model.Selection(d.selectedAttachments.models,{multiple:!0}),t=d.mapModelToMediaFrameProps(d.model.toJSON());t.size&&d.displaySettings.set("size",t.size),i=new a({frame:"select",text:d.l10n.add_to_widget,selection:e,mimeType:d.mime_type,selectedDisplaySettings:d.displaySettings,showDisplaySettings:d.showDisplaySettings,metadata:t,state:"gallery"}),(wp.media.frame=i).on("update",function(e){var t=i.state(),e=e||t.get("selection");e&&(e.gallery&&d.model.set(d.mapMediaToModelProps(e.gallery.toJSON())),d.selectedAttachments.reset(e.models),d.model.set({ids:_.pluck(e.models,"id")}))}),i.$el.addClass("media-widget"),i.open(),e&&e.on("destroy",d.handleAttachmentDestroy),i.$el.find(":focusable:first").focus()},handleAttachmentDestroy:function(e){this.model.set({ids:_.difference(this.model.get("ids"),[e.id])})}});i.controlConstructors.media_gallery=t,i.modelConstructors.media_gallery=e}(wp.mediaWidgets);
|
||||
!function(i){"use strict";var a=wp.media.view.MediaFrame.Post.extend({createStates:function(){this.states.add([new wp.media.controller.Library({id:"gallery",title:wp.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!0,library:wp.media.query(_.defaults({type:"image"},this.options.library))}),new wp.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery"}),new wp.media.controller.GalleryAdd])}}),e=i.MediaWidgetModel.extend({}),t=i.MediaWidgetControl.extend({events:_.extend({},i.MediaWidgetControl.prototype.events,{"click .media-widget-gallery-preview":"editMedia"}),initialize:function(e){var t=this;i.MediaWidgetControl.prototype.initialize.call(t,e),_.bindAll(t,"updateSelectedAttachments","handleAttachmentDestroy"),t.selectedAttachments=new wp.media.model.Attachments,t.model.on("change:ids",t.updateSelectedAttachments),t.selectedAttachments.on("change",t.renderPreview),t.selectedAttachments.on("reset",t.renderPreview),t.updateSelectedAttachments(),wp.customize&&wp.customize.previewer&&t.selectedAttachments.on("change",function(){wp.customize.previewer.send("refresh-widget-partial",t.model.get("widget_id"))})},updateSelectedAttachments:function(){var e,t=this,i=t.model.get("ids"),d=_.pluck(t.selectedAttachments.models,"id"),a=_.difference(d,i);_.each(a,function(e){t.selectedAttachments.remove(t.selectedAttachments.get(e))}),_.difference(i,d).length&&(e=wp.media.query({order:"ASC",orderby:"post__in",perPage:-1,post__in:i,query:!0,type:"image"})).more().done(function(){t.selectedAttachments.reset(e.models)})},renderPreview:function(){var e=this,t=e.$el.find(".media-widget-preview"),i=wp.template("wp-media-widget-gallery-preview"),d=e.previewTemplateProps.toJSON();d.attachments={},e.selectedAttachments.each(function(e){d.attachments[e.id]=e.toJSON()}),t.html(i(d))},isSelected:function(){return!this.model.get("error")&&0<this.model.get("ids").length},editMedia:function(){var i,d=this,e=new wp.media.model.Selection(d.selectedAttachments.models,{multiple:!0}),t=d.mapModelToMediaFrameProps(d.model.toJSON());e.gallery=new Backbone.Model(t),t.size&&d.displaySettings.set("size",t.size),i=new a({frame:"manage",text:d.l10n.add_to_widget,selection:e,mimeType:d.mime_type,selectedDisplaySettings:d.displaySettings,showDisplaySettings:d.showDisplaySettings,metadata:t,editing:!0,multiple:!0,state:"gallery-edit"}),(wp.media.frame=i).on("update",function(e){var t=i.state(),e=e||t.get("selection");e&&(e.gallery&&d.model.set(d.mapMediaToModelProps(e.gallery.toJSON())),d.selectedAttachments.reset(e.models),d.model.set({ids:_.pluck(e.models,"id")}))}),i.$el.addClass("media-widget"),i.open(),e&&e.on("destroy",d.handleAttachmentDestroy)},selectMedia:function(){var i,d=this,e=new wp.media.model.Selection(d.selectedAttachments.models,{multiple:!0}),t=d.mapModelToMediaFrameProps(d.model.toJSON());t.size&&d.displaySettings.set("size",t.size),i=new a({frame:"select",text:d.l10n.add_to_widget,selection:e,mimeType:d.mime_type,selectedDisplaySettings:d.displaySettings,showDisplaySettings:d.showDisplaySettings,metadata:t,state:"gallery"}),(wp.media.frame=i).on("update",function(e){var t=i.state(),e=e||t.get("selection");e&&(e.gallery&&d.model.set(d.mapMediaToModelProps(e.gallery.toJSON())),d.selectedAttachments.reset(e.models),d.model.set({ids:_.pluck(e.models,"id")}))}),i.$el.addClass("media-widget"),i.open(),e&&e.on("destroy",d.handleAttachmentDestroy),i.$el.find(":focusable:first").focus()},handleAttachmentDestroy:function(e){this.model.set({ids:_.difference(this.model.get("ids"),[e.id])})}});i.controlConstructors.media_gallery=t,i.modelConstructors.media_gallery=e}(wp.mediaWidgets);
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
!function(a,o){var e=a.MediaWidgetModel.extend({}),t=a.MediaWidgetControl.extend({events:_.extend({},a.MediaWidgetControl.prototype.events,{"click .media-widget-preview.populated":"editMedia"}),renderPreview:function(){var e,t,i=this;(i.model.get("attachment_id")||i.model.get("url"))&&(t=i.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-image-preview"),t.html(e(i.previewTemplateProps.toJSON())),t.addClass("populated"),i.$el.find(".link").is(document.activeElement)||(e=i.$el.find(".media-widget-fields"),t=wp.template("wp-media-widget-image-fields"),e.html(t(i.previewTemplateProps.toJSON()))))},editMedia:function(){var i,e,a=this,t=a.mapModelToMediaFrameProps(a.model.toJSON());"none"===t.link&&(t.linkUrl=""),(i=wp.media({frame:"image",state:"image-details",metadata:t})).$el.addClass("media-widget"),t=function(){var e=i.state().attributes.image.toJSON(),t=e.link;e.link=e.linkUrl,a.selectedAttachment.set(e),a.displaySettings.set("link",t),a.model.set(_.extend(a.mapMediaToModelProps(e),{error:!1}))},i.state("image-details").on("update",t),i.state("replace-image").on("replace",t),e=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(){return o.Deferred().rejectWith(this).promise()},i.on("close",function(){i.detach(),wp.media.model.Attachment.prototype.sync=e}),i.open()},getEmbedResetProps:function(){return _.extend(a.MediaWidgetControl.prototype.getEmbedResetProps.call(this),{size:"full",width:0,height:0})},getModelPropsFromMediaFrame:function(e){return _.omit(a.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call(this,e),"image_title")},mapModelToPreviewTemplateProps:function(){var e=this,t=e.model.get("url"),i=a.MediaWidgetControl.prototype.mapModelToPreviewTemplateProps.call(e);return i.currentFilename=t?t.replace(/\?.*$/,"").replace(/^.+\//,""):"",i.link_url=e.model.get("link_url"),i}});a.controlConstructors.media_image=t,a.modelConstructors.media_image=e}(wp.mediaWidgets,jQuery);
|
||||
!function(a,o){"use strict";var e=a.MediaWidgetModel.extend({}),t=a.MediaWidgetControl.extend({events:_.extend({},a.MediaWidgetControl.prototype.events,{"click .media-widget-preview.populated":"editMedia"}),renderPreview:function(){var e,t,i=this;(i.model.get("attachment_id")||i.model.get("url"))&&(t=i.$el.find(".media-widget-preview"),e=wp.template("wp-media-widget-image-preview"),t.html(e(i.previewTemplateProps.toJSON())),t.addClass("populated"),i.$el.find(".link").is(document.activeElement)||(e=i.$el.find(".media-widget-fields"),t=wp.template("wp-media-widget-image-fields"),e.html(t(i.previewTemplateProps.toJSON()))))},editMedia:function(){var i,e,a=this,t=a.mapModelToMediaFrameProps(a.model.toJSON());"none"===t.link&&(t.linkUrl=""),(i=wp.media({frame:"image",state:"image-details",metadata:t})).$el.addClass("media-widget"),t=function(){var e=i.state().attributes.image.toJSON(),t=e.link;e.link=e.linkUrl,a.selectedAttachment.set(e),a.displaySettings.set("link",t),a.model.set(_.extend(a.mapMediaToModelProps(e),{error:!1}))},i.state("image-details").on("update",t),i.state("replace-image").on("replace",t),e=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(){return o.Deferred().rejectWith(this).promise()},i.on("close",function(){i.detach(),wp.media.model.Attachment.prototype.sync=e}),i.open()},getEmbedResetProps:function(){return _.extend(a.MediaWidgetControl.prototype.getEmbedResetProps.call(this),{size:"full",width:0,height:0})},getModelPropsFromMediaFrame:function(e){return _.omit(a.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call(this,e),"image_title")},mapModelToPreviewTemplateProps:function(){var e=this,t=e.model.get("url"),i=a.MediaWidgetControl.prototype.mapModelToPreviewTemplateProps.call(e);return i.currentFilename=t?t.replace(/\?.*$/,"").replace(/^.+\//,""):"",i.link_url=e.model.get("link_url"),i}});a.controlConstructors.media_image=t,a.modelConstructors.media_image=e}(wp.mediaWidgets,jQuery);
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
!function(t){var i=wp.media.view.MediaFrame.VideoDetails.extend({createStates:function(){this.states.add([new wp.media.controller.VideoDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"video",id:"add-video-source",title:wp.media.view.l10n.videoAddSourceTitle,toolbar:"add-video-source",media:this.media,menu:!1}),new wp.media.controller.MediaLibrary({type:"text",id:"add-track",title:wp.media.view.l10n.videoAddTrackTitle,toolbar:"add-track",media:this.media,menu:"video-details"})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,oembedResponses:{},mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},fetchEmbed:function(){var t=this,d=t.model.get("url");t.oembedResponses[d]||(t.fetchEmbedDfd&&"pending"===t.fetchEmbedDfd.state()&&t.fetchEmbedDfd.abort(),t.fetchEmbedDfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:t.model.get("url"),maxwidth:t.model.get("width"),maxheight:t.model.get("height"),discover:!1},type:"GET",dataType:"json",context:t}),t.fetchEmbedDfd.done(function(e){t.oembedResponses[d]=e,t.renderPreview()}),t.fetchEmbedDfd.fail(function(){t.oembedResponses[d]=null}))},isHostedVideo:function(){return!0},renderPreview:function(){var e,t,d=this,i="",o=!1,a=d.model.get("attachment_id"),m=d.model.get("url"),s=d.model.get("error");(a||m)&&((t=d.selectedAttachment.get("mime"))&&a?_.contains(_.values(wp.media.view.settings.embedMimes),t)||(s="unsupported_file_type"):a||((t=document.createElement("a")).href=m,(t=t.pathname.toLowerCase().match(/\.(\w+)$/))?_.contains(_.keys(wp.media.view.settings.embedMimes),t[1])||(s="unsupported_file_type"):o=!0),o&&(d.fetchEmbed(),d.oembedResponses[m])&&(e=d.oembedResponses[m].thumbnail_url,i=d.oembedResponses[m].html.replace(/\swidth="\d+"/,' width="100%"').replace(/\sheight="\d+"/,"")),t=d.$el.find(".media-widget-preview"),d=wp.template("wp-media-widget-video-preview"),t.html(d({model:{attachment_id:a,html:i,src:m,poster:e},is_oembed:o,error:s})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new i({frame:"video",state:"video-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(_.omit(t.model.defaults(),"title"),t.mapMediaToModelProps(e),{error:!1}))},d.state("video-details").on("update",e),d.state("replace-video").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_video=d,t.modelConstructors.media_video=e}(wp.mediaWidgets);
|
||||
!function(t){"use strict";var i=wp.media.view.MediaFrame.VideoDetails.extend({createStates:function(){this.states.add([new wp.media.controller.VideoDetails({media:this.media}),new wp.media.controller.MediaLibrary({type:"video",id:"add-video-source",title:wp.media.view.l10n.videoAddSourceTitle,toolbar:"add-video-source",media:this.media,menu:!1}),new wp.media.controller.MediaLibrary({type:"text",id:"add-track",title:wp.media.view.l10n.videoAddTrackTitle,toolbar:"add-track",media:this.media,menu:"video-details"})])}}),e=t.MediaWidgetModel.extend({}),d=t.MediaWidgetControl.extend({showDisplaySettings:!1,oembedResponses:{},mapModelToMediaFrameProps:function(e){e=t.MediaWidgetControl.prototype.mapModelToMediaFrameProps.call(this,e);return e.link="embed",e},fetchEmbed:function(){var t=this,d=t.model.get("url");t.oembedResponses[d]||(t.fetchEmbedDfd&&"pending"===t.fetchEmbedDfd.state()&&t.fetchEmbedDfd.abort(),t.fetchEmbedDfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:t.model.get("url"),maxwidth:t.model.get("width"),maxheight:t.model.get("height"),discover:!1},type:"GET",dataType:"json",context:t}),t.fetchEmbedDfd.done(function(e){t.oembedResponses[d]=e,t.renderPreview()}),t.fetchEmbedDfd.fail(function(){t.oembedResponses[d]=null}))},isHostedVideo:function(){return!0},renderPreview:function(){var e,t,d=this,i="",o=!1,a=d.model.get("attachment_id"),s=d.model.get("url"),m=d.model.get("error");(a||s)&&((t=d.selectedAttachment.get("mime"))&&a?_.contains(_.values(wp.media.view.settings.embedMimes),t)||(m="unsupported_file_type"):a||((t=document.createElement("a")).href=s,(t=t.pathname.toLowerCase().match(/\.(\w+)$/))?_.contains(_.keys(wp.media.view.settings.embedMimes),t[1])||(m="unsupported_file_type"):o=!0),o&&(d.fetchEmbed(),d.oembedResponses[s])&&(e=d.oembedResponses[s].thumbnail_url,i=d.oembedResponses[s].html.replace(/\swidth="\d+"/,' width="100%"').replace(/\sheight="\d+"/,"")),t=d.$el.find(".media-widget-preview"),d=wp.template("wp-media-widget-video-preview"),t.html(d({model:{attachment_id:a,html:i,src:s,poster:e},is_oembed:o,error:m})),wp.mediaelement.initialize())},editMedia:function(){var t=this,e=t.mapModelToMediaFrameProps(t.model.toJSON()),d=new i({frame:"video",state:"video-details",metadata:e});(wp.media.frame=d).$el.addClass("media-widget"),e=function(e){t.selectedAttachment.set(e),t.model.set(_.extend(_.omit(t.model.defaults(),"title"),t.mapMediaToModelProps(e),{error:!1}))},d.state("video-details").on("update",e),d.state("replace-video").on("replace",e),d.on("close",function(){d.detach()}),d.open()}});t.controlConstructors.media_video=d,t.modelConstructors.media_video=e}(wp.mediaWidgets);
|
||||
2
wp-admin/js/widgets/media-widgets.min.js
vendored
2
wp-admin/js/widgets/media-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/js/widgets/text-widgets.min.js
vendored
2
wp-admin/js/widgets/text-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -304,7 +304,7 @@ endif; // twentyeleven_setup()
|
|||
*/
|
||||
function twentyeleven_scripts_styles() {
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20230122' );
|
||||
wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20240621' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
|
||||
|
||||
|
|
@ -315,7 +315,7 @@ add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
|
|||
*/
|
||||
function twentyeleven_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20220927' );
|
||||
wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20240621' );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
|||
?>
|
||||
</title>
|
||||
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo esc_url( get_stylesheet_uri() ); ?>?ver=20240402" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo esc_url( get_stylesheet_uri() ); ?>?ver=20240716" />
|
||||
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script>
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ function twentyeleven_enqueue_color_scheme() {
|
|||
$color_scheme = $options['color_scheme'];
|
||||
|
||||
if ( 'dark' === $color_scheme ) {
|
||||
wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), '20190404' );
|
||||
wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), '20240603' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Eleven ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 3.2
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 4.6
|
||||
Stable tag: 4.7
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, block-patterns
|
||||
|
|
@ -48,6 +48,11 @@ Images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 4.7 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-eleven-changelog/#Version_4.7
|
||||
|
||||
= 4.6 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ Theme URI: https://wordpress.org/themes/twentyeleven/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
|
||||
Version: 4.6
|
||||
Version: 4.7
|
||||
Requires at least: 3.2
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
|
|
|||
|
|
@ -430,10 +430,10 @@ function twentyfifteen_scripts() {
|
|||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201026' );
|
||||
|
||||
// Load our main stylesheet.
|
||||
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), '20240402' );
|
||||
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), '20240716' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20240210' );
|
||||
wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20240609' );
|
||||
|
||||
// Register the Internet Explorer specific stylesheet.
|
||||
wp_register_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20220908' );
|
||||
|
|
@ -484,7 +484,7 @@ add_action( 'wp_enqueue_scripts', 'twentyfifteen_scripts' );
|
|||
*/
|
||||
function twentyfifteen_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20240117' );
|
||||
wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20240609' );
|
||||
// Add custom fonts.
|
||||
$font_version = ( 0 === strpos( (string) twentyfifteen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
|
||||
wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), $font_version );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Fifteen ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 4.1
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Version: 3.7
|
||||
Version: 3.8
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
|
||||
|
|
@ -77,6 +77,11 @@ Source: https://stocksnap.io/photo/purple-yellow-ACF0693B9C
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 3.8 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-fifteen-changelog/#Version_3.8
|
||||
|
||||
= 3.7 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
|
||||
Version: 3.7
|
||||
Version: 3.8
|
||||
Requires at least: 4.1
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
|
|
|||
|
|
@ -345,10 +345,10 @@ function twentyfourteen_scripts() {
|
|||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
|
||||
|
||||
// Load our main stylesheet.
|
||||
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20240402' );
|
||||
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20240716' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20230630' );
|
||||
wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20240613' );
|
||||
|
||||
// Load the Internet Explorer specific stylesheet.
|
||||
wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20140711' );
|
||||
|
|
@ -444,7 +444,7 @@ function twentyfourteen_resource_hints( $urls, $relation_type ) {
|
|||
*/
|
||||
function twentyfourteen_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20230623' );
|
||||
wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20240613' );
|
||||
// Add custom fonts.
|
||||
$font_version = ( 0 === strpos( (string) twentyfourteen_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
|
||||
wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), $font_version );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Fourteen ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 3.6
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 3.9
|
||||
Stable tag: 4.0
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
|
||||
|
|
@ -64,6 +64,11 @@ Source: https://stocksnap.io/photo/fog-mountain-ZKN6UKFKEO
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 4.0 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-fourteen-changelog/#Version_4.0
|
||||
|
||||
= 3.9 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
|
||||
Version: 3.9
|
||||
Version: 4.0
|
||||
Requires at least: 3.6
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "twentynineteen",
|
||||
"version": "2.8.0",
|
||||
"version": "2.9.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "twentynineteen",
|
||||
"version": "2.8.0",
|
||||
"version": "2.9.0",
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^6.1.0",
|
||||
"autoprefixer": "^10.4.19",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "twentynineteen",
|
||||
"version": "2.8.0",
|
||||
"version": "2.9.0",
|
||||
"description": "Default WP Theme",
|
||||
"bugs": {
|
||||
"url": "https://core.trac.wordpress.org/"
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
Contributors: wordpressdotorg
|
||||
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
|
||||
Requires at least: 4.7
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 2.8
|
||||
Stable tag: 2.9
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
|
@ -40,6 +40,11 @@ GNU General Public License for more details.
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 2.9 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-nineteen-changelog/#Version_2.9
|
||||
|
||||
= 2.8 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether you’re running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.7
|
||||
Requires PHP: 5.2.4
|
||||
Version: 2.8
|
||||
Version: 2.9
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentynineteen
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether you’re running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.7
|
||||
Requires PHP: 5.2.4
|
||||
Version: 2.8
|
||||
Version: 2.9
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentynineteen
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether you’re running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.7
|
||||
Requires PHP: 5.2.4
|
||||
Version: 2.8
|
||||
Version: 2.9
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentynineteen
|
||||
|
|
|
|||
|
|
@ -452,14 +452,14 @@ function twentyseventeen_scripts() {
|
|||
wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), $font_version );
|
||||
|
||||
// Theme stylesheet.
|
||||
wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20240402' );
|
||||
wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20240716' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20220912' );
|
||||
wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20240624' );
|
||||
|
||||
// Load the dark colorscheme.
|
||||
if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) {
|
||||
wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20191025' );
|
||||
wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20240412' );
|
||||
}
|
||||
|
||||
// Register the Internet Explorer 9 specific stylesheet, to fix display issues in the Customizer.
|
||||
|
|
@ -541,7 +541,7 @@ add_action( 'wp_enqueue_scripts', 'twentyseventeen_scripts' );
|
|||
*/
|
||||
function twentyseventeen_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20230614' );
|
||||
wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20240624' );
|
||||
// Add custom fonts.
|
||||
$font_version = ( 0 === strpos( (string) twentyseventeen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
|
||||
wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), $font_version );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Seventeen ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 4.7
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Version: 3.6
|
||||
Version: 3.7
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-patterns
|
||||
|
|
@ -75,6 +75,11 @@ Source: https://stocksnap.io/photo/striped-fabric-9CBVWF2CDU
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 3.7 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-seventeen-changelog/#Version_3.7
|
||||
|
||||
= 3.6 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Theme URI: https://wordpress.org/themes/twentyseventeen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
|
||||
Version: 3.6
|
||||
Tested up to: 6.5
|
||||
Version: 3.7
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.7
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ function twentysixteen_scripts() {
|
|||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201208' );
|
||||
|
||||
// Theme stylesheet.
|
||||
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20240402' );
|
||||
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20240716' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20240117' );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Sixteen ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 4.4
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Version: 3.2
|
||||
Version: 3.3
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
|
||||
|
|
@ -72,6 +72,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 3.3 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-sixteen-changelog/#Version_3.3
|
||||
|
||||
= 3.2 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
|
||||
Version: 3.2
|
||||
Tested up to: 6.5
|
||||
Version: 3.3
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.4
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
|||
?>
|
||||
</title>
|
||||
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo esc_url( get_stylesheet_uri() ); ?>?ver=20240402" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo esc_url( get_stylesheet_uri() ); ?>?ver=20240716" />
|
||||
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
|
||||
<?php
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Ten ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 3.0
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 4.1
|
||||
Stable tag: 4.2
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header, block-patterns
|
||||
|
|
@ -44,6 +44,11 @@ Images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 4.2 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-ten-changelog/#Version_4.2
|
||||
|
||||
= 4.1 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Theme URI: https://wordpress.org/themes/twentyten/
|
|||
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
|
||||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Version: 4.1
|
||||
Tested up to: 6.5
|
||||
Version: 4.2
|
||||
Tested up to: 6.6
|
||||
Requires at least: 3.0
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
|
|
|
|||
|
|
@ -340,10 +340,10 @@ function twentythirteen_scripts_styles() {
|
|||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
|
||||
|
||||
// Loads our main stylesheet.
|
||||
wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '20240402' );
|
||||
wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '20240716' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '20231016' );
|
||||
wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '20240520' );
|
||||
|
||||
// Registers the Internet Explorer specific stylesheet.
|
||||
wp_register_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '20150214' );
|
||||
|
|
@ -384,7 +384,7 @@ function twentythirteen_resource_hints( $urls, $relation_type ) {
|
|||
*/
|
||||
function twentythirteen_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20210621' );
|
||||
wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20240506' );
|
||||
// Add custom fonts.
|
||||
$font_version = ( 0 === strpos( (string) twentythirteen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
|
||||
wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), $font_version );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Thirteen ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 3.6
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 4.1
|
||||
Stable tag: 4.2
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready, block-patterns
|
||||
|
|
@ -64,6 +64,11 @@ Toroidal Colony: https://www.flickr.com/photos/nasacommons/13889485757/in/album-
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 4.2 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-thirteen-changelog/#Version_4.2
|
||||
|
||||
= 4.1 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Theme URI: https://wordpress.org/themes/twentythirteen/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
|
||||
Version: 4.1
|
||||
Tested up to: 6.5
|
||||
Version: 4.2
|
||||
Tested up to: 6.6
|
||||
Requires at least: 3.6
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
|
|
|
|||
|
|
@ -206,10 +206,10 @@ function twentytwelve_scripts_styles() {
|
|||
}
|
||||
|
||||
// Loads our main stylesheet.
|
||||
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), '20240402' );
|
||||
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), '20240716' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20230213' );
|
||||
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20240603' );
|
||||
|
||||
// Loads the Internet Explorer specific stylesheet.
|
||||
wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20150214' );
|
||||
|
|
@ -224,7 +224,7 @@ add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
|
|||
*/
|
||||
function twentytwelve_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20230213' );
|
||||
wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20240506' );
|
||||
// Add custom fonts.
|
||||
$font_version = ( 0 === strpos( (string) twentytwelve_get_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
|
||||
wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), $font_version );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Twelve ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 3.5
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 4.2
|
||||
Stable tag: 4.3
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, block-patterns
|
||||
|
|
@ -53,6 +53,11 @@ Source: https://fontsource.org/fonts/open-sans
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 4.3 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-twelve-changelog/#Version_4.3
|
||||
|
||||
= 4.2 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Theme URI: https://wordpress.org/themes/twentytwelve/
|
|||
Author: the WordPress team
|
||||
Author URI: https://wordpress.org/
|
||||
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
|
||||
Version: 4.2
|
||||
Tested up to: 6.5
|
||||
Version: 4.3
|
||||
Tested up to: 6.6
|
||||
Requires at least: 3.5
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
|
|
|
|||
4
wp-content/themes/twentytwenty/package-lock.json
generated
4
wp-content/themes/twentytwenty/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "twentytwenty",
|
||||
"version": "2.6.0",
|
||||
"version": "2.7.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "twentytwenty",
|
||||
"version": "2.6.0",
|
||||
"version": "2.7.0",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^6.1.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "twentytwenty",
|
||||
"version": "2.6.0",
|
||||
"version": "2.7.0",
|
||||
"description": "Default WP Theme",
|
||||
"author": "The WordPress Contributors",
|
||||
"license": "GPL-2.0-or-later",
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Twenty ===
|
||||
Contributors: the WordPress team
|
||||
Requires at least: 4.7
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.2.4
|
||||
Stable tag: 2.6
|
||||
Stable tag: 2.7
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
|
@ -24,6 +24,11 @@ you pick, ensuring a high, accessible color contrast for your visitors.
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 2.7 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.7
|
||||
|
||||
= 2.6 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
Theme Name: Twenty Twenty
|
||||
Text Domain: twentytwenty
|
||||
Version: 2.6
|
||||
Tested up to: 6.5
|
||||
Version: 2.7
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.7
|
||||
Requires PHP: 5.2.4
|
||||
Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
Theme Name: Twenty Twenty
|
||||
Text Domain: twentytwenty
|
||||
Version: 2.6
|
||||
Tested up to: 6.5
|
||||
Version: 2.7
|
||||
Tested up to: 6.6
|
||||
Requires at least: 4.7
|
||||
Requires PHP: 5.2.4
|
||||
Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Twenty-Four ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 6.4
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 7.0
|
||||
Stable tag: 1.1
|
||||
Stable tag: 1.2
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
|
@ -13,6 +13,11 @@ Twenty Twenty-Four is designed to be flexible, versatile and applicable to any w
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.2 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-twenty-four-changelog/#Version_1.2
|
||||
|
||||
= 1.1 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org
|
||||
Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
|
||||
Requires at least: 6.4
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 7.0
|
||||
Version: 1.1
|
||||
Version: 1.2
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentyfour
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org/
|
||||
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
|
||||
Requires at least: 5.3
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Version: 2.2
|
||||
Version: 2.3
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentyone
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org/
|
||||
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
|
||||
Requires at least: 5.3
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Version: 2.2
|
||||
Version: 2.3
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentyone
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "twentytwentyone",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "twentytwentyone",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^6.1.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "twentytwentyone",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"description": "Default WP Theme",
|
||||
"author": "The WordPress Contributors",
|
||||
"license": "GPL-2.0-or-later",
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Twenty-One ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 5.3
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 2.2
|
||||
Stable tag: 2.3
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
|
@ -30,6 +30,11 @@ No data is saved in the database or transferred.
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 2.3 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_2.3
|
||||
|
||||
= 2.2 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org/
|
||||
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
|
||||
Requires at least: 5.3
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Version: 2.2
|
||||
Version: 2.3
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentyone
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org/
|
||||
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
|
||||
Requires at least: 5.3
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Version: 2.2
|
||||
Version: 2.3
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentyone
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Twenty-Three ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 6.1
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 1.4
|
||||
Stable tag: 1.5
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
|
@ -15,6 +15,11 @@ Whether you want to build a complex or incredibly simple website, you can do it
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.5 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.5
|
||||
|
||||
= 1.4 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org
|
||||
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
|
||||
Requires at least: 6.1
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Version: 1.4
|
||||
Version: 1.5
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentythree
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
=== Twenty Twenty-Two ===
|
||||
Contributors: wordpressdotorg
|
||||
Requires at least: 5.9
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 1.7
|
||||
Stable tag: 1.8
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
|
@ -17,6 +17,11 @@ Whether you’re building a single-page website, a blog, a business website, or
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.8 =
|
||||
* Released: July 16, 2024
|
||||
|
||||
https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.8
|
||||
|
||||
= 1.7 =
|
||||
* Released: April 2, 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Author: the WordPress team
|
|||
Author URI: https://wordpress.org/
|
||||
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Site Editor features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
|
||||
Requires at least: 5.9
|
||||
Tested up to: 6.5
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.6
|
||||
Version: 1.7
|
||||
Version: 1.8
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: twentytwentytwo
|
||||
|
|
|
|||
|
|
@ -62,9 +62,8 @@ function _wp_admin_bar_init() {
|
|||
* the function is also called late on {@see 'wp_footer'}.
|
||||
*
|
||||
* It includes the {@see 'admin_bar_menu'} action which should be used to hook in and
|
||||
* add new menus to the admin bar. That way you can be sure that you are adding at most
|
||||
* optimal point, right before the admin bar is rendered. This also gives you access to
|
||||
* the `$post` global, among others.
|
||||
* add new menus to the admin bar. This also gives you access to the `$post` global,
|
||||
* among others.
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @since 5.4.0 Called on 'wp_body_open' action first, with 'wp_footer' as a fallback.
|
||||
|
|
@ -86,7 +85,10 @@ function wp_admin_bar_render() {
|
|||
/**
|
||||
* Loads all necessary admin bar items.
|
||||
*
|
||||
* This is the hook used to add, remove, or manipulate admin bar items.
|
||||
* This hook can add, remove, or manipulate admin bar items. The priority
|
||||
* determines the placement for new items, and changes to existing items
|
||||
* would require a high priority. To remove or manipulate existing nodes
|
||||
* without a specific priority, use `wp_before_admin_bar_render`.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -40,6 +40,42 @@ function wp_get_block_style_variation_name_from_class( $class_string ) {
|
|||
return $matches[1] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively resolves any `ref` values within a block style variation's data.
|
||||
*
|
||||
* @since 6.6.0
|
||||
* @access private
|
||||
*
|
||||
* @param array $variation_data Reference to the variation data being processed.
|
||||
* @param array $theme_json Theme.json data to retrieve referenced values from.
|
||||
*/
|
||||
function wp_resolve_block_style_variation_ref_values( &$variation_data, $theme_json ) {
|
||||
foreach ( $variation_data as $key => &$value ) {
|
||||
// Only need to potentially process arrays.
|
||||
if ( is_array( $value ) ) {
|
||||
// If ref value is set, attempt to find its matching value and update it.
|
||||
if ( array_key_exists( 'ref', $value ) ) {
|
||||
// Clean up any invalid ref value.
|
||||
if ( empty( $value['ref'] ) || ! is_string( $value['ref'] ) ) {
|
||||
unset( $variation_data[ $key ] );
|
||||
}
|
||||
|
||||
$value_path = explode( '.', $value['ref'] ?? '' );
|
||||
$ref_value = _wp_array_get( $theme_json, $value_path );
|
||||
|
||||
// Only update the current value if the referenced path matched a value.
|
||||
if ( null === $ref_value ) {
|
||||
unset( $variation_data[ $key ] );
|
||||
} else {
|
||||
$value = $ref_value;
|
||||
}
|
||||
} else {
|
||||
// Recursively look for ref instances.
|
||||
wp_resolve_block_style_variation_ref_values( $value, $theme_json );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Render the block style variation's styles.
|
||||
*
|
||||
|
|
@ -82,6 +118,12 @@ function wp_render_block_style_variation_support_styles( $parsed_block ) {
|
|||
return $parsed_block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Recursively resolve any ref values with the appropriate value within the
|
||||
* theme_json data.
|
||||
*/
|
||||
wp_resolve_block_style_variation_ref_values( $variation_data, $theme_json );
|
||||
|
||||
$variation_instance = wp_create_block_style_variation_instance_name( $parsed_block, $variation );
|
||||
$class_name = "is-style-$variation_instance";
|
||||
$updated_class_name = $parsed_block['attrs']['className'] . " $class_name";
|
||||
|
|
@ -154,7 +196,7 @@ function wp_render_block_style_variation_support_styles( $parsed_block ) {
|
|||
return $parsed_block;
|
||||
}
|
||||
|
||||
wp_register_style( 'block-style-variation-styles', false, array( 'global-styles', 'wp-block-library' ) );
|
||||
wp_register_style( 'block-style-variation-styles', false, array( 'wp-block-library', 'global-styles' ) );
|
||||
wp_add_inline_style( 'block-style-variation-styles', $variation_styles );
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -322,14 +322,22 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
|
|||
* They're added separately because padding might only be set on one side.
|
||||
*/
|
||||
if ( isset( $block_spacing_values['declarations']['padding-right'] ) ) {
|
||||
$padding_right = $block_spacing_values['declarations']['padding-right'];
|
||||
$padding_right = $block_spacing_values['declarations']['padding-right'];
|
||||
// Add unit if 0.
|
||||
if ( '0' === $padding_right ) {
|
||||
$padding_right = '0px';
|
||||
}
|
||||
$layout_styles[] = array(
|
||||
'selector' => "$selector > .alignfull",
|
||||
'declarations' => array( 'margin-right' => "calc($padding_right * -1)" ),
|
||||
);
|
||||
}
|
||||
if ( isset( $block_spacing_values['declarations']['padding-left'] ) ) {
|
||||
$padding_left = $block_spacing_values['declarations']['padding-left'];
|
||||
$padding_left = $block_spacing_values['declarations']['padding-left'];
|
||||
// Add unit if 0.
|
||||
if ( '0' === $padding_left ) {
|
||||
$padding_left = '0px';
|
||||
}
|
||||
$layout_styles[] = array(
|
||||
'selector' => "$selector > .alignfull",
|
||||
'declarations' => array( 'margin-left' => "calc($padding_left * -1)" ),
|
||||
|
|
|
|||
|
|
@ -1562,6 +1562,10 @@ function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated
|
|||
_deprecated_argument( __FUNCTION__, '6.5.3' );
|
||||
}
|
||||
|
||||
if ( ! isset( $changes->post_content ) ) {
|
||||
return $changes;
|
||||
}
|
||||
|
||||
$hooked_blocks = get_hooked_blocks();
|
||||
if ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) {
|
||||
return $changes;
|
||||
|
|
|
|||
|
|
@ -12,9 +12,13 @@
|
|||
"type": "number"
|
||||
},
|
||||
"content": {
|
||||
"type": "object"
|
||||
"type": "object",
|
||||
"default": {}
|
||||
}
|
||||
},
|
||||
"providesContext": {
|
||||
"pattern/overrides": "content"
|
||||
},
|
||||
"supports": {
|
||||
"customClassName": false,
|
||||
"html": false,
|
||||
|
|
|
|||
|
|
@ -207,9 +207,15 @@
|
|||
'type' => 'number'
|
||||
),
|
||||
'content' => array(
|
||||
'type' => 'object'
|
||||
'type' => 'object',
|
||||
'default' => array(
|
||||
|
||||
)
|
||||
)
|
||||
),
|
||||
'providesContext' => array(
|
||||
'pattern/overrides' => 'content'
|
||||
),
|
||||
'supports' => array(
|
||||
'customClassName' => false,
|
||||
'html' => false,
|
||||
|
|
|
|||
|
|
@ -28,12 +28,33 @@ function render_block_core_image( $attributes, $content, $block ) {
|
|||
return '';
|
||||
}
|
||||
|
||||
$has_id_binding = isset( $attributes['metadata']['bindings']['id'] ) && isset( $attributes['id'] );
|
||||
|
||||
// Ensure the `wp-image-id` classname on the image block supports block bindings.
|
||||
if ( $has_id_binding ) {
|
||||
// If there's a mismatch with the 'wp-image-' class and the actual id, the id was
|
||||
// probably overridden by block bindings. Update it to the correct value.
|
||||
// See https://github.com/WordPress/gutenberg/issues/62886 for why this is needed.
|
||||
$id = $attributes['id'];
|
||||
$image_classnames = $p->get_attribute( 'class' );
|
||||
$class_with_binding_value = "wp-image-$id";
|
||||
if ( is_string( $image_classnames ) && ! str_contains( $image_classnames, $class_with_binding_value ) ) {
|
||||
$image_classnames = preg_replace( '/wp-image-(\d+)/', $class_with_binding_value, $image_classnames );
|
||||
$p->set_attribute( 'class', $image_classnames );
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility, the data-id html attribute is only set for
|
||||
// image blocks nested in a gallery. Detect if the image is in a gallery by
|
||||
// checking the data-id attribute.
|
||||
// See the `block_core_gallery_data_id_backcompatibility` function.
|
||||
if ( isset( $attributes['data-id'] ) ) {
|
||||
// Adds the data-id="$id" attribute to the img element to provide backwards
|
||||
// compatibility for the Gallery Block, which now wraps Image Blocks within
|
||||
// innerBlocks. The data-id attribute is added in a core/gallery
|
||||
// `render_block_data` hook.
|
||||
$p->set_attribute( 'data-id', $attributes['data-id'] );
|
||||
// If there's a binding for the `id`, the `id` attribute is used for the
|
||||
// value, since `data-id` does not support block bindings.
|
||||
// Else the `data-id` is used for backwards compatibility, since
|
||||
// third parties may be filtering its value.
|
||||
$data_id = $has_id_binding ? $attributes['id'] : $attributes['data-id'];
|
||||
$p->set_attribute( 'data-id', $data_id );
|
||||
}
|
||||
|
||||
$link_destination = isset( $attributes['linkDestination'] ) ? $attributes['linkDestination'] : 'none';
|
||||
|
|
|
|||
|
|
@ -37,10 +37,7 @@
|
|||
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
|
||||
.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation__submenu-icon{
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -37,10 +37,7 @@
|
|||
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
|
||||
.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation__submenu-icon{
|
||||
|
|
|
|||
2
wp-includes/blocks/navigation/style.min.css
vendored
2
wp-includes/blocks/navigation/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,12 @@
|
|||
:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{
|
||||
border:1px solid #949494;
|
||||
font-family:inherit;
|
||||
font-size:1em;
|
||||
}
|
||||
:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{
|
||||
padding:calc(.667em + 2px);
|
||||
}
|
||||
|
||||
.wp-block-post-comments-form{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
|
@ -26,14 +35,6 @@
|
|||
overflow-wrap:break-word;
|
||||
text-align:center;
|
||||
}
|
||||
.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{
|
||||
border:1px solid #949494;
|
||||
font-family:inherit;
|
||||
font-size:1em;
|
||||
}
|
||||
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{
|
||||
padding:calc(.667em + 2px);
|
||||
}
|
||||
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{
|
||||
box-sizing:border-box;
|
||||
display:block;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}
|
||||
:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}
|
||||
|
|
@ -1,3 +1,12 @@
|
|||
:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{
|
||||
border:1px solid #949494;
|
||||
font-family:inherit;
|
||||
font-size:1em;
|
||||
}
|
||||
:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{
|
||||
padding:calc(.667em + 2px);
|
||||
}
|
||||
|
||||
.wp-block-post-comments-form{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
|
@ -26,14 +35,6 @@
|
|||
overflow-wrap:break-word;
|
||||
text-align:center;
|
||||
}
|
||||
.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{
|
||||
border:1px solid #949494;
|
||||
font-family:inherit;
|
||||
font-size:1em;
|
||||
}
|
||||
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{
|
||||
padding:calc(.667em + 2px);
|
||||
}
|
||||
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{
|
||||
box-sizing:border-box;
|
||||
display:block;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user