This plugin is a WordPress core feature-plugin proposed for WordPress 4.2.
此插件是为WordPress 4.2建议的WordPress核心功能插件。
The goal is to bring theme-browsing and theme-switching into the Customizer to streamline the themes experience.
目的是将主题浏览和主题切换引入定制器,以简化主题体验。 p>
The current status is extremely basic code-wise, but implements most of what’s available on the themes admin page.
当前状态是极其基本的代码方式,但是实现了主题管理页面上可用的大部分功能。
See our posts on Make WordPress Core for more info.
有关更多信息,请参见我们的关于使WordPress成为核心的帖子。 p>
If you're interested in contributing to this project, ping @celloexpressions on WordPress core Slack.
如果您有兴趣为这个项目做贡献,请在 WordPress核心Slack 上ping @celloexpressions。 p>
p>
>
Core Merge Notes
核心合并说明 h3>
= UX =
= UX =
* Remove #customize-info for theme previews.
*删除#customize-info进行主题预览。
* Change front-end admin bar Themes link to point to themes in the Customizer (deep-linked).
*更改前端管理栏的主题链接,以指向定制程序中的主题(深链接)。
* When a new theme is activated, go to the home page (front end), not the themes admin.
*激活新主题后,请转到主页(前端),而不是主题管理员。
* If user doesn’t confirm
that they want to leave unsaved changes, remove customize-loading body class (requires core patch).
*如果用户不确认 code>要保留未保存的更改,则删除自定义加载正文类(需要核心补丁)。 p>Code
代码 h4>
- See inline comments.
- 查看嵌入式注释。 li>
- Move custom section and control to
class-wp-customize-control|section.php
in wp-includes
. - 将自定义部分和控件移至
wp-includes code>中的 class-wp-customize-control | section.php code>。 li>- Merge all CSS into customize-controls.css, scope to
.wp-customizer
. - 将所有CSS合并到custom-controls.css中,范围为
.wp-customizer code>。 li>- Move
.themes-panel-back
to the Customizer header, adjust JS accordingly. - 将
.themes-panel-back code>移至Customizer标题,相应地调整JS。 li>- Merge JS into
customizer-controls.js
, after the respective object types. 在相应对象类型之后,
- 将JS合并到
customizer-controls.js code>中。 li>- Merge remaining PHP (all in Customize Register callback) into
register_controls()
in class-wp-customize-manager.php
. - 将剩余的PHP(全部在Customize Register回调中)合并到
class-wp-customize-manager.php code>中的 register_controls() code>中。 li>- Account for https://core.trac.wordpress.org/ticket/26611
- https://core.trac.wordpress.org/ticket/26611的帐户 li>
ul>