Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
309b03ba
Commit
309b03ba
authored
Sep 15, 2018
by
lucha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wordpress 4.9.8
parent
3f5992e3
Changes
112
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
112 changed files
with
4728 additions
and
4312 deletions
+4728
-4312
wp-admin/about.php
wp-admin/about.php
+23
-2
wp-admin/admin-ajax.php
wp-admin/admin-ajax.php
+1
-0
wp-admin/css/common-rtl.css
wp-admin/css/common-rtl.css
+1
-0
wp-admin/css/common-rtl.min.css
wp-admin/css/common-rtl.min.css
+1
-1
wp-admin/css/common.css
wp-admin/css/common.css
+1
-0
wp-admin/css/common.min.css
wp-admin/css/common.min.css
+1
-1
wp-admin/css/dashboard-rtl.css
wp-admin/css/dashboard-rtl.css
+85
-15
wp-admin/css/dashboard-rtl.min.css
wp-admin/css/dashboard-rtl.min.css
+1
-1
wp-admin/css/dashboard.css
wp-admin/css/dashboard.css
+85
-15
wp-admin/css/dashboard.min.css
wp-admin/css/dashboard.min.css
+1
-1
wp-admin/includes/admin-filters.php
wp-admin/includes/admin-filters.php
+4
-0
wp-admin/includes/ajax-actions.php
wp-admin/includes/ajax-actions.php
+13
-0
wp-admin/includes/class-wp-screen.php
wp-admin/includes/class-wp-screen.php
+22
-1
wp-admin/includes/continents-cities.php
wp-admin/includes/continents-cities.php
+5
-0
wp-admin/includes/dashboard.php
wp-admin/includes/dashboard.php
+149
-0
wp-admin/includes/file.php
wp-admin/includes/file.php
+7
-6
wp-admin/includes/misc.php
wp-admin/includes/misc.php
+23
-0
wp-admin/includes/schema.php
wp-admin/includes/schema.php
+3
-0
wp-admin/includes/template.php
wp-admin/includes/template.php
+14
-0
wp-admin/includes/user.php
wp-admin/includes/user.php
+34
-20
wp-admin/index.php
wp-admin/index.php
+27
-1
wp-admin/js/dashboard.js
wp-admin/js/dashboard.js
+43
-0
wp-admin/js/dashboard.min.js
wp-admin/js/dashboard.min.js
+1
-1
wp-admin/js/updates.js
wp-admin/js/updates.js
+10
-3
wp-admin/js/updates.min.js
wp-admin/js/updates.min.js
+2
-2
wp-admin/options-discussion.php
wp-admin/options-discussion.php
+7
-0
wp-admin/options.php
wp-admin/options.php
+64
-5
wp-admin/plugins.php
wp-admin/plugins.php
+6
-0
wp-admin/privacy.php
wp-admin/privacy.php
+19
-14
wp-content/plugins/akismet/_inc/akismet.css
wp-content/plugins/akismet/_inc/akismet.css
+5
-1
wp-content/plugins/akismet/_inc/akismet.js
wp-content/plugins/akismet/_inc/akismet.js
+10
-1
wp-content/plugins/akismet/akismet.php
wp-content/plugins/akismet/akismet.php
+2
-2
wp-content/plugins/akismet/class.akismet-admin.php
wp-content/plugins/akismet/class.akismet-admin.php
+53
-1
wp-content/plugins/akismet/class.akismet.php
wp-content/plugins/akismet/class.akismet.php
+34
-1
wp-content/plugins/akismet/readme.txt
wp-content/plugins/akismet/readme.txt
+34
-2
wp-content/plugins/akismet/views/config.php
wp-content/plugins/akismet/views/config.php
+12
-1
wp-content/plugins/akismet/views/notice.php
wp-content/plugins/akismet/views/notice.php
+8
-2
wp-content/themes/twentyseventeen/README.txt
wp-content/themes/twentyseventeen/README.txt
+6
-1
wp-content/themes/twentyseventeen/assets/css/editor-style.css
...ontent/themes/twentyseventeen/assets/css/editor-style.css
+3
-3
wp-content/themes/twentyseventeen/style.css
wp-content/themes/twentyseventeen/style.css
+1
-1
wp-includes/capabilities.php
wp-includes/capabilities.php
+69
-84
wp-includes/class-wp-customize-nav-menus.php
wp-includes/class-wp-customize-nav-menus.php
+1
-1
wp-includes/class-wp-editor.php
wp-includes/class-wp-editor.php
+4
-6
wp-includes/class-wp-term-query.php
wp-includes/class-wp-term-query.php
+29
-2
wp-includes/comment-template.php
wp-includes/comment-template.php
+12
-4
wp-includes/comment.php
wp-includes/comment.php
+3
-2
wp-includes/default-filters.php
wp-includes/default-filters.php
+1
-0
wp-includes/formatting.php
wp-includes/formatting.php
+6
-6
wp-includes/functions.php
wp-includes/functions.php
+8
-2
wp-includes/general-template.php
wp-includes/general-template.php
+1
-1
wp-includes/js/tinymce/plugins/charmap/plugin.js
wp-includes/js/tinymce/plugins/charmap/plugin.js
+20
-20
wp-includes/js/tinymce/plugins/colorpicker/plugin.js
wp-includes/js/tinymce/plugins/colorpicker/plugin.js
+2
-2
wp-includes/js/tinymce/plugins/directionality/plugin.js
wp-includes/js/tinymce/plugins/directionality/plugin.js
+7
-7
wp-includes/js/tinymce/plugins/fullscreen/plugin.js
wp-includes/js/tinymce/plugins/fullscreen/plugin.js
+12
-12
wp-includes/js/tinymce/plugins/hr/plugin.js
wp-includes/js/tinymce/plugins/hr/plugin.js
+4
-4
wp-includes/js/tinymce/plugins/image/plugin.js
wp-includes/js/tinymce/plugins/image/plugin.js
+107
-233
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/link/plugin.js
wp-includes/js/tinymce/plugins/link/plugin.js
+54
-54
wp-includes/js/tinymce/plugins/lists/plugin.js
wp-includes/js/tinymce/plugins/lists/plugin.js
+123
-123
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
+65
-65
wp-includes/js/tinymce/plugins/paste/plugin.js
wp-includes/js/tinymce/plugins/paste/plugin.js
+103
-215
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.js
wp-includes/js/tinymce/plugins/tabfocus/plugin.js
+4
-4
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.js
wp-includes/js/tinymce/plugins/textcolor/plugin.js
+21
-21
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
+10
-2
wp-includes/js/tinymce/plugins/wordpress/plugin.min.js
wp-includes/js/tinymce/plugins/wordpress/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
+1
-1
wp-includes/js/tinymce/plugins/wpeditimage/plugin.min.js
wp-includes/js/tinymce/plugins/wpeditimage/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/wplink/plugin.js
wp-includes/js/tinymce/plugins/wplink/plugin.js
+1
-1
wp-includes/js/tinymce/plugins/wplink/plugin.min.js
wp-includes/js/tinymce/plugins/wplink/plugin.min.js
+1
-1
wp-includes/js/tinymce/plugins/wpview/plugin.js
wp-includes/js/tinymce/plugins/wpview/plugin.js
+1
-1
wp-includes/js/tinymce/plugins/wpview/plugin.min.js
wp-includes/js/tinymce/plugins/wpview/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/skin.min.css
wp-includes/js/tinymce/skins/lightgray/skin.min.css
+1
-1
wp-includes/js/tinymce/skins/wordpress/wp-content.css
wp-includes/js/tinymce/skins/wordpress/wp-content.css
+6
-6
wp-includes/js/tinymce/themes/inlite/theme.js
wp-includes/js/tinymce/themes/inlite/theme.js
+1132
-1541
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
+1076
-1485
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
+2
-2
wp-includes/js/tinymce/wp-tinymce.js.gz
wp-includes/js/tinymce/wp-tinymce.js.gz
+0
-0
wp-includes/js/twemoji.js
wp-includes/js/twemoji.js
+2
-2
wp-includes/js/twemoji.min.js
wp-includes/js/twemoji.min.js
+1
-1
wp-includes/js/wp-emoji-loader.js
wp-includes/js/wp-emoji-loader.js
+5
-5
wp-includes/js/wp-emoji-loader.min.js
wp-includes/js/wp-emoji-loader.min.js
+1
-1
wp-includes/js/wp-emoji-release.min.js
wp-includes/js/wp-emoji-release.min.js
+1
-1
wp-includes/link-template.php
wp-includes/link-template.php
+4
-2
wp-includes/meta.php
wp-includes/meta.php
+175
-57
wp-includes/post.php
wp-includes/post.php
+33
-0
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
...st-api/endpoints/class-wp-rest-attachments-controller.php
+118
-47
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
.../rest-api/endpoints/class-wp-rest-comments-controller.php
+65
-21
wp-includes/rest-api/endpoints/class-wp-rest-controller.php
wp-includes/rest-api/endpoints/class-wp-rest-controller.php
+29
-0
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
...-api/endpoints/class-wp-rest-post-statuses-controller.php
+30
-9
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
...est-api/endpoints/class-wp-rest-post-types-controller.php
+43
-12
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
...des/rest-api/endpoints/class-wp-rest-posts-controller.php
+223
-28
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
...rest-api/endpoints/class-wp-rest-revisions-controller.php
+14
-15
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
...est-api/endpoints/class-wp-rest-taxonomies-controller.php
+53
-14
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
...des/rest-api/endpoints/class-wp-rest-terms-controller.php
+14
-11
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
...des/rest-api/endpoints/class-wp-rest-users-controller.php
+19
-19
wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php
...des/rest-api/fields/class-wp-rest-comment-meta-fields.php
+11
-0
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
+20
-1
wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
...cludes/rest-api/fields/class-wp-rest-post-meta-fields.php
+11
-0
wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
...cludes/rest-api/fields/class-wp-rest-term-meta-fields.php
+11
-0
wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php
...cludes/rest-api/fields/class-wp-rest-user-meta-fields.php
+11
-0
wp-includes/taxonomy.php
wp-includes/taxonomy.php
+33
-0
wp-includes/user.php
wp-includes/user.php
+75
-35
wp-includes/version.php
wp-includes/version.php
+2
-2
wp-login.php
wp-login.php
+4
-3
No files found.
wp-admin/about.php
View file @
309b03ba
...
...
@@ -11,7 +11,8 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
wp_enqueue_script
(
'underscore'
);
$title
=
__
(
'About'
);
/* translators: Page title of the About WordPress page in the admin. */
$title
=
_x
(
'About'
,
'page title'
);
list
(
$display_version
)
=
explode
(
'-'
,
get_bloginfo
(
'version'
)
);
...
...
@@ -35,7 +36,27 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<p>
<?php
printf
(
/* translators: 1: WordPress version number, 2: plural number of bugs. */
/* 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.'
,
46
),
'4.9.8'
,
number_format_i18n
(
46
)
);
printf
(
/* translators: %s: Codex URL */
__
(
'For more information, see <a href="%s">the release notes</a>.'
),
'https://codex.wordpress.org/Version_4.9.8'
);
?>
</p>
<p>
<?php
printf
(
/* translators: 1: WordPress version number, 2: plural number of bugs. */
_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.'
,
...
...
wp-admin/admin-ajax.php
View file @
309b03ba
...
...
@@ -67,6 +67,7 @@ $core_actions_post = array(
'get-post-thumbnail-html'
,
'get-community-events'
,
'edit-theme-plugin-file'
,
'wp-privacy-export-personal-data'
,
'wp-privacy-erase-personal-data'
,
'update-try-gutenberg-panel'
,
);
// Deprecated
...
...
wp-admin/css/common-rtl.css
View file @
309b03ba
...
...
@@ -764,6 +764,7 @@ img.emoji {
/* @todo can we combine these into a class or use an existing dashicon one? */
.welcome-panel
.welcome-panel-close
:before
,
.try-gutenberg-panel
.try-gutenberg-panel-close
:before
,
.tagchecklist
.ntdelbutton
.remove-tag-icon
:before
,
#bulk-titles
div
a
:before
,
.notice-dismiss
:before
{
...
...
wp-admin/css/common-rtl.min.css
View file @
309b03ba
This diff is collapsed.
Click to expand it.
wp-admin/css/common.css
View file @
309b03ba
...
...
@@ -764,6 +764,7 @@ img.emoji {
/* @todo can we combine these into a class or use an existing dashicon one? */
.welcome-panel
.welcome-panel-close
:before
,
.try-gutenberg-panel
.try-gutenberg-panel-close
:before
,
.tagchecklist
.ntdelbutton
.remove-tag-icon
:before
,
#bulk-titles
div
a
:before
,
.notice-dismiss
:before
{
...
...
wp-admin/css/common.min.css
View file @
309b03ba
This diff is collapsed.
Click to expand it.
wp-admin/css/dashboard-rtl.css
View file @
309b03ba
...
...
@@ -98,7 +98,8 @@
}
/* Welcome Panel */
.welcome-panel
{
.welcome-panel
,
.try-gutenberg-panel
{
position
:
relative
;
overflow
:
auto
;
margin
:
16px
0
;
...
...
@@ -110,7 +111,8 @@
line-height
:
2.1em
;
}
.welcome-panel
h2
{
.welcome-panel
h2
,
.try-gutenberg-panel
h2
{
margin
:
0
;
font-size
:
21px
;
font-weight
:
400
;
...
...
@@ -122,25 +124,43 @@
font-size
:
16px
;
}
.welcome-panel
li
{
.try-gutenberg-panel
h3
{
margin
:
17px
0
0
;
font-size
:
16px
;
line-height
:
1.4
;
}
.welcome-panel
li
,
.try-gutenberg-panel
li
{
font-size
:
14px
;
}
.welcome-panel
p
{
.welcome-panel
p
,
.try-gutenberg-panel
p
{
color
:
#72777c
;
}
.welcome-panel
a
{
.welcome-panel
a
,
.try-gutenberg-action
a
{
text-decoration
:
none
;
}
.welcome-panel
.about-description
{
.welcome-panel
.about-description
,
.try-gutenberg-panel
.about-description
{
font-size
:
16px
;
margin
:
0
;
}
.welcome-panel
.welcome-panel-close
{
.try-gutenberg-panel-content
hr
{
margin
:
20px
-23px
0
-23px
;
border-top
:
1px
solid
#f3f4f5
;
border-bottom
:
none
;
}
.welcome-panel
.welcome-panel-close
,
.try-gutenberg-panel
.try-gutenberg-panel-close
{
position
:
absolute
;
z-index
:
10
;
top
:
10px
;
left
:
10px
;
padding
:
10px
21px
10px
15px
;
...
...
@@ -149,7 +169,8 @@
text-decoration
:
none
;
}
.welcome-panel
.welcome-panel-close
:before
{
.welcome-panel
.welcome-panel-close
:before
,
.try-gutenberg-panel
.try-gutenberg-panel-close
:before
{
position
:
absolute
;
top
:
8px
;
right
:
0
;
...
...
@@ -164,11 +185,23 @@
white-space
:
normal
;
}
.welcome-panel-content
{
margin-right
:
13px
;
.welcome-panel-content
,
.try-gutenberg-panel-content
{
margin
:
0
13px
;
max-width
:
1500px
;
}
.try-gutenberg-panel
img
{
margin-top
:
23px
;
width
:
calc
(
100%
-
40px
);
border
:
1px
solid
#f3f4f5
;
}
.try-gutenberg-panel
.install-now.updating-message
:before
,
.try-gutenberg-panel
.install-now.updated-message
:before
{
margin-top
:
11px
;
}
.welcome-panel
.welcome-panel-column-container
{
clear
:
both
;
position
:
relative
;
...
...
@@ -180,6 +213,10 @@
float
:
right
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column
>
*
{
padding-left
:
40px
;
}
.ie8
.welcome-panel
.welcome-panel-column
{
min-width
:
230px
;
}
...
...
@@ -188,11 +225,27 @@
width
:
36%
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column-container
{
display
:
-ms-grid
;
display
:
grid
;
-ms-grid-columns
:
36%
32%
32%
;
grid-template-columns
:
36%
32%
32%
;
margin-bottom
:
13px
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column
:not
(
.try-gutenberg-panel-image-column
)
{
display
:
-ms-grid
;
display
:
grid
;
-ms-grid-rows
:
auto
100px
;
grid-template-rows
:
auto
100px
;
}
.welcome-panel-column
p
.hide-if-no-customize
{
margin-top
:
10px
;
}
.welcome-panel-column
p
{
.welcome-panel-column
p
,
.try-gutenberg-panel-column
p
{
margin-top
:
7px
;
color
:
#444
;
}
...
...
@@ -202,7 +255,7 @@
}
.welcome-panel
.welcome-panel-column
ul
{
margin
:
0.8em
0
1em
1em
;
margin
:
0.8em
0
1em
1em
;
}
.welcome-panel
.welcome-panel-column
li
{
...
...
@@ -1207,6 +1260,17 @@ a.rsswidget {
}
}
@media
screen
and
(
max-width
:
1024px
)
{
.try-gutenberg-panel
.try-gutenberg-panel-column-container
{
-ms-grid-columns
:
50%
50%
;
grid-template-columns
:
50%
50%
;
}
.try-gutenberg-panel
.try-gutenberg-panel-image-column
{
display
:
none
;
}
}
@media
screen
and
(
max-width
:
870px
)
{
.welcome-panel
.welcome-panel-column
,
.welcome-panel
.welcome-panel-column
:first-child
{
...
...
@@ -1215,6 +1279,11 @@ a.rsswidget {
width
:
100%
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column-container
{
-ms-grid-columns
:
100%
;
grid-template-columns
:
100%
;
}
.welcome-panel
.welcome-panel-column
li
{
display
:
inline-block
;
margin-left
:
13px
;
...
...
@@ -1223,7 +1292,6 @@ a.rsswidget {
.welcome-panel
.welcome-panel-column
ul
{
margin
:
0.4em
0
0
;
}
}
@media
screen
and
(
max-width
:
782px
)
{
...
...
@@ -1266,7 +1334,8 @@ a.rsswidget {
/* Smartphone */
@media
screen
and
(
max-width
:
600px
)
{
/* Keep the close icon from overlapping the Welcome text. */
.welcome-panel
.welcome-panel-close
{
.welcome-panel
.welcome-panel-close
,
.try-gutenberg-panel
.try-gutenberg-panel-close
{
overflow
:
hidden
;
text-indent
:
40px
;
white-space
:
nowrap
;
...
...
@@ -1278,7 +1347,8 @@ a.rsswidget {
}
/* Make the close icon larger for tappability. */
.welcome-panel
.welcome-panel-close
:before
{
.welcome-panel
.welcome-panel-close
:before
,
.try-gutenberg-panel
.try-gutenberg-panel-close
:before
{
font-size
:
20px
;
top
:
5px
;
right
:
-35px
;
...
...
wp-admin/css/dashboard-rtl.min.css
View file @
309b03ba
This diff is collapsed.
Click to expand it.
wp-admin/css/dashboard.css
View file @
309b03ba
...
...
@@ -98,7 +98,8 @@
}
/* Welcome Panel */
.welcome-panel
{
.welcome-panel
,
.try-gutenberg-panel
{
position
:
relative
;
overflow
:
auto
;
margin
:
16px
0
;
...
...
@@ -110,7 +111,8 @@
line-height
:
2.1em
;
}
.welcome-panel
h2
{
.welcome-panel
h2
,
.try-gutenberg-panel
h2
{
margin
:
0
;
font-size
:
21px
;
font-weight
:
400
;
...
...
@@ -122,25 +124,43 @@
font-size
:
16px
;
}
.welcome-panel
li
{
.try-gutenberg-panel
h3
{
margin
:
17px
0
0
;
font-size
:
16px
;
line-height
:
1.4
;
}
.welcome-panel
li
,
.try-gutenberg-panel
li
{
font-size
:
14px
;
}
.welcome-panel
p
{
.welcome-panel
p
,
.try-gutenberg-panel
p
{
color
:
#72777c
;
}
.welcome-panel
a
{
.welcome-panel
a
,
.try-gutenberg-action
a
{
text-decoration
:
none
;
}
.welcome-panel
.about-description
{
.welcome-panel
.about-description
,
.try-gutenberg-panel
.about-description
{
font-size
:
16px
;
margin
:
0
;
}
.welcome-panel
.welcome-panel-close
{
.try-gutenberg-panel-content
hr
{
margin
:
20px
-23px
0
-23px
;
border-top
:
1px
solid
#f3f4f5
;
border-bottom
:
none
;
}
.welcome-panel
.welcome-panel-close
,
.try-gutenberg-panel
.try-gutenberg-panel-close
{
position
:
absolute
;
z-index
:
10
;
top
:
10px
;
right
:
10px
;
padding
:
10px
15px
10px
21px
;
...
...
@@ -149,7 +169,8 @@
text-decoration
:
none
;
}
.welcome-panel
.welcome-panel-close
:before
{
.welcome-panel
.welcome-panel-close
:before
,
.try-gutenberg-panel
.try-gutenberg-panel-close
:before
{
position
:
absolute
;
top
:
8px
;
left
:
0
;
...
...
@@ -164,11 +185,23 @@
white-space
:
normal
;
}
.welcome-panel-content
{
margin-left
:
13px
;
.welcome-panel-content
,
.try-gutenberg-panel-content
{
margin
:
0
13px
;
max-width
:
1500px
;
}
.try-gutenberg-panel
img
{
margin-top
:
23px
;
width
:
calc
(
100%
-
40px
);
border
:
1px
solid
#f3f4f5
;
}
.try-gutenberg-panel
.install-now.updating-message
:before
,
.try-gutenberg-panel
.install-now.updated-message
:before
{
margin-top
:
11px
;
}
.welcome-panel
.welcome-panel-column-container
{
clear
:
both
;
position
:
relative
;
...
...
@@ -180,6 +213,10 @@
float
:
left
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column
>
*
{
padding-right
:
40px
;
}
.ie8
.welcome-panel
.welcome-panel-column
{
min-width
:
230px
;
}
...
...
@@ -188,11 +225,27 @@
width
:
36%
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column-container
{
display
:
-ms-grid
;
display
:
grid
;
-ms-grid-columns
:
36%
32%
32%
;
grid-template-columns
:
36%
32%
32%
;
margin-bottom
:
13px
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column
:not
(
.try-gutenberg-panel-image-column
)
{
display
:
-ms-grid
;
display
:
grid
;
-ms-grid-rows
:
auto
100px
;
grid-template-rows
:
auto
100px
;
}
.welcome-panel-column
p
.hide-if-no-customize
{
margin-top
:
10px
;
}
.welcome-panel-column
p
{
.welcome-panel-column
p
,
.try-gutenberg-panel-column
p
{
margin-top
:
7px
;
color
:
#444
;
}
...
...
@@ -202,7 +255,7 @@
}
.welcome-panel
.welcome-panel-column
ul
{
margin
:
0.8em
1em
1em
0
;
margin
:
0.8em
1em
1em
0
;
}
.welcome-panel
.welcome-panel-column
li
{
...
...
@@ -1207,6 +1260,17 @@ a.rsswidget {
}
}
@media
screen
and
(
max-width
:
1024px
)
{
.try-gutenberg-panel
.try-gutenberg-panel-column-container
{
-ms-grid-columns
:
50%
50%
;
grid-template-columns
:
50%
50%
;
}
.try-gutenberg-panel
.try-gutenberg-panel-image-column
{
display
:
none
;
}
}
@media
screen
and
(
max-width
:
870px
)
{
.welcome-panel
.welcome-panel-column
,
.welcome-panel
.welcome-panel-column
:first-child
{
...
...
@@ -1215,6 +1279,11 @@ a.rsswidget {
width
:
100%
;
}
.try-gutenberg-panel
.try-gutenberg-panel-column-container
{
-ms-grid-columns
:
100%
;
grid-template-columns
:
100%
;
}
.welcome-panel
.welcome-panel-column
li
{
display
:
inline-block
;
margin-right
:
13px
;
...
...
@@ -1223,7 +1292,6 @@ a.rsswidget {
.welcome-panel
.welcome-panel-column
ul
{
margin
:
0.4em
0
0
;
}
}
@media
screen
and
(
max-width
:
782px
)
{
...
...
@@ -1266,7 +1334,8 @@ a.rsswidget {
/* Smartphone */
@media
screen
and
(
max-width
:
600px
)
{
/* Keep the close icon from overlapping the Welcome text. */
.welcome-panel
.welcome-panel-close
{
.welcome-panel
.welcome-panel-close
,
.try-gutenberg-panel
.try-gutenberg-panel-close
{
overflow
:
hidden
;
text-indent
:
40px
;
white-space
:
nowrap
;
...
...
@@ -1278,7 +1347,8 @@ a.rsswidget {
}
/* Make the close icon larger for tappability. */
.welcome-panel
.welcome-panel-close
:before
{
.welcome-panel
.welcome-panel-close
:before
,
.try-gutenberg-panel
.try-gutenberg-panel-close
:before
{
font-size
:
20px
;
top
:
5px
;
left
:
-35px
;
...
...
wp-admin/css/dashboard.min.css
View file @
309b03ba
This diff is collapsed.
Click to expand it.
wp-admin/includes/admin-filters.php
View file @
309b03ba
...
...
@@ -47,6 +47,8 @@ add_action( 'admin_head', '_ipad_meta' );
// Privacy tools
add_action
(
'admin_menu'
,
'_wp_privacy_hook_requests_page'
);
add_action
(
'load-tools_page_export_personal_data'
,
'_wp_privacy_requests_screen_options'
);
add_action
(
'load-tools_page_remove_personal_data'
,
'_wp_privacy_requests_screen_options'
);
// Prerendering.
if
(
!
is_customize_preview
()
)
{
...
...
@@ -150,3 +152,5 @@ add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'add_suggested_con
// Update the cached policy info when the policy page is updated.
add_action
(
'post_updated'
,
array
(
'WP_Privacy_Policy_Content'
,
'_policy_page_updated'
)
);
// Append '(Draft)' to draft page titles in the privacy page dropdown.
add_filter
(
'list_pages'
,
'_wp_privacy_settings_filter_draft_page_titles'
,
10
,
2
);
wp-admin/includes/ajax-actions.php
View file @
309b03ba
...
...
@@ -1484,6 +1484,19 @@ function wp_ajax_update_welcome_panel() {
wp_die
(
1
);
}
/**
* Ajax handler for updating whether to display the Try Gutenberg panel.
*
* @since 4.9.8
*/
function
wp_ajax_update_try_gutenberg_panel
()
{
check_ajax_referer
(
'try-gutenberg-panel-nonce'
,
'trygutenbergpanelnonce'
);
update_user_meta
(
get_current_user_id
(),
'show_try_gutenberg_panel'
,
empty
(
$_POST
[
'visible'
]
)
?
0
:
1
);
wp_die
(
1
);
}
/**
* Ajax handler for retrieving menu meta boxes.
*
...
...
wp-admin/includes/class-wp-screen.php
View file @
309b03ba
...
...
@@ -1020,7 +1020,10 @@ final class WP_Screen {
update_user_meta
(
get_current_user_id
(),
'show_welcome_panel'
,
$welcome_checked
);
}
else
{
$welcome_checked
=
get_user_meta
(
get_current_user_id
(),
'show_welcome_panel'
,
true
);
if
(
2
==
$welcome_checked
&&
wp_get_current_user
()
->
user_email
!=
get_option
(
'admin_email'
)
)
{
if
(
''
===
$welcome_checked
)
{
$welcome_checked
=
'1'
;
}
if
(
'2'
===
$welcome_checked
&&
wp_get_current_user
()
->
user_email
!=
get_option
(
'admin_email'
)
)
{
$welcome_checked
=
false
;
}
}
...
...
@@ -1028,6 +1031,24 @@ final class WP_Screen {
echo
'<input type="checkbox" id="wp_welcome_panel-hide"'
.
checked
(
(
bool
)
$welcome_checked
,
true
,
false
)
.
' />'
;
echo
_x
(
'Welcome'
,
'Welcome panel'
)
.
"</label>
\n
"
;
}
if
(
'dashboard'
===
$this
->
id
&&
has_action
(
'try_gutenberg_panel'
)
)
{
if
(
isset
(
$_GET
[
'try_gutenberg'
]
)
)
{
$try_gutenberg_checked
=
empty
(
$_GET
[
'try_gutenberg'
]
)
?
0
:
1
;
update_user_meta
(
get_current_user_id
(),
'show_try_gutenberg_panel'
,
$try_gutenberg_checked
);
}
else
{
$try_gutenberg_checked
=
get_user_meta
(
get_current_user_id
(),
'show_try_gutenberg_panel'
,
true
);
if
(
''
===
$try_gutenberg_checked
)
{
$try_gutenberg_checked
=
'1'
;
}
if
(
'2'
===
$try_gutenberg_checked
&&
wp_get_current_user
()
->
user_email
!=
get_option
(
'admin_email'
)
)
{
$try_gutenberg_checked
=
false
;
}
}
echo
'<label for="wp_try_gutenberg_panel-hide">'
;
echo
'<input type="checkbox" id="wp_try_gutenberg_panel-hide"'
.
checked
(
(
bool
)
$try_gutenberg_checked
,
true
,
false
)
.
' />'
;
echo
__
(
'New Editor'
)
.
"</label>
\n
"
;
}
?>
</fieldset>
<?php
...
...
wp-admin/includes/continents-cities.php
View file @
309b03ba
...
...
@@ -201,6 +201,7 @@ __('Port-au-Prince', 'continents-cities');
__
(
'Porto Acre'
,
'continents-cities'
);
__
(
'Porto Velho'
,
'continents-cities'
);
__
(
'Puerto Rico'
,
'continents-cities'
);
__
(
'Punta Arenas'
,
'continents-cities'
);
__
(
'Rainy River'
,
'continents-cities'
);
__
(
'Rankin Inlet'
,
'continents-cities'
);
__
(
'Recife'
,
'continents-cities'
);
...
...
@@ -262,6 +263,7 @@ __('Aqtau', 'continents-cities');
__
(
'Aqtobe'
,
'continents-cities'
);
__
(
'Ashgabat'
,
'continents-cities'
);
__
(
'Ashkhabad'
,
'continents-cities'
);
__
(
'Atyrau'
,
'continents-cities'
);
__
(
'Baghdad'
,
'continents-cities'
);
__
(
'Bahrain'
,
'continents-cities'
);
__
(
'Baku'
,
'continents-cities'
);
...
...
@@ -282,6 +284,7 @@ __('Dhaka', 'continents-cities');
__
(
'Dili'
,
'continents-cities'
);
__
(
'Dubai'
,
'continents-cities'
);
__
(
'Dushanbe'
,
'continents-cities'
);
__
(
'Famagusta'
,
'continents-cities'
);
__
(
'Gaza'
,
'continents-cities'
);
__
(
'Harbin'
,
'continents-cities'
);
__
(
'Hebron'
,
'continents-cities'
);
...
...
@@ -347,6 +350,7 @@ __('Ust-Nera', 'continents-cities');
__
(
'Vientiane'
,
'continents-cities'
);
__
(
'Vladivostok'
,
'continents-cities'
);
__
(
'Yakutsk'
,
'continents-cities'
);
__
(
'Yangon'
,
'continents-cities'
);
__
(
'Yekaterinburg'
,
'continents-cities'
);
__
(
'Yerevan'
,
'continents-cities'
);
...
...
@@ -471,6 +475,7 @@ __('Rome', 'continents-cities');