Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
noblogs-wp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
39
Issues
39
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
noblogs-wp
Commits
deb997c8
Commit
deb997c8
authored
Apr 21, 2017
by
lucha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wordpress 4.7.4
parent
a1427be4
Changes
111
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
111 changed files
with
3923 additions
and
2036 deletions
+3923
-2036
wp-admin/about.php
wp-admin/about.php
+4
-0
wp-admin/css/customize-controls-rtl.css
wp-admin/css/customize-controls-rtl.css
+5
-0
wp-admin/css/customize-controls-rtl.min.css
wp-admin/css/customize-controls-rtl.min.css
+1
-1
wp-admin/css/customize-controls.css
wp-admin/css/customize-controls.css
+5
-0
wp-admin/css/customize-controls.min.css
wp-admin/css/customize-controls.min.css
+1
-1
wp-admin/css/customize-nav-menus-rtl.css
wp-admin/css/customize-nav-menus-rtl.css
+3
-0
wp-admin/css/customize-nav-menus-rtl.min.css
wp-admin/css/customize-nav-menus-rtl.min.css
+1
-1
wp-admin/css/customize-nav-menus.css
wp-admin/css/customize-nav-menus.css
+3
-0
wp-admin/css/customize-nav-menus.min.css
wp-admin/css/customize-nav-menus.min.css
+1
-1
wp-admin/customize.php
wp-admin/customize.php
+1
-1
wp-admin/includes/media.php
wp-admin/includes/media.php
+1
-5
wp-admin/includes/theme.php
wp-admin/includes/theme.php
+1
-1
wp-admin/install.php
wp-admin/install.php
+1
-15
wp-admin/js/customize-controls.js
wp-admin/js/customize-controls.js
+78
-42
wp-admin/js/customize-controls.min.js
wp-admin/js/customize-controls.min.js
+3
-3
wp-admin/js/customize-nav-menus.js
wp-admin/js/customize-nav-menus.js
+9
-2
wp-admin/js/customize-nav-menus.min.js
wp-admin/js/customize-nav-menus.min.js
+2
-2
wp-admin/js/inline-edit-post.js
wp-admin/js/inline-edit-post.js
+9
-0
wp-admin/js/inline-edit-post.min.js
wp-admin/js/inline-edit-post.min.js
+1
-1
wp-admin/js/tags-suggest.js
wp-admin/js/tags-suggest.js
+3
-1
wp-admin/js/tags-suggest.min.js
wp-admin/js/tags-suggest.min.js
+1
-1
wp-admin/menu.php
wp-admin/menu.php
+1
-1
wp-admin/nav-menus.php
wp-admin/nav-menus.php
+1
-1
wp-admin/widgets.php
wp-admin/widgets.php
+1
-1
wp-content/themes/twentyseventeen/README.txt
wp-content/themes/twentyseventeen/README.txt
+7
-5
wp-content/themes/twentyseventeen/footer.php
wp-content/themes/twentyseventeen/footer.php
+2
-2
wp-content/themes/twentyseventeen/functions.php
wp-content/themes/twentyseventeen/functions.php
+1
-1
wp-content/themes/twentyseventeen/style.css
wp-content/themes/twentyseventeen/style.css
+4
-2
wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php
...ntyseventeen/template-parts/navigation/navigation-top.php
+2
-2
wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
...mes/twentyseventeen/template-parts/post/content-audio.php
+3
-1
wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php
...s/twentyseventeen/template-parts/post/content-excerpt.php
+8
-2
wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php
...s/twentyseventeen/template-parts/post/content-gallery.php
+3
-1
wp-content/themes/twentyseventeen/template-parts/post/content-image.php
...mes/twentyseventeen/template-parts/post/content-image.php
+3
-1
wp-content/themes/twentyseventeen/template-parts/post/content-video.php
...mes/twentyseventeen/template-parts/post/content-video.php
+3
-1
wp-content/themes/twentyseventeen/template-parts/post/content.php
...nt/themes/twentyseventeen/template-parts/post/content.php
+3
-1
wp-includes/class-wp-customize-manager.php
wp-includes/class-wp-customize-manager.php
+1
-1
wp-includes/class-wp-customize-panel.php
wp-includes/class-wp-customize-panel.php
+10
-0
wp-includes/class-wp-customize-widgets.php
wp-includes/class-wp-customize-widgets.php
+1
-0
wp-includes/class-wp-post-type.php
wp-includes/class-wp-post-type.php
+60
-25
wp-includes/class-wp-taxonomy.php
wp-includes/class-wp-taxonomy.php
+35
-0
wp-includes/class-wp-theme.php
wp-includes/class-wp-theme.php
+12
-2
wp-includes/css/buttons-rtl.css
wp-includes/css/buttons-rtl.css
+5
-0
wp-includes/css/buttons-rtl.min.css
wp-includes/css/buttons-rtl.min.css
+1
-1
wp-includes/css/buttons.css
wp-includes/css/buttons.css
+5
-0
wp-includes/css/buttons.min.css
wp-includes/css/buttons.min.css
+1
-1
wp-includes/css/media-views-rtl.css
wp-includes/css/media-views-rtl.css
+31
-20
wp-includes/css/media-views-rtl.min.css
wp-includes/css/media-views-rtl.min.css
+1
-1
wp-includes/css/media-views.css
wp-includes/css/media-views.css
+31
-20
wp-includes/css/media-views.min.css
wp-includes/css/media-views.min.css
+1
-1
wp-includes/css/wp-auth-check-rtl.css
wp-includes/css/wp-auth-check-rtl.css
+1
-0
wp-includes/css/wp-auth-check-rtl.min.css
wp-includes/css/wp-auth-check-rtl.min.css
+1
-1
wp-includes/css/wp-auth-check.css
wp-includes/css/wp-auth-check.css
+1
-0
wp-includes/css/wp-auth-check.min.css
wp-includes/css/wp-auth-check.min.css
+1
-1
wp-includes/customize/class-wp-customize-selective-refresh.php
...cludes/customize/class-wp-customize-selective-refresh.php
+4
-1
wp-includes/customize/class-wp-customize-site-icon-control.php
...cludes/customize/class-wp-customize-site-icon-control.php
+2
-2
wp-includes/default-constants.php
wp-includes/default-constants.php
+1
-1
wp-includes/functions.php
wp-includes/functions.php
+2
-1
wp-includes/js/customize-base.js
wp-includes/js/customize-base.js
+1
-1
wp-includes/js/customize-base.min.js
wp-includes/js/customize-base.min.js
+1
-1
wp-includes/js/customize-preview.js
wp-includes/js/customize-preview.js
+3
-2
wp-includes/js/customize-preview.min.js
wp-includes/js/customize-preview.min.js
+1
-1
wp-includes/js/mce-view.js
wp-includes/js/mce-view.js
+3
-0
wp-includes/js/mce-view.min.js
wp-includes/js/mce-view.min.js
+1
-1
wp-includes/js/tinymce/plugins/charmap/plugin.js
wp-includes/js/tinymce/plugins/charmap/plugin.js
+1
-1
wp-includes/js/tinymce/plugins/charmap/plugin.min.js
wp-includes/js/tinymce/plugins/charmap/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/colorpicker/plugin.min.js
wp-includes/js/tinymce/plugins/colorpicker/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/compat3x/plugin.js
wp-includes/js/tinymce/plugins/compat3x/plugin.js
+12
-10
wp-includes/js/tinymce/plugins/compat3x/plugin.min.js
wp-includes/js/tinymce/plugins/compat3x/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/directionality/plugin.min.js
wp-includes/js/tinymce/plugins/directionality/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js
wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/hr/plugin.min.js
wp-includes/js/tinymce/plugins/hr/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/image/plugin.js
wp-includes/js/tinymce/plugins/image/plugin.js
+7
-2
wp-includes/js/tinymce/plugins/image/plugin.min.js
wp-includes/js/tinymce/plugins/image/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/lists/plugin.js
wp-includes/js/tinymce/plugins/lists/plugin.js
+1138
-656
wp-includes/js/tinymce/plugins/lists/plugin.min.js
wp-includes/js/tinymce/plugins/lists/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/media/plugin.js
wp-includes/js/tinymce/plugins/media/plugin.js
+1144
-602
wp-includes/js/tinymce/plugins/media/plugin.min.js
wp-includes/js/tinymce/plugins/media/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/paste/plugin.js
wp-includes/js/tinymce/plugins/paste/plugin.js
+35
-10
wp-includes/js/tinymce/plugins/paste/plugin.min.js
wp-includes/js/tinymce/plugins/paste/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/tabfocus/plugin.min.js
wp-includes/js/tinymce/plugins/tabfocus/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/textcolor/plugin.min.js
wp-includes/js/tinymce/plugins/textcolor/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/wordpress/plugin.js
wp-includes/js/tinymce/plugins/wordpress/plugin.js
+1
-1
wp-includes/js/tinymce/plugins/wordpress/plugin.min.js
wp-includes/js/tinymce/plugins/wordpress/plugin.min.js
+1
-1
wp-includes/js/tinymce/skins/lightgray/content.inline.min.css
...ncludes/js/tinymce/skins/lightgray/content.inline.min.css
+1
-1
wp-includes/js/tinymce/skins/lightgray/content.min.css
wp-includes/js/tinymce/skins/lightgray/content.min.css
+1
-1
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.eot
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.eot
+0
-0
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.json
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.json
+88
-0
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.svg
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.svg
+2
-0
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.ttf
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.ttf
+0
-0
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff
wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff
+0
-0
wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css
wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css
+1
-1
wp-includes/js/tinymce/skins/lightgray/skin.min.css
wp-includes/js/tinymce/skins/lightgray/skin.min.css
+1
-1
wp-includes/js/tinymce/themes/inlite/theme.js
wp-includes/js/tinymce/themes/inlite/theme.js
+72
-42
wp-includes/js/tinymce/themes/inlite/theme.min.js
wp-includes/js/tinymce/themes/inlite/theme.min.js
+1
-1
wp-includes/js/tinymce/themes/modern/theme.js
wp-includes/js/tinymce/themes/modern/theme.js
+850
-442
wp-includes/js/tinymce/themes/modern/theme.min.js
wp-includes/js/tinymce/themes/modern/theme.min.js
+1
-1
wp-includes/js/tinymce/tinymce.min.js
wp-includes/js/tinymce/tinymce.min.js
+14
-14
wp-includes/js/tinymce/wp-tinymce.js.gz
wp-includes/js/tinymce/wp-tinymce.js.gz
+0
-0
wp-includes/media-template.php
wp-includes/media-template.php
+1
-1
wp-includes/media.php
wp-includes/media.php
+78
-23
wp-includes/ms-blogs.php
wp-includes/ms-blogs.php
+17
-2
wp-includes/ms-default-filters.php
wp-includes/ms-default-filters.php
+5
-4
wp-includes/pluggable.php
wp-includes/pluggable.php
+16
-0
wp-includes/rest-api/class-wp-rest-server.php
wp-includes/rest-api/class-wp-rest-server.php
+9
-7
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
...des/rest-api/endpoints/class-wp-rest-posts-controller.php
+4
-2
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
...des/rest-api/endpoints/class-wp-rest-terms-controller.php
+4
-1
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
...des/rest-api/endpoints/class-wp-rest-users-controller.php
+5
-7
wp-includes/taxonomy.php
wp-includes/taxonomy.php
+3
-1
wp-includes/theme.php
wp-includes/theme.php
+1
-1
wp-includes/version.php
wp-includes/version.php
+2
-2
wp-settings.php
wp-settings.php
+1
-1
No files found.
wp-admin/about.php
View file @
deb997c8
...
...
@@ -45,6 +45,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div
class=
"changelog point-releases"
>
<h3>
<?php
_e
(
'Maintenance and Security Releases'
);
?>
</h3>
<p>
<?php
printf
(
_n
(
'<strong>Version %1$s</strong> addressed %2$s bug.'
,
'<strong>Version %1$s</strong> addressed %2$s bugs.'
,
47
),
'4.7.4'
,
number_format_i18n
(
47
)
);
?>
<?php
printf
(
__
(
'For more information, see <a href="%s">the release notes</a>.'
),
'https://codex.wordpress.org/Version_4.7.4'
);
?>
</p>
<p>
<?php
printf
(
_n
(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.'
,
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
,
39
),
'4.7.3'
,
number_format_i18n
(
39
)
);
?>
<?php
printf
(
__
(
'For more information, see <a href="%s">the release notes</a>.'
),
'https://codex.wordpress.org/Version_4.7.3'
);
?>
...
...
wp-admin/css/customize-controls-rtl.css
View file @
deb997c8
...
...
@@ -294,6 +294,11 @@ body {
transition
:
0.18s
transform
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
),
0.18s
-webkit-transform
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
/* easeInOutCubic */
}
#customize-theme-controls
.customize-pane-child.skip-transition
{
-webkit-transition
:
none
;
transition
:
none
;
}
#customize-info
,
#customize-theme-controls
.customize-pane-parent
{
position
:
relative
;
...
...
wp-admin/css/customize-controls-rtl.min.css
View file @
deb997c8
This diff is collapsed.
Click to expand it.
wp-admin/css/customize-controls.css
View file @
deb997c8
...
...
@@ -294,6 +294,11 @@ body {
transition
:
0.18s
transform
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
),
0.18s
-webkit-transform
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
/* easeInOutCubic */
}
#customize-theme-controls
.customize-pane-child.skip-transition
{
-webkit-transition
:
none
;
transition
:
none
;
}
#customize-info
,
#customize-theme-controls
.customize-pane-parent
{
position
:
relative
;
...
...
wp-admin/css/customize-controls.min.css
View file @
deb997c8
This diff is collapsed.
Click to expand it.
wp-admin/css/customize-nav-menus-rtl.css
View file @
deb997c8
...
...
@@ -161,6 +161,7 @@
outline
:
none
;
overflow
:
hidden
;
cursor
:
pointer
;
text-align
:
center
;
}
.wp-customizer
.menu-item.menu-item-edit-active
.item-edit
.toggle-indicator
:after
{
...
...
@@ -532,6 +533,7 @@
box-shadow
:
none
;
outline
:
none
;
cursor
:
pointer
;
text-align
:
center
;
}
#available-menu-items
.accordion-section-title
.no-items
,
...
...
@@ -623,6 +625,7 @@
box-shadow
:
none
;
outline
:
none
;
cursor
:
pointer
;
text-align
:
center
;
}
#available-menu-items
.menu-item-handle
.item-add
:focus
{
...
...
wp-admin/css/customize-nav-menus-rtl.min.css
View file @
deb997c8
This diff is collapsed.
Click to expand it.
wp-admin/css/customize-nav-menus.css
View file @
deb997c8
...
...
@@ -161,6 +161,7 @@
outline
:
none
;
overflow
:
hidden
;
cursor
:
pointer
;
text-align
:
center
;
}
.wp-customizer
.menu-item.menu-item-edit-active
.item-edit
.toggle-indicator
:after
{
...
...
@@ -532,6 +533,7 @@
box-shadow
:
none
;
outline
:
none
;
cursor
:
pointer
;
text-align
:
center
;
}
#available-menu-items
.accordion-section-title
.no-items
,
...
...
@@ -623,6 +625,7 @@
box-shadow
:
none
;
outline
:
none
;
cursor
:
pointer
;
text-align
:
center
;
}
#available-menu-items
.menu-item-handle
.item-add
:focus
{
...
...
wp-admin/css/customize-nav-menus.min.css
View file @
deb997c8
This diff is collapsed.
Click to expand it.
wp-admin/customize.php
View file @
deb997c8
...
...
@@ -102,7 +102,7 @@ if ( $wp_customize->is_ios() ) {
if
(
is_rtl
()
)
{
$body_class
.
=
' rtl'
;
}
$body_class
.
=
' locale-'
.
sanitize_html_class
(
strtolower
(
str_replace
(
'_'
,
'-'
,
get_locale
()
)
)
);
$body_class
.
=
' locale-'
.
sanitize_html_class
(
strtolower
(
str_replace
(
'_'
,
'-'
,
get_
user_
locale
()
)
)
);
$admin_title
=
sprintf
(
$wp_customize
->
get_document_title_template
(),
__
(
'Loading…'
)
);
...
...
wp-admin/includes/media.php
View file @
deb997c8
...
...
@@ -2982,7 +2982,7 @@ function wp_add_id3_tag_data( &$metadata, $data ) {
if
(
!
empty
(
$data
[
$version
][
'comments'
]
)
)
{
foreach
(
$data
[
$version
][
'comments'
]
as
$key
=>
$list
)
{
if
(
'length'
!==
$key
&&
!
empty
(
$list
)
)
{
$metadata
[
$key
]
=
reset
(
$list
);
$metadata
[
$key
]
=
wp_kses_post
(
reset
(
$list
)
);
// Fix bug in byte stream analysis.
if
(
'terms_of_use'
===
$key
&&
0
===
strpos
(
$metadata
[
$key
],
'yright notice.'
)
)
$metadata
[
$key
]
=
'Cop'
.
$metadata
[
$key
];
...
...
@@ -3072,8 +3072,6 @@ function wp_read_video_metadata( $file ) {
wp_add_id3_tag_data
(
$metadata
,
$data
);
$metadata
=
wp_kses_post_deep
(
$metadata
);
return
$metadata
;
}
...
...
@@ -3119,8 +3117,6 @@ function wp_read_audio_metadata( $file ) {
wp_add_id3_tag_data
(
$metadata
,
$data
);
$metadata
=
wp_kses_post_deep
(
$metadata
);
return
$metadata
;
}
...
...
wp-admin/includes/theme.php
View file @
deb997c8
...
...
@@ -578,7 +578,7 @@ function wp_prepare_themes_for_js( $themes = null ) {
if
(
current_user_can
(
'edit_theme_options'
)
&&
current_user_can
(
'customize'
)
)
{
$customize_action
=
esc_url
(
add_query_arg
(
array
(
'return'
=>
urlencode
(
esc_url_raw
(
wp_unslash
(
$_SERVER
[
'REQUEST_URI'
]
)
)
),
'return'
=>
urlencode
(
esc_url_raw
(
remove_query_arg
(
wp_removable_query_args
(),
wp_unslash
(
$_SERVER
[
'REQUEST_URI'
]
)
)
)
),
),
wp_customize_url
(
$slug
)
)
);
...
...
wp-admin/install.php
View file @
deb997c8
...
...
@@ -334,6 +334,7 @@ switch($step) {
$scripts_to_print
[]
=
'user-profile'
;
display_header
();
// Fill in the data we gathered
$weblog_title
=
isset
(
$_POST
[
'weblog_title'
]
)
?
trim
(
wp_unslash
(
$_POST
[
'weblog_title'
]
)
)
:
''
;
$user_name
=
isset
(
$_POST
[
'user_name'
])
?
trim
(
wp_unslash
(
$_POST
[
'user_name'
]
)
)
:
''
;
...
...
@@ -346,26 +347,21 @@ switch($step) {
$error
=
false
;
if
(
empty
(
$user_name
)
)
{
// TODO: poka-yoke
display_header
();
display_setup_form
(
__
(
'Please provide a valid username.'
)
);
$error
=
true
;
}
elseif
(
$user_name
!=
sanitize_user
(
$user_name
,
true
)
)
{
display_header
();
display_setup_form
(
__
(
'The username you provided has invalid characters.'
)
);
$error
=
true
;
}
elseif
(
$admin_password
!=
$admin_password_check
)
{
// TODO: poka-yoke
display_header
();
display_setup_form
(
__
(
'Your passwords do not match. Please try again.'
)
);
$error
=
true
;
}
elseif
(
empty
(
$admin_email
)
)
{
// TODO: poka-yoke
display_header
();
display_setup_form
(
__
(
'You must provide an email address.'
)
);
$error
=
true
;
}
elseif
(
!
is_email
(
$admin_email
)
)
{
// TODO: poka-yoke
display_header
();
display_setup_form
(
__
(
'Sorry, that isn’t a valid email address. Email addresses look like <code>username@example.com</code>.'
)
);
$error
=
true
;
}
...
...
@@ -373,16 +369,6 @@ switch($step) {
if
(
$error
===
false
)
{
$wpdb
->
show_errors
();
$result
=
wp_install
(
$weblog_title
,
$user_name
,
$admin_email
,
$public
,
''
,
wp_slash
(
$admin_password
),
$loaded_language
);
// Log the user in and send them to wp-admin:
if
(
!
headers_sent
()
)
{
wp_set_auth_cookie
(
$result
[
'user_id'
],
true
,
is_ssl
()
);
wp_redirect
(
admin_url
()
);
exit
;
}
// If headers have already been sent, fall back to a "Success!" message:
display_header
();
?>
<h1>
<?php
_e
(
'Success!'
);
?>
</h1>
...
...
wp-admin/js/customize-controls.js
View file @
deb997c8
...
...
@@ -528,10 +528,11 @@
*
* @since 4.1.0
*
* @param {Boolean} active
* @param {Object} args
* @param {Object} args.duration
* @param {Object} args.completeCallback
* @param {boolean} active - The active state to transiution to.
* @param {Object} [args] - Args.
* @param {Object} [args.duration] - The duration for the slideUp/slideDown animation.
* @param {boolean} [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early.
* @param {Function} [args.completeCallback] - Function to call when the slideUp/slideDown has completed.
*/
onChangeActive
:
function
(
active
,
args
)
{
var
construct
=
this
,
...
...
@@ -564,24 +565,24 @@
}
}
if
(
!
$
.
contains
(
document
,
headContainer
)
)
{
//
jQuery.fn.slideUp is not hiding an element if it is not in the DOM
if
(
!
$
.
contains
(
document
,
headContainer
.
get
(
0
)
)
)
{
//
If the element is not in the DOM, then jQuery.fn.slideUp() does nothing. In this case, a hard toggle is required instead.
headContainer
.
toggle
(
active
);
if
(
args
.
completeCallback
)
{
args
.
completeCallback
();
}
}
else
if
(
active
)
{
headContainer
.
s
top
(
true
,
true
).
s
lideDown
(
duration
,
args
.
completeCallback
);
headContainer
.
slideDown
(
duration
,
args
.
completeCallback
);
}
else
{
if
(
construct
.
expanded
()
)
{
construct
.
collapse
({
duration
:
duration
,
completeCallback
:
function
()
{
headContainer
.
s
top
(
true
,
true
).
s
lideUp
(
duration
,
args
.
completeCallback
);
headContainer
.
slideUp
(
duration
,
args
.
completeCallback
);
}
});
}
else
{
headContainer
.
s
top
(
true
,
true
).
s
lideUp
(
duration
,
args
.
completeCallback
);
headContainer
.
slideUp
(
duration
,
args
.
completeCallback
);
}
}
},
...
...
@@ -710,11 +711,19 @@
var
construct
=
this
,
content
=
construct
.
contentContainer
,
overlay
=
content
.
closest
(
'
.wp-full-overlay
'
),
elements
,
transitionEndCallback
;
elements
,
transitionEndCallback
,
transitionParentPane
;
// Determine set of elements that are affected by the animation.
elements
=
overlay
.
add
(
content
);
if
(
_
.
isUndefined
(
construct
.
panel
)
||
''
===
construct
.
panel
()
)
{
if
(
!
construct
.
panel
||
''
===
construct
.
panel
()
)
{
transitionParentPane
=
true
;
}
else
if
(
api
.
panel
(
construct
.
panel
()
).
contentContainer
.
hasClass
(
'
skip-transition
'
)
)
{
transitionParentPane
=
true
;
}
else
{
transitionParentPane
=
false
;
}
if
(
transitionParentPane
)
{
elements
=
elements
.
add
(
'
#customize-info, .customize-pane-parent
'
);
}
...
...
@@ -995,7 +1004,7 @@
overlay
=
section
.
headContainer
.
closest
(
'
.wp-full-overlay
'
),
backBtn
=
content
.
find
(
'
.customize-section-back
'
),
sectionTitle
=
section
.
headContainer
.
find
(
'
.accordion-section-title
'
).
first
(),
expand
;
expand
,
panel
;
if
(
expanded
&&
!
content
.
hasClass
(
'
open
'
)
)
{
...
...
@@ -1043,6 +1052,12 @@
}
}
else
if
(
!
expanded
&&
content
.
hasClass
(
'
open
'
)
)
{
if
(
section
.
panel
()
)
{
panel
=
api
.
panel
(
section
.
panel
()
);
if
(
panel
.
contentContainer
.
hasClass
(
'
skip-transition
'
)
)
{
panel
.
collapse
();
}
}
section
.
_animateChangeExpanded
(
function
()
{
backBtn
.
attr
(
'
tabindex
'
,
'
-1
'
);
sectionTitle
.
attr
(
'
tabindex
'
,
'
0
'
);
...
...
@@ -1721,7 +1736,9 @@
overlay
=
accordionSection
.
closest
(
'
.wp-full-overlay
'
),
container
=
accordionSection
.
closest
(
'
.wp-full-overlay-sidebar-content
'
),
topPanel
=
panel
.
headContainer
.
find
(
'
.accordion-section-title
'
),
backBtn
=
accordionSection
.
find
(
'
.customize-panel-back
'
);
backBtn
=
accordionSection
.
find
(
'
.customize-panel-back
'
),
childSections
=
panel
.
sections
(),
skipTransition
;
if
(
expanded
&&
!
accordionSection
.
hasClass
(
'
current-panel
'
)
)
{
// Collapse any sibling sections/panels
...
...
@@ -1736,35 +1753,50 @@
}
});
panel
.
_animateChangeExpanded
(
function
(
)
{
topPanel
.
attr
(
'
tabindex
'
,
'
-1
'
);
backBtn
.
attr
(
'
tabindex
'
,
'
0
'
);
if
(
panel
.
params
.
autoExpandSoleSection
&&
1
===
childSections
.
length
&&
childSections
[
0
].
active
.
get
()
)
{
accordionSection
.
addClass
(
'
current-panel skip-transition
'
);
overlay
.
addClass
(
'
in-sub-panel
'
);
backBtn
.
focus
();
accordionSection
.
css
(
'
top
'
,
''
);
container
.
scrollTop
(
0
);
childSections
[
0
].
expand
(
{
completeCallback
:
args
.
completeCallback
}
);
}
else
{
panel
.
_animateChangeExpanded
(
function
()
{
topPanel
.
attr
(
'
tabindex
'
,
'
-1
'
);
backBtn
.
attr
(
'
tabindex
'
,
'
0
'
);
if
(
args
.
completeCallback
)
{
args
.
completeCallback
();
}
}
);
backBtn
.
focus
();
accordionSection
.
css
(
'
top
'
,
''
);
container
.
scrollTop
(
0
);
if
(
args
.
completeCallback
)
{
args
.
completeCallback
();
}
}
);
accordionSection
.
addClass
(
'
current-panel
'
);
overlay
.
addClass
(
'
in-sub-panel
'
);
}
overlay
.
addClass
(
'
in-sub-panel
'
);
accordionSection
.
addClass
(
'
current-panel
'
);
api
.
state
(
'
expandedPanel
'
).
set
(
panel
);
}
else
if
(
!
expanded
&&
accordionSection
.
hasClass
(
'
current-panel
'
)
)
{
panel
.
_animateChangeExpanded
(
function
()
{
topPanel
.
attr
(
'
tabindex
'
,
'
0
'
);
backBtn
.
attr
(
'
tabindex
'
,
'
-1
'
);
skipTransition
=
accordionSection
.
hasClass
(
'
skip-transition
'
);
if
(
!
skipTransition
)
{
panel
.
_animateChangeExpanded
(
function
()
{
topPanel
.
attr
(
'
tabindex
'
,
'
0
'
);
backBtn
.
attr
(
'
tabindex
'
,
'
-1
'
);
topPanel
.
focus
();
accordionSection
.
css
(
'
top
'
,
''
);
topPanel
.
focus
();
accordionSection
.
css
(
'
top
'
,
''
);
if
(
args
.
completeCallback
)
{
args
.
completeCallback
();
}
}
);
if
(
args
.
completeCallback
)
{
args
.
completeCallback
();
}
}
);
}
else
{
accordionSection
.
removeClass
(
'
skip-transition
'
);
}
overlay
.
removeClass
(
'
in-sub-panel
'
);
accordionSection
.
removeClass
(
'
current-panel
'
);
...
...
@@ -2266,9 +2298,9 @@
availableItem
=
new
api
.
Menus
.
AvailableItemModel
(
{
'
id
'
:
'
post-
'
+
data
.
post_id
,
// Used for available menu item Backbone models.
'
title
'
:
title
,
'
type
'
:
'
p
ag
e
'
,
'
type
'
:
'
p
ost_typ
e
'
,
'
type_label
'
:
api
.
Menus
.
data
.
l10n
.
page_label
,
'
object
'
:
'
p
ost_typ
e
'
,
'
object
'
:
'
p
ag
e
'
,
'
object_id
'
:
data
.
post_id
,
'
url
'
:
data
.
url
}
);
...
...
@@ -4122,7 +4154,7 @@
// Remove notification errors that are no longer valid.
setting
.
notifications
.
each
(
function
(
notification
)
{
if
(
'
error
'
===
notification
.
type
&&
(
true
===
validity
||
!
validity
[
notification
.
code
]
)
)
{
if
(
notification
.
fromServer
&&
'
error
'
===
notification
.
type
&&
(
true
===
validity
||
!
validity
[
notification
.
code
]
)
)
{
setting
.
notifications
.
remove
(
notification
.
code
);
}
}
);
...
...
@@ -4730,6 +4762,12 @@
*/
populateChangesetUuidParam
=
function
(
isIncluded
)
{
var
urlParser
,
queryParams
;
// Abort on IE9 which doesn't support history management.
if
(
!
history
.
replaceState
)
{
return
;
}
urlParser
=
document
.
createElement
(
'
a
'
);
urlParser
.
href
=
location
.
href
;
queryParams
=
api
.
utils
.
parseQueryString
(
urlParser
.
search
.
substr
(
1
)
);
...
...
@@ -4748,11 +4786,9 @@
history
.
replaceState
(
{},
document
.
title
,
urlParser
.
href
);
};
if
(
history
.
replaceState
)
{
changesetStatus
.
bind
(
function
(
newStatus
)
{
populateChangesetUuidParam
(
''
!==
newStatus
&&
'
publish
'
!==
newStatus
);
}
);
}
changesetStatus
.
bind
(
function
(
newStatus
)
{
populateChangesetUuidParam
(
''
!==
newStatus
&&
'
publish
'
!==
newStatus
);
}
);
// Expose states to the API.
api
.
state
=
state
;
...
...
wp-admin/js/customize-controls.min.js
View file @
deb997c8
This diff is collapsed.
Click to expand it.
wp-admin/js/customize-nav-menus.js
View file @
deb997c8
...
...
@@ -1323,7 +1323,14 @@
this
.
container
.
find
(
'
.menu-item-handle
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
menuControl
=
control
.
getMenuControl
();
var
menuControl
=
control
.
getMenuControl
(),
isDeleteBtn
=
$
(
e
.
target
).
is
(
'
.item-delete, .item-delete *
'
),
isAddNewBtn
=
$
(
e
.
target
).
is
(
'
.add-new-menu-item, .add-new-menu-item *
'
);
if
(
$
(
'
body
'
).
hasClass
(
'
adding-menu-items
'
)
&&
!
isDeleteBtn
&&
!
isAddNewBtn
)
{
api
.
Menus
.
availableMenuItemsPanel
.
close
();
}
if
(
menuControl
.
isReordering
||
menuControl
.
isSorting
)
{
return
;
}
...
...
@@ -2214,7 +2221,7 @@
}
}
);
control
.
container
.
find
(
'
.menu-delete
'
).
on
(
'
click
'
,
function
(
event
)
{
control
.
container
.
find
(
'
.menu-delete
-item
'
).
on
(
'
click
'
,
function
(
event
)
{
event
.
stopPropagation
();
event
.
preventDefault
();
control
.
setting
.
set
(
false
);
...
...
wp-admin/js/customize-nav-menus.min.js
View file @
deb997c8
This diff is collapsed.
Click to expand it.
wp-admin/js/inline-edit-post.js
View file @
deb997c8
...
...
@@ -115,6 +115,15 @@ inlineEditPost = {
// enable autocomplete for tags
if
(
'
post
'
===
type
)
{
$
(
'
tr.inline-editor textarea[data-wp-taxonomy]
'
).
each
(
function
(
i
,
element
)
{
/*
* While Quick Edit clones the form each time, Bulk Edit always re-uses
* the same form. Let's check if an autocomplete instance already exists.
*/
if
(
$
(
element
).
autocomplete
(
'
instance
'
)
)
{
// jQuery equivalent of `continue` within an `each()` loop.
return
;
}
$
(
element
).
wpTagsSuggest
();
}
);
}
...
...
wp-admin/js/inline-edit-post.min.js
View file @
deb997c8
window
.
wp
=
window
.
wp
||
{};
var
inlineEditPost
;
!
function
(
a
,
b
){
inlineEditPost
=
{
init
:
function
(){
var
b
=
this
,
c
=
a
(
"
#inline-edit
"
),
d
=
a
(
"
#bulk-edit
"
);
b
.
type
=
a
(
"
table.widefat
"
).
hasClass
(
"
pages
"
)?
"
page
"
:
"
post
"
,
b
.
what
=
"
#post-
"
,
c
.
keyup
(
function
(
a
){
if
(
27
===
a
.
which
)
return
inlineEditPost
.
revert
()}),
d
.
keyup
(
function
(
a
){
if
(
27
===
a
.
which
)
return
inlineEditPost
.
revert
()}),
a
(
"
.cancel
"
,
c
).
click
(
function
(){
return
inlineEditPost
.
revert
()}),
a
(
"
.save
"
,
c
).
click
(
function
(){
return
inlineEditPost
.
save
(
this
)}),
a
(
"
td
"
,
c
).
keydown
(
function
(
b
){
if
(
13
===
b
.
which
&&!
a
(
b
.
target
).
hasClass
(
"
cancel
"
))
return
inlineEditPost
.
save
(
this
)}),
a
(
"
.cancel
"
,
d
).
click
(
function
(){
return
inlineEditPost
.
revert
()}),
a
(
'
#inline-edit .inline-edit-private input[value="private"]
'
).
click
(
function
(){
var
b
=
a
(
"
input.inline-edit-password-input
"
);
a
(
this
).
prop
(
"
checked
"
)?
b
.
val
(
""
).
prop
(
"
disabled
"
,
!
0
):
b
.
prop
(
"
disabled
"
,
!
1
)}),
a
(
"
#the-list
"
).
on
(
"
click
"
,
"
a.editinline
"
,
function
(
a
){
a
.
preventDefault
(),
inlineEditPost
.
edit
(
this
)}),
a
(
"
#bulk-edit
"
).
find
(
"
fieldset:first
"
).
after
(
a
(
"
#inline-edit fieldset.inline-edit-categories
"
).
clone
()).
siblings
(
"
fieldset:last
"
).
prepend
(
a
(
"
#inline-edit label.inline-edit-tags
"
).
clone
()),
a
(
'
select[name="_status"] option[value="future"]
'
,
d
).
remove
(),
a
(
"
#doaction, #doaction2
"
).
click
(
function
(
c
){
var
d
;
b
.
whichBulkButtonId
=
a
(
this
).
attr
(
"
id
"
),
d
=
b
.
whichBulkButtonId
.
substr
(
2
),
"
edit
"
===
a
(
'
select[name="
'
+
d
+
'
"]
'
).
val
()?(
c
.
preventDefault
(),
b
.
setBulk
()):
a
(
"
form#posts-filter tr.inline-editor
"
).
length
>
0
&&
b
.
revert
()})},
toggle
:
function
(
b
){
var
c
=
this
;
"
none
"
===
a
(
c
.
what
+
c
.
getId
(
b
)).
css
(
"
display
"
)?
c
.
revert
():
c
.
edit
(
b
)},
setBulk
:
function
(){
var
b
=
""
,
c
=
this
.
type
,
d
=!
0
;
return
this
.
revert
(),
a
(
"
#bulk-edit td
"
).
attr
(
"
colspan
"
,
a
(
"
th:visible, td:visible
"
,
"
.widefat:first thead
"
).
length
),
a
(
"
table.widefat tbody
"
).
prepend
(
a
(
"
#bulk-edit
"
)).
prepend
(
'
<tr class="hidden"></tr>
'
),
a
(
"
#bulk-edit
"
).
addClass
(
"
inline-editor
"
).
show
(),
a
(
'
tbody th.check-column input[type="checkbox"]
'
).
each
(
function
(){
if
(
a
(
this
).
prop
(
"
checked
"
)){
d
=!
1
;
var
c
,
e
=
a
(
this
).
val
();
c
=
a
(
"
#inline_
"
+
e
+
"
.post_title
"
).
html
()
||
inlineEditL10n
.
notitle
,
b
+=
'
<div id="ttle
'
+
e
+
'
"><a id="_
'
+
e
+
'
" class="ntdelbutton" title="
'
+
inlineEditL10n
.
ntdeltitle
+
'
">X</a>
'
+
c
+
"
</div>
"
}}),
d
?
this
.
revert
():(
a
(
"
#bulk-titles
"
).
html
(
b
),
a
(
"
#bulk-titles a
"
).
click
(
function
(){
var
b
=
a
(
this
).
attr
(
"
id
"
).
substr
(
1
);
a
(
'
table.widefat input[value="
'
+
b
+
'
"]
'
).
prop
(
"
checked
"
,
!
1
),
a
(
"
#ttle
"
+
b
).
remove
()}),
"
post
"
===
c
&&
a
(
"
tr.inline-editor textarea[data-wp-taxonomy]
"
).
each
(
function
(
b
,
c
){
a
(
c
).
wpTagsSuggest
()}),
void
a
(
"
html, body
"
).
animate
({
scrollTop
:
0
},
"
fast
"
))},
edit
:
function
(
b
){
var
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
=
this
,
o
=!
0
;
for
(
n
.
revert
(),
"
object
"
==
typeof
b
&&
(
b
=
n
.
getId
(
b
)),
c
=
[
"
post_title
"
,
"
post_name
"
,
"
post_author
"
,
"
_status
"
,
"
jj
"
,
"
mm
"
,
"
aa
"
,
"
hh
"
,
"
mn
"
,
"
ss
"
,
"
post_password
"
,
"
post_format
"
,
"
menu_order
"
,
"
page_template
"
],
"
page
"
===
n
.
type
&&
c
.
push
(
"
post_parent
"
),
d
=
a
(
"
#inline-edit
"
).
clone
(
!
0
),
a
(
"
td
"
,
d
).
attr
(
"
colspan
"
,
a
(
"
th:visible, td:visible
"
,
"
.widefat:first thead
"
).
length
),
a
(
n
.
what
+
b
).
removeClass
(
"
is-expanded
"
).
hide
().
after
(
d
).
after
(
'
<tr class="hidden"></tr>
'
),
e
=
a
(
"
#inline_
"
+
b
),
a
(
'
:input[name="post_author"] option[value="
'
+
a
(
"
.post_author
"
,
e
).
text
()
+
'
"]
'
,
d
).
val
()
||
a
(
'
:input[name="post_author"]
'
,
d
).
prepend
(
'
<option value="
'
+
a
(
"
.post_author
"
,
e
).
text
()
+
'
">
'
+
a
(
"
#
"
+
n
.
type
+
"
-
"
+
b
+
"
.author
"
).
text
()
+
"
</option>
"
),
1
===
a
(
'
:input[name="post_author"] option
'
,
d
).
length
&&
a
(
"
label.inline-edit-author
"
,
d
).
hide
(),
k
=
0
;
k
<
c
.
length
;
k
++
)
l
=
a
(
"
.
"
+
c
[
k
],
e
),
l
.
find
(
"
img
"
).
replaceWith
(
function
(){
return
this
.
alt
}),
l
=
l
.
text
(),
a
(
'
:input[name="
'
+
c
[
k
]
+
'
"]
'
,
d
).
val
(
l
);
if
(
"
open
"
===
a
(
"
.comment_status
"
,
e
).
text
()
&&
a
(
'
input[name="comment_status"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
"
open
"
===
a
(
"
.ping_status
"
,
e
).
text
()
&&
a
(
'
input[name="ping_status"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
"
sticky
"
===
a
(
"
.sticky
"
,
e
).
text
()
&&
a
(
'
input[name="sticky"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
a
(
"
.post_category
"
,
e
).
each
(
function
(){
var
c
,
e
=
a
(
this
).
text
();
e
&&
(
c
=
a
(
this
).
attr
(
"
id
"
).
replace
(
"
_
"
+
b
,
""
),
a
(
"
ul.
"
+
c
+
"
-checklist :checkbox
"
,
d
).
val
(
e
.
split
(
"
,
"
)))}),
a
(
"
.tags_input
"
,
e
).
each
(
function
(){
var
c
=
a
(
this
),
e
=
a
(
this
).
attr
(
"
id
"
).
replace
(
"
_
"
+
b
,
""
),
f
=
a
(
"
textarea.tax_input_
"
+
e
,
d
),
g
=
inlineEditL10n
.
comma
;
c
.
find
(
"
img
"
).
replaceWith
(
function
(){
return
this
.
alt
}),
c
=
c
.
text
(),
c
&&
(
"
,
"
!==
g
&&
(
c
=
c
.
replace
(
/,/g
,
g
)),
f
.
val
(
c
)),
f
.
wpTagsSuggest
()}),
f
=
a
(
"
._status
"
,
e
).
text
(),
"
future
"
!==
f
&&
a
(
'
select[name="_status"] option[value="future"]
'
,
d
).
remove
(),
m
=
a
(
"
.inline-edit-password-input
"
).
prop
(
"
disabled
"
,
!
1
),
"
private
"
===
f
&&
(
a
(
'
input[name="keep_private"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
m
.
val
(
""
).
prop
(
"
disabled
"
,
!
0
)),
g
=
a
(
'
select[name="post_parent"] option[value="
'
+
b
+
'
"]
'
,
d
),
g
.
length
>
0
){
for
(
h
=
g
[
0
].
className
.
split
(
"
-
"
)[
1
],
i
=
g
;
o
&&
(
i
=
i
.
next
(
"
option
"
),
0
!==
i
.
length
);)
j
=
i
[
0
].
className
.
split
(
"
-
"
)[
1
],
j
<=
h
?
o
=!
1
:(
i
.
remove
(),
i
=
g
);
g
.
remove
()}
return
a
(
d
).
attr
(
"
id
"
,
"
edit-
"
+
b
).
addClass
(
"
inline-editor
"
).
show
(),
a
(
"
.ptitle
"
,
d
).
focus
(),
!
1
},
save
:
function
(
c
){
var
d
,
e
,
f
=
a
(
"
.post_status_page
"
).
val
()
||
""
;
return
"
object
"
==
typeof
c
&&
(
c
=
this
.
getId
(
c
)),
a
(
"
table.widefat .spinner
"
).
addClass
(
"
is-active
"
),
d
=
{
action
:
"
inline-save
"
,
post_type
:
typenow
,
post_ID
:
c
,
edit_date
:
"
true
"
,
post_status
:
f
},
e
=
a
(
"
#edit-
"
+
c
).
find
(
"
:input
"
).
serialize
(),
d
=
e
+
"
&
"
+
a
.
param
(
d
),
a
.
post
(
ajaxurl
,
d
,
function
(
d
){
var
e
=
a
(
"
#edit-
"
+
c
+
"
.inline-edit-save .error
"
);
a
(
"
table.widefat .spinner
"
).
removeClass
(
"
is-active
"
),
a
(
"
.ac_results
"
).
hide
(),
d
?
-
1
!==
d
.
indexOf
(
"
<tr
"
)?(
a
(
inlineEditPost
.
what
+
c
).
siblings
(
"
tr.hidden
"
).
addBack
().
remove
(),
a
(
"
#edit-
"
+
c
).
before
(
d
).
remove
(),
a
(
inlineEditPost
.
what
+
c
).
hide
().
fadeIn
(
400
,
function
(){
a
(
this
).
find
(
"
.editinline
"
).
focus
(),
b
.
a11y
.
speak
(
inlineEditL10n
.
saved
)})):(
d
=
d
.
replace
(
/<.
[^
<>
]
*
?
>/g
,
""
),
e
.
html
(
d
).
show
(),
b
.
a11y
.
speak
(
e
.
text
())):(
e
.
html
(
inlineEditL10n
.
error
).
show
(),
b
.
a11y
.
speak
(
inlineEditL10n
.
error
))},
"
html
"
),
!
1
},
revert
:
function
(){
var
b
=
a
(
"
.widefat
"
),
c
=
a
(
"
.inline-editor
"
,
b
).
attr
(
"
id
"
);
return
c
&&
(
a
(
"
.spinner
"
,
b
).
removeClass
(
"
is-active
"
),
a
(
"
.ac_results
"
).
hide
(),
"
bulk-edit
"
===
c
?(
a
(
"
#bulk-edit
"
,
b
).
removeClass
(
"
inline-editor
"
).
hide
().
siblings
(
"
.hidden
"
).
remove
(),
a
(
"
#bulk-titles
"
).
empty
(),
a
(
"
#inlineedit
"
).
append
(
a
(
"
#bulk-edit
"
)),
a
(
"
#
"
+
inlineEditPost
.
whichBulkButtonId
).
focus
()):(
a
(
"
#
"
+
c
).
siblings
(
"
tr.hidden
"
).
addBack
().
remove
(),
c
=
c
.
substr
(
c
.
lastIndexOf
(
"
-
"
)
+
1
),
a
(
this
.
what
+
c
).
show
().
find
(
"
.editinline
"
).
focus
())),
!
1
},
getId
:
function
(
b
){
var
c
=
a
(
b
).
closest
(
"
tr
"
).
attr
(
"
id
"
),
d
=
c
.
split
(
"
-
"
);
return
d
[
d
.
length
-
1
]}},
a
(
document
).
ready
(
function
(){
inlineEditPost
.
init
()}),
a
(
document
).
on
(
"
heartbeat-tick.wp-check-locked-posts
"
,
function
(
b
,
c
){
var
d
=
c
[
"
wp-check-locked-posts
"
]
||
{};
a
(
"
#the-list tr
"
).
each
(
function
(
b
,
c
){
var
e
,
f
,
g
=
c
.
id
,
h
=
a
(
c
);
d
.
hasOwnProperty
(
g
)?
h
.
hasClass
(
"
wp-locked
"
)
||
(
e
=
d
[
g
],
h
.
find
(
"
.column-title .locked-text
"
).
text
(
e
.
text
),
h
.
find
(
"
.check-column checkbox
"
).
prop
(
"
checked
"
,
!
1
),
e
.
avatar_src
&&
(
f
=
a
(
'
<img class="avatar avatar-18 photo" width="18" height="18" alt="" />
'
).
attr
(
"
src
"
,
e
.
avatar_src
.
replace
(
/&/g
,
"
&
"
)),
h
.
find
(
"
.column-title .locked-avatar
"
).
empty
().
append
(
f
)),
h
.
addClass
(
"
wp-locked
"
)):
h
.
hasClass
(
"
wp-locked
"
)
&&
h
.
removeClass
(
"
wp-locked
"
).
delay
(
1
e3
).
find
(
"
.locked-info span
"
).
empty
()})}).
on
(
"
heartbeat-send.wp-check-locked-posts
"
,
function
(
b
,
c
){
var
d
=
[];
a
(
"
#the-list tr
"
).
each
(
function
(
a
,
b
){
b
.
id
&&
d
.
push
(
b
.
id
)}),
d
.
length
&&
(
c
[
"
wp-check-locked-posts
"
]
=
d
)}).
ready
(
function
(){
"
undefined
"
!=
typeof
b
&&
b
.
heartbeat
&&
b
.
heartbeat
.
interval
(
15
)})}(
jQuery
,
window
.
wp
);
\ No newline at end of file
window
.
wp
=
window
.
wp
||
{};
var
inlineEditPost
;
!
function
(
a
,
b
){
inlineEditPost
=
{
init
:
function
(){
var
b
=
this
,
c
=
a
(
"
#inline-edit
"
),
d
=
a
(
"
#bulk-edit
"
);
b
.
type
=
a
(
"
table.widefat
"
).
hasClass
(
"
pages
"
)?
"
page
"
:
"
post
"
,
b
.
what
=
"
#post-
"
,
c
.
keyup
(
function
(
a
){
if
(
27
===
a
.
which
)
return
inlineEditPost
.
revert
()}),
d
.
keyup
(
function
(
a
){
if
(
27
===
a
.
which
)
return
inlineEditPost
.
revert
()}),
a
(
"
.cancel
"
,
c
).
click
(
function
(){
return
inlineEditPost
.
revert
()}),
a
(
"
.save
"
,
c
).
click
(
function
(){
return
inlineEditPost
.
save
(
this
)}),
a
(
"
td
"
,
c
).
keydown
(
function
(
b
){
if
(
13
===
b
.
which
&&!
a
(
b
.
target
).
hasClass
(
"
cancel
"
))
return
inlineEditPost
.
save
(
this
)}),
a
(
"
.cancel
"
,
d
).
click
(
function
(){
return
inlineEditPost
.
revert
()}),
a
(
'
#inline-edit .inline-edit-private input[value="private"]
'
).
click
(
function
(){
var
b
=
a
(
"
input.inline-edit-password-input
"
);
a
(
this
).
prop
(
"
checked
"
)?
b
.
val
(
""
).
prop
(
"
disabled
"
,
!
0
):
b
.
prop
(
"
disabled
"
,
!
1
)}),
a
(
"
#the-list
"
).
on
(
"
click
"
,
"
a.editinline
"
,
function
(
a
){
a
.
preventDefault
(),
inlineEditPost
.
edit
(
this
)}),
a
(
"
#bulk-edit
"
).
find
(
"
fieldset:first
"
).
after
(
a
(
"
#inline-edit fieldset.inline-edit-categories
"
).
clone
()).
siblings
(
"
fieldset:last
"
).
prepend
(
a
(
"
#inline-edit label.inline-edit-tags
"
).
clone
()),
a
(
'
select[name="_status"] option[value="future"]
'
,
d
).
remove
(),
a
(
"
#doaction, #doaction2
"
).
click
(
function
(
c
){
var
d
;
b
.
whichBulkButtonId
=
a
(
this
).
attr
(
"
id
"
),
d
=
b
.
whichBulkButtonId
.
substr
(
2
),
"
edit
"
===
a
(
'
select[name="
'
+
d
+
'
"]
'
).
val
()?(
c
.
preventDefault
(),
b
.
setBulk
()):
a
(
"
form#posts-filter tr.inline-editor
"
).
length
>
0
&&
b
.
revert
()})},
toggle
:
function
(
b
){
var
c
=
this
;
"
none
"
===
a
(
c
.
what
+
c
.
getId
(
b
)).
css
(
"
display
"
)?
c
.
revert
():
c
.
edit
(
b
)},
setBulk
:
function
(){
var
b
=
""
,
c
=
this
.
type
,
d
=!
0
;
return
this
.
revert
(),
a
(
"
#bulk-edit td
"
).
attr
(
"
colspan
"
,
a
(
"
th:visible, td:visible
"
,
"
.widefat:first thead
"
).
length
),
a
(
"
table.widefat tbody
"
).
prepend
(
a
(
"
#bulk-edit
"
)).
prepend
(
'
<tr class="hidden"></tr>
'
),
a
(
"
#bulk-edit
"
).
addClass
(
"
inline-editor
"
).
show
(),
a
(
'
tbody th.check-column input[type="checkbox"]
'
).
each
(
function
(){
if
(
a
(
this
).
prop
(
"
checked
"
)){
d
=!
1
;
var
c
,
e
=
a
(
this
).
val
();
c
=
a
(
"
#inline_
"
+
e
+
"
.post_title
"
).
html
()
||
inlineEditL10n
.
notitle
,
b
+=
'
<div id="ttle
'
+
e
+
'
"><a id="_
'
+
e
+
'
" class="ntdelbutton" title="
'
+
inlineEditL10n
.
ntdeltitle
+
'
">X</a>
'
+
c
+
"
</div>
"
}}),
d
?
this
.
revert
():(
a
(
"
#bulk-titles
"
).
html
(
b
),
a
(
"
#bulk-titles a
"
).
click
(
function
(){
var
b
=
a
(
this
).
attr
(
"
id
"
).
substr
(
1
);
a
(
'
table.widefat input[value="
'
+
b
+
'
"]
'
).
prop
(
"
checked
"
,
!
1
),
a
(
"
#ttle
"
+
b
).
remove
()}),
"
post
"
===
c
&&
a
(
"
tr.inline-editor textarea[data-wp-taxonomy]
"
).
each
(
function
(
b
,
c
){
a
(
c
).
autocomplete
(
"
instance
"
)
||
a
(
c
).
wpTagsSuggest
()}),
void
a
(
"
html, body
"
).
animate
({
scrollTop
:
0
},
"
fast
"
))},
edit
:
function
(
b
){
var
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
=
this
,
o
=!
0
;
for
(
n
.
revert
(),
"
object
"
==
typeof
b
&&
(
b
=
n
.
getId
(
b
)),
c
=
[
"
post_title
"
,
"
post_name
"
,
"
post_author
"
,
"
_status
"
,
"
jj
"
,
"
mm
"
,
"
aa
"
,
"
hh
"
,
"
mn
"
,
"
ss
"
,
"
post_password
"
,
"
post_format
"
,
"
menu_order
"
,
"
page_template
"
],
"
page
"
===
n
.
type
&&
c
.
push
(
"
post_parent
"
),
d
=
a
(
"
#inline-edit
"
).
clone
(
!
0
),
a
(
"
td
"
,
d
).
attr
(
"
colspan
"
,
a
(
"
th:visible, td:visible
"
,
"
.widefat:first thead
"
).
length
),
a
(
n
.
what
+
b
).
removeClass
(
"
is-expanded
"
).
hide
().
after
(
d
).
after
(
'
<tr class="hidden"></tr>
'
),
e
=
a
(
"
#inline_
"
+
b
),
a
(
'
:input[name="post_author"] option[value="
'
+
a
(
"
.post_author
"
,
e
).
text
()
+
'
"]
'
,
d
).
val
()
||
a
(
'
:input[name="post_author"]
'
,
d
).
prepend
(
'
<option value="
'
+
a
(
"
.post_author
"
,
e
).
text
()
+
'
">
'
+
a
(
"
#
"
+
n
.
type
+
"
-
"
+
b
+
"
.author
"
).
text
()
+
"
</option>
"
),
1
===
a
(
'
:input[name="post_author"] option
'
,
d
).
length
&&
a
(
"
label.inline-edit-author
"
,
d
).
hide
(),
k
=
0
;
k
<
c
.
length
;
k
++
)
l
=
a
(
"
.
"
+
c
[
k
],
e
),
l
.
find
(
"
img
"
).
replaceWith
(
function
(){
return
this
.
alt
}),
l
=
l
.
text
(),
a
(
'
:input[name="
'
+
c
[
k
]
+
'
"]
'
,
d
).
val
(
l
);
if
(
"
open
"
===
a
(
"
.comment_status
"
,
e
).
text
()
&&
a
(
'
input[name="comment_status"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
"
open
"
===
a
(
"
.ping_status
"
,
e
).
text
()
&&
a
(
'
input[name="ping_status"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
"
sticky
"
===
a
(
"
.sticky
"
,
e
).
text
()
&&
a
(
'
input[name="sticky"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
a
(
"
.post_category
"
,
e
).
each
(
function
(){
var
c
,
e
=
a
(
this
).
text
();
e
&&
(
c
=
a
(
this
).
attr
(
"
id
"
).
replace
(
"
_
"
+
b
,
""
),
a
(
"
ul.
"
+
c
+
"
-checklist :checkbox
"
,
d
).
val
(
e
.
split
(
"
,
"
)))}),
a
(
"
.tags_input
"
,
e
).
each
(
function
(){
var
c
=
a
(
this
),
e
=
a
(
this
).
attr
(
"
id
"
).
replace
(
"
_
"
+
b
,
""
),
f
=
a
(
"
textarea.tax_input_
"
+
e
,
d
),
g
=
inlineEditL10n
.
comma
;
c
.
find
(
"
img
"
).
replaceWith
(
function
(){
return
this
.
alt
}),
c
=
c
.
text
(),
c
&&
(
"
,
"
!==
g
&&
(
c
=
c
.
replace
(
/,/g
,
g
)),
f
.
val
(
c
)),
f
.
wpTagsSuggest
()}),
f
=
a
(
"
._status
"
,
e
).
text
(),
"
future
"
!==
f
&&
a
(
'
select[name="_status"] option[value="future"]
'
,
d
).
remove
(),
m
=
a
(
"
.inline-edit-password-input
"
).
prop
(
"
disabled
"
,
!
1
),
"
private
"
===
f
&&
(
a
(
'
input[name="keep_private"]
'
,
d
).
prop
(
"
checked
"
,
!
0
),
m
.
val
(
""
).
prop
(
"
disabled
"
,
!
0
)),
g
=
a
(
'
select[name="post_parent"] option[value="
'
+
b
+
'
"]
'
,
d
),
g
.
length
>
0
){
for
(
h
=
g
[
0
].
className
.
split
(
"
-
"
)[
1
],
i
=
g
;
o
&&
(
i
=
i
.
next
(
"
option
"
),
0
!==
i
.
length
);)
j
=
i
[
0
].
className
.
split
(
"
-
"
)[
1
],
j
<=
h
?
o
=!
1
:(
i
.
remove
(),
i
=
g
);
g
.
remove
()}
return
a
(
d
).
attr
(
"
id
"
,
"
edit-
"
+
b
).
addClass
(
"
inline-editor
"
).
show
(),
a
(
"
.ptitle
"
,
d
).
focus
(),
!
1
},
save
:
function
(
c
){
var
d
,
e
,
f
=
a
(
"
.post_status_page
"
).
val
()
||
""
;
return
"
object
"
==
typeof
c
&&
(
c
=
this
.
getId
(
c
)),
a
(
"
table.widefat .spinner
"
).
addClass
(
"
is-active
"
),
d
=
{
action
:
"
inline-save
"
,
post_type
:
typenow
,
post_ID
:
c
,
edit_date
:
"
true
"
,
post_status
:
f
},
e
=
a
(
"
#edit-
"
+
c
).
find
(
"
:input
"
).
serialize
(),
d
=
e
+
"
&
"
+
a
.
param
(
d
),
a
.
post
(
ajaxurl
,
d
,
function
(
d
){
var
e
=
a
(
"
#edit-
"
+
c
+
"
.inline-edit-save .error
"
);
a
(
"
table.widefat .spinner
"
).
removeClass
(
"
is-active
"
),
a
(
"
.ac_results
"
).
hide
(),
d
?
-
1
!==
d
.
indexOf
(
"
<tr
"
)?(
a
(
inlineEditPost
.
what
+
c
).
siblings
(
"
tr.hidden
"
).
addBack
().
remove
(),
a
(
"
#edit-
"
+
c
).
before
(
d
).
remove
(),
a
(
inlineEditPost
.
what
+
c
).
hide
().
fadeIn
(
400
,
function
(){
a
(
this
).
find
(
"
.editinline
"
).
focus
(),
b
.
a11y
.
speak
(
inlineEditL10n
.
saved
)})):(
d
=
d
.
replace
(
/<.
[^
<>
]
*
?
>/g
,
""
),
e
.
html
(
d
).
show
(),
b
.
a11y
.
speak
(
e
.
text
())):(
e
.
html
(
inlineEditL10n
.
error
).
show
(),
b
.
a11y
.
speak
(
inlineEditL10n
.
error
))},
"
html
"
),
!
1
},
revert
:
function
(){
var
b
=
a
(
"
.widefat
"
),
c
=
a
(
"
.inline-editor
"
,
b
).
attr
(
"
id
"
);
return
c
&&
(
a
(
"
.spinner
"
,
b
).
removeClass
(
"
is-active
"
),
a
(
"
.ac_results
"
).
hide
(),
"
bulk-edit
"
===
c
?(
a
(
"
#bulk-edit
"
,
b
).
removeClass
(
"
inline-editor
"
).
hide
().
siblings
(
"
.hidden
"
).
remove
(),
a
(
"
#bulk-titles
"
).
empty
(),
a
(
"
#inlineedit
"
).
append
(
a
(
"
#bulk-edit
"
)),
a
(
"
#
"
+
inlineEditPost
.
whichBulkButtonId
).
focus
()):(
a
(
"
#
"
+
c
).
siblings
(
"
tr.hidden
"
).
addBack
().
remove
(),
c
=
c
.
substr
(
c
.
lastIndexOf
(
"
-
"
)
+
1
),
a
(
this
.
what
+
c
).
show
().
find
(
"
.editinline
"
).
focus
())),
!
1
},
getId
:
function
(
b
){
var
c
=
a
(
b
).
closest
(
"
tr
"
).
attr
(
"
id
"
),
d
=
c
.
split
(
"
-
"
);
return
d
[
d
.
length
-
1
]}},
a
(
document
).
ready
(
function
(){
inlineEditPost
.
init
()}),
a
(
document
).
on
(
"
heartbeat-tick.wp-check-locked-posts
"
,
function
(
b
,
c
){
var
d
=
c
[
"
wp-check-locked-posts
"
]
||
{};
a
(
"
#the-list tr
"
).
each
(
function
(
b
,
c
){
var
e
,
f
,
g
=
c
.
id
,
h
=
a
(
c
);
d
.
hasOwnProperty
(
g
)?
h
.
hasClass
(
"
wp-locked
"
)
||
(
e
=
d
[
g
],
h
.
find
(
"
.column-title .locked-text
"
).
text
(
e
.
text
),
h
.
find
(
"
.check-column checkbox
"
).
prop
(
"
checked
"
,
!
1
),
e
.
avatar_src
&&
(
f
=
a
(
'
<img class="avatar avatar-18 photo" width="18" height="18" alt="" />
'
).
attr
(
"
src
"
,
e
.
avatar_src
.
replace
(
/&/g
,
"
&
"
)),
h
.
find
(
"
.column-title .locked-avatar
"
).
empty
().
append
(
f
)),
h
.
addClass
(
"
wp-locked
"
)):
h
.
hasClass
(
"
wp-locked
"
)
&&
h
.
removeClass
(
"
wp-locked
"
).
delay
(
1
e3
).
find
(
"
.locked-info span
"
).
empty
()})}).
on
(
"
heartbeat-send.wp-check-locked-posts
"
,
function
(
b
,
c
){
var
d
=
[];
a
(
"
#the-list tr
"
).
each
(
function
(
a
,
b
){
b
.
id
&&
d
.
push
(
b
.
id
)}),
d
.
length
&&
(
c
[
"
wp-check-locked-posts
"
]
=
d
)}).
ready
(
function
(){
"
undefined
"
!=
typeof
b
&&
b
.
heartbeat
&&
b
.
heartbeat
.
interval
(
15
)})}(
jQuery
,
window
.
wp
);
\ No newline at end of file
wp-admin/js/tags-suggest.js
View file @
deb997c8
...
...
@@ -120,7 +120,9 @@
},
minLength
:
2
,
position
:
{
my
:
'
left top+2
'
my
:
'
left top+2
'
,
at
:
'
left bottom
'
,
collision
:
'
none
'
},
messages
:
{
noResults
:
window
.
uiAutocompleteL10n
.
noResults
,
...
...
wp-admin/js/tags-suggest.min.js
View file @
deb997c8
!
function
(
a
){
function
b
(
a
){
return
a
.
split
(
new
RegExp
(
e
+
"
\\
s*
"
))}
function
c
(
a
){
return
b
(
a
).
pop
()}
if
(
"
undefined
"
!=
typeof
window
.
tagsSuggestL10n
&&
"
undefined
"
!=
typeof
window
.
uiAutocompleteL10n
){
var
d
=
0
,
e
=
window
.
tagsSuggestL10n
.
tagDelimiter
||
"
,
"
;
a
.
fn
.
wpTagsSuggest
=
function
(
f
){
var
g
,
h
,
i
=
a
(
this
);
f
=
f
||
{};
var
j
=
f
.
taxonomy
||
i
.
attr
(
"
data-wp-taxonomy
"
)
||
"
post_tag
"
;
return
delete
f
.
taxonomy
,
f
=
a
.
extend
({
source
:
function
(
b
,
e
){
var
f
;
return
h
===
b
.
term
?
void
e
(
g
):(
f
=
c
(
b
.
term
),
a
.
get
(
window
.
ajaxurl
,{
action
:
"
ajax-tag-search
"
,
tax
:
j
,
q
:
f
}).
always
(
function
(){
i
.
removeClass
(
"
ui-autocomplete-loading
"
)}).
done
(
function
(
a
){
var
b
,
c
=
[];
if
(
a
){
a
=
a
.
split
(
"
\n
"
);
for
(
b
in
a
){
var
f
=++
d
;
c
.
push
({
id
:
f
,
name
:
a
[
b
]})}
g
=
c
,
e
(
c
)}
else
e
(
c
)}),
void
(
h
=
b
.
term
))},
focus
:
function
(
a
,
b
){
i
.
attr
(
"
aria-activedescendant
"
,
"
wp-tags-autocomplete-
"
+
b
.
item
.
id
),
a
.
preventDefault
()},
select
:
function
(
c
,
d
){
var
f
=
b
(
i
.
val
());
return
f
.
pop
(),
f
.
push
(
d
.
item
.
name
,
""
),
i
.
val
(
f
.
join
(
e
+
"
"
)),
a
.
ui
.
keyCode
.
TAB
===
c
.
keyCode
?(
window
.
wp
.
a11y
.
speak
(
window
.
tagsSuggestL10n
.
termSelected
,
"
assertive
"
),
c
.
preventDefault
()):
a
.
ui
.
keyCode
.
ENTER
===
c
.
keyCode
&&
(
c
.
preventDefault
(),
c
.
stopPropagation
()),
!
1
},
open
:
function
(){
i
.
attr
(
"
aria-expanded
"
,
"
true
"
)},
close
:
function
(){
i
.
attr
(
"
aria-expanded
"
,
"
false
"
)},
minLength
:
2
,
position
:{
my
:
"
left top+2
"
},
messages
:{
noResults
:
window
.
uiAutocompleteL10n
.
noResults
,
results
:
function
(
a
){
return
a
>
1
?
window
.
uiAutocompleteL10n
.
manyResults
.
replace
(
"
%d
"
,
a
):
window
.
uiAutocompleteL10n
.
oneResult
}}},
f
),
i
.
on
(
"
keydown
"
,
function
(){
i
.
removeAttr
(
"
aria-activedescendant
"
)}).
autocomplete
(
f
).
autocomplete
(
"
instance
"
).
_renderItem
=
function
(
b
,
c
){
return
a
(
'
<li role="option" id="wp-tags-autocomplete-
'
+
c
.
id
+
'
">
'
).
text
(
c
.
name
).
appendTo
(
b
)},
i
.
attr
({
role
:
"
combobox
"
,
"
aria-autocomplete
"
:
"
list
"
,
"
aria-expanded
"
:
"
false
"
,
"
aria-owns
"
:
i
.
autocomplete
(
"
widget
"
).
attr
(
"
id
"
)}).
on
(
"
focus
"
,
function
(){
var
a
=
b
(
i
.
val
()).
pop
();
a
&&
i
.
autocomplete
(
"
search
"
)}).
autocomplete
(
"
widget
"
).
addClass
(
"
wp-tags-autocomplete
"
).
attr
(
"
role
"
,
"
listbox
"
).
removeAttr
(
"
tabindex
"
).
on
(
"
menufocus
"
,
function
(
a
,
b
){
b
.
item
.
attr
(
"
aria-selected
"
,
"
true
"
)}).
on
(
"
menublur
"
,
function
(){
a
(
this
).
find
(
'
[aria-selected="true"]
'
).
removeAttr
(
"
aria-selected
"
)}),
this
}}}(
jQuery
);
\ No newline at end of file
!
function
(
a
){
function
b
(
a
){
return
a
.
split
(
new
RegExp
(
e
+
"
\\
s*
"
))}
function
c
(
a
){
return
b
(
a
).
pop
()}
if
(
"
undefined
"
!=
typeof
window
.
tagsSuggestL10n
&&
"
undefined
"
!=
typeof
window
.
uiAutocompleteL10n
){
var
d
=
0
,
e
=
window
.
tagsSuggestL10n
.
tagDelimiter
||
"
,
"
;
a
.
fn
.
wpTagsSuggest
=
function
(
f
){
var
g
,
h
,
i
=
a
(
this
);
f
=
f
||
{};
var
j
=
f
.
taxonomy
||
i
.
attr
(
"
data-wp-taxonomy
"
)
||
"
post_tag
"
;
return
delete
f
.
taxonomy
,
f
=
a
.
extend
({
source
:
function
(
b
,
e
){
var
f
;
return
h
===
b
.
term
?
void
e
(
g
):(
f
=
c
(
b
.
term
),
a
.
get
(
window
.
ajaxurl
,{
action
:
"
ajax-tag-search
"
,
tax
:
j
,
q
:
f
}).
always
(
function
(){
i
.
removeClass
(
"
ui-autocomplete-loading
"
)}).
done
(
function
(
a
){
var
b
,
c
=
[];
if
(
a
){
a
=
a
.
split
(
"
\n
"
);
for
(
b
in
a
){
var
f
=++
d
;
c
.
push
({
id
:
f
,
name
:
a
[
b
]})}
g
=
c
,
e
(
c
)}
else
e
(
c
)}),
void
(
h
=
b
.
term
))},
focus
:
function
(
a
,
b
){
i
.
attr
(
"
aria-activedescendant
"
,
"
wp-tags-autocomplete-
"
+
b
.
item
.
id
),
a
.
preventDefault
()},
select
:
function
(
c
,
d
){
var
f
=
b
(
i
.
val
());
return
f
.
pop
(),
f
.
push
(
d
.
item
.
name
,
""
),
i
.
val
(
f
.
join
(
e
+
"
"
)),
a
.
ui
.
keyCode
.
TAB
===
c
.
keyCode
?(
window
.
wp
.
a11y
.
speak
(
window
.
tagsSuggestL10n
.
termSelected
,
"
assertive
"
),
c
.
preventDefault
()):
a
.
ui
.
keyCode
.
ENTER
===
c
.
keyCode
&&
(
c
.
preventDefault
(),
c
.
stopPropagation
()),
!
1
},
open
:
function
(){
i
.
attr
(
"
aria-expanded
"
,
"
true
"
)},
close
:
function
(){
i
.
attr
(
"
aria-expanded
"
,
"
false
"
)},
minLength
:
2
,
position
:{
my
:
"
left top+2
"
,
at
:
"
left bottom
"
,
collision
:
"
none
"
},
messages
:{
noResults
:
window
.
uiAutocompleteL10n
.
noResults
,
results
:
function
(
a
){
return
a
>
1
?
window
.
uiAutocompleteL10n
.
manyResults
.
replace
(
"
%d
"
,
a
):
window
.
uiAutocompleteL10n
.
oneResult
}}},
f
),
i
.
on
(
"
keydown
"
,
function
(){
i
.
removeAttr
(
"
aria-activedescendant
"
)}).
autocomplete
(
f
).
autocomplete
(
"
instance
"
).
_renderItem
=
function
(
b
,
c
){
return
a
(
'
<li role="option" id="wp-tags-autocomplete-
'
+
c
.
id
+
'
">
'
).
text
(
c
.
name
).
appendTo
(
b
)},
i
.
attr
({
role
:
"
combobox
"
,
"
aria-autocomplete
"
:
"
list
"
,
"
aria-expanded
"
:
"
false
"
,
"
aria-owns
"
:
i
.
autocomplete
(
"
widget
"
).
attr
(
"
id
"
)}).
on
(
"
focus
"
,
function
(){
var
a
=
b
(
i
.
val
()).
pop
();
a
&&
i
.
autocomplete
(
"
search
"
)}).
autocomplete
(
"
widget
"
).
addClass
(
"
wp-tags-autocomplete
"
).
attr
(
"
role
"
,
"
listbox
"
).
removeAttr
(
"
tabindex
"
).
on
(
"
menufocus
"
,
function
(
a
,
b
){
b
.
item
.
attr
(
"
aria-selected
"
,
"
true
"
)}).
on
(
"
menublur
"
,
function
(){
a
(
this
).
find
(
'
[aria-selected="true"]
'
).
removeAttr
(
"
aria-selected
"
)}),
this
}}}(
jQuery
);
\ No newline at end of file
wp-admin/menu.php
View file @
deb997c8
...
...
@@ -156,7 +156,7 @@ $appearance_cap = current_user_can( 'switch_themes') ? 'switch_themes' : 'edit_t
$menu
[
60
]
=
array
(
__
(
'Appearance'
),
$appearance_cap
,
'themes.php'
,
''
,
'menu-top menu-icon-appearance'
,
'menu-appearance'
,
'dashicons-admin-appearance'
);