Advertisement
Hectorss1

Untitled

Mar 13th, 2020
1,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.37 KB | None | 0 0
  1. <?php
  2. /**
  3. * About This Version administration panel.
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8.  
  9. /** WordPress Administration Bootstrap */
  10. require_once __DIR__ . '/admin.php';
  11.  
  12. /* translators: Page title of the About WordPress page in the admin. */
  13. $title = _x( 'About', 'page title' );
  14.  
  15. list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
  16.  
  17. require_once ABSPATH . 'wp-admin/admin-header.php';
  18. ?>
  19. <div class="wrap about__container">
  20.  
  21. <div class="about__header">
  22. <div class="about__header-title">
  23. <h1>
  24. <span><?php echo $display_version; ?></span>
  25. <?php _e( 'WordPress' ); ?>
  26. </h1>
  27. </div>
  28.  
  29. <div class="about__header-badge"></div>
  30.  
  31. <div class="about__header-text">
  32. <p>
  33. <?php _e( 'Building more with blocks, faster and easier.' ); ?>
  34. </p>
  35. </div>
  36.  
  37. <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  38. <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
  39. <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
  40. <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
  41. <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  42. </nav>
  43. </div>
  44.  
  45. <div class="about__section is-feature">
  46. <?php _e( 'Say hello to more and better.' ); ?>
  47. <br />
  48. <?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever&mdash;and boosts in speed you can feel.' ); ?>
  49. </div>
  50.  
  51. <div class="about__section is-feature">
  52. <p>
  53. <?php
  54. printf(
  55. /* translators: %s: The current WordPress version number. */
  56. __( 'Welcome to WordPress %s.' ),
  57. $display_version
  58. );
  59. ?>
  60. </p>
  61. <p>
  62. <?php _e( 'Every major release adds more to the block editor.' ); ?>
  63. </p>
  64. <p>
  65. <?php _e( 'More ways to make posts and pages come alive with your best images.' ); ?>
  66. </p>
  67. <p>
  68. <?php _e( 'More ways to bring your visitors in, and keep them engaged, with the richness of embedded media from the web&#8217;s top services.' ); ?>
  69. </p>
  70. <p>
  71. <?php _e( 'More ways to make your vision real, and put blocks in the perfect place&mdash;even if a particular kind of block is new to you. More efficient processes.' ); ?>
  72. </p>
  73. <p>
  74. <?php _e( 'And more speed everywhere, so as you build sections or galleries, or just type in a line of prose, you can feel how much faster your work flows.' ); ?>
  75. </p>
  76. </div>
  77.  
  78. <hr />
  79.  
  80. <div class="about__section has-2-columns">
  81. <div class="column is-edge-to-edge has-accent-background-color">
  82. <div class="about__image aligncenter">
  83. <img src="data:image/svg+xml;charset=utf8,%3Csvg width='660' height='818' viewbox='0 0 660 818' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='99' y='178' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='231' y='310' width='99' height='99' fill='%2344141E'/%3E%3Crect x='330' y='409' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='462' y='541' width='99' height='99' fill='%2344141E'/%3E%3C/svg%3E" alt="" />
  84. </div>
  85. </div>
  86. <div class="column is-vertically-aligned-center">
  87. <h2><?php _e( 'Two new blocks. And better blocks overall.' ); ?></h2>
  88. <ul>
  89. <li><?php _e( 'Two brand-new blocks: Social Icons and Buttons make adding interactive features fast and easy.' ); ?></li>
  90. <li><?php _e( 'New ways with color: Gradients in the Buttons and Cover block, toolbar access to color options in Rich Text blocks, and for the first time, color options in the Group and Columns blocks.' ); ?></li>
  91. <li><?php _e( 'Guess a whole lot less! Version 5.4 streamlines the whole process for placing and replacing multimedia in every block. Now it works the same way in almost every block!' ); ?></li>
  92. <li><?php _e( 'And if you&#8217;ve ever thought your image in the Media+Text block should link to something else&mdash;perhaps a picture of a brochure should download that brochure as a document? Well, now it can.' ); ?></li>
  93. </ul>
  94. </div>
  95. </div>
  96.  
  97. <div class="about__section has-2-columns">
  98. <div class="column is-vertically-aligned-center">
  99. <h2><?php _e( 'Cleaner UI, clearer navigation—and easier tabbing!' ); ?></h2>
  100. <ul>
  101. <li><?php _e( 'Clearer block navigation with block breadcrumbs. And easier selection once you get there.' ); ?></li>
  102. <li><?php _e( 'For when you need to navigate with the keyboard, better tabbing and focus. Plus, you can tab over to the sidebar of nearly any block.' ); ?></li>
  103. <li><?php _e( 'Speed! 14% faster loading of the editor, 51% faster time-to-type!' ); ?></li>
  104. <li><?php _e( 'Tips are gone. In their place, a Welcome Guide window you can bring up when you need it&mdash;and only when you need it&mdash;again and again.' ); ?></li>
  105. <li><?php _e( 'Know at a glance whether you&#8217;re in a block&#8217;s Edit or Navigation mode. Or, if you have restricted vision, your screen reader will tell you which mode you&#8217;re in.' ); ?></li>
  106. </ul>
  107. <p><?php _e( 'Of course, if you want to work with the very latest tools and features, install the <a href="https://wordpress.org/plugins/gutenberg/">Gutenberg plugin</a>. You&#8217;ll get to be the first to use new and exciting features in the block editor, before anyone else has seen them!' ); ?></p>
  108. </div>
  109. <div class="column is-edge-to-edge has-accent-background-color">
  110. <div class="about__image aligncenter">
  111. <img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='75' y='200' width='150' height='75' fill='%2344141E'/%3E%3Crect x='175' y='75' width='50' height='100' fill='%2385273B'/%3E%3Crect x='75' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='250' y='200' width='175' height='75' fill='%2344141E'/%3E%3Crect x='350' y='75' width='75' height='100' fill='%2385273B'/%3E%3Crect x='250' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='75' y='375' width='150' height='50' fill='%2344141E'/%3E%3Crect x='175' y='300' width='50' height='50' fill='%2385273B'/%3E%3Crect x='75' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3Crect x='250' y='372.5' width='175' height='52.5' fill='%2344141E'/%3E%3Crect x='350' y='300' width='75' height='50' fill='%2385273B'/%3E%3Crect x='250' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3C/svg%3E%0A" alt="">
  112. </div>
  113. </div>
  114. </div>
  115.  
  116. <div class="about__section has-2-columns">
  117. <div class="column is-edge-to-edge has-accent-background-color">
  118. <div class="about__image aligncenter">
  119. <img src="data:image/svg+xml;charset=utf8,%3Csvg width='660' height='818' viewbox='0 0 660 818' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='99' y='178' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='231' y='310' width='99' height='99' fill='%2344141E'/%3E%3Crect x='330' y='409' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='462' y='541' width='99' height='99' fill='%2344141E'/%3E%3C/svg%3E" alt="" />
  120. </div>
  121. </div>
  122. <div class="column is-vertically-aligned-center">
  123. <h2><?php _e( 'Your fundamental right: privacy' ); ?></h2>
  124. <p><?php _e( '5.4 helps with a variety of privacy issues around the world. So when users and stakeholders ask about regulatory compliance, or how your team handles user data, the answers should be a lot easier to get right.' ); ?></p>
  125. <p><?php _e( 'Take a look:' ); ?></p>
  126. <ul>
  127. <li><?php _e( 'Now personal data exports include users session information and users location data from the community events widget. Plus, a table of contents!' ); ?></li>
  128. <li><?php _e( 'See progress as you process export and erasure requests through the privacy tools.' ); ?></li>
  129. <li><?php _e( 'Plus, little enhancements throughout give the privacy tools a little cleaner look. Your eyes will thank you!' ); ?></li>
  130. </ul>
  131. </div>
  132. </div>
  133.  
  134. <hr />
  135.  
  136. <div class="about__section has-2-columns has-subtle-background-color">
  137. <h2 class="is-section-header"><?php _e( 'Just for developers' ); ?></h2>
  138.  
  139. <div class="column">
  140. <h3><?php _e( 'Add custom fields to menu items—natively' ); ?></h3>
  141. <p>
  142. <?php _e( 'Two new actions let you add custom fields to menu items&mdash;without a plugin and without writing custom walkers.' ); ?>
  143. </p>
  144. <p>
  145. <?php
  146. printf(
  147. /* translators: %s: 'wp_nav_menu_item_custom_fields' action name. */
  148. __( 'On the Menus admin screen, %s fires just before the move buttons of a nav menu item in the menu editor.' ),
  149. '<code>wp_nav_menu_item_custom_fields</code>'
  150. );
  151. ?>
  152. </p>
  153. <p>
  154. <?php
  155. printf(
  156. /* translators: %s: 'wp_nav_menu_item_custom_fields_customize_template' action name. */
  157. __( 'In the Customizer, %s fires at the end of the menu-items form-fields template.' ),
  158. '<code>wp_nav_menu_item_custom_fields_customize_template</code>'
  159. );
  160. ?>
  161. </p>
  162. <p>
  163. <?php _e( 'Check your code and see where these new actions can replace your custom code, and if you&#8217;re concerned about duplication, add a check for the WordPress version.' ); ?>
  164. </p>
  165. </div>
  166. <div class="column">
  167. <h3><?php _e( 'Blocks! Simpler styling, new APIs and embeds' ); ?></h3>
  168. <ul>
  169. <li><?php _e( '<strong>Radically</strong> simpler block styling. Negative margins and default padding are gone! Now you can style blocks the way you need them. And, a refactor got rid of four redundant wrapper divs.' ); ?></li>
  170. <li><?php _e( 'If you build plugins, now you can register collections of your blocks by namespace across categories—a great way to get more brand visibility.' ); ?></li>
  171. <li><?php _e( 'Let users do more with two new APIs: block variations and gradients.' ); ?></li>
  172. <li><?php _e( 'In embeds, now the block editor supports TikTok—and CollegeHumor is gone.' ); ?></li>
  173. </ul>
  174. </div>
  175. </div>
  176.  
  177. <div class="about__section is-feature">
  178. <p>
  179. <?php
  180. printf(
  181. /* translators: %s: WordPress 5.4 Field Guide link. */
  182. __( 'There&#8217;s lots more for developers to love in WordPress 5.4. To discover more and learn how to make these changes shine on your on your sites, themes, plugins and more, check the <a href="%s">WordPress 5.4 Field Guide</a>.' ),
  183. 'https://make.wordpress.org/core/?p=80034'
  184. );
  185. ?>
  186. </p>
  187. </div>
  188.  
  189. <hr />
  190.  
  191. <div class="return-to-dashboard">
  192. <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
  193. <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
  194. <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
  195. </a> |
  196. <?php endif; ?>
  197. <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
  198. </div>
  199. </div>
  200. <?php
  201.  
  202. require_once ABSPATH . 'wp-admin/admin-footer.php';
  203.  
  204. // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
  205. return;
  206.  
  207. __( 'Maintenance Release' );
  208. __( 'Maintenance Releases' );
  209.  
  210. __( 'Security Release' );
  211. __( 'Security Releases' );
  212.  
  213. __( 'Maintenance and Security Release' );
  214. __( 'Maintenance and Security Releases' );
  215.  
  216. /* translators: %s: WordPress version number. */
  217. __( '<strong>Version %s</strong> addressed one security issue.' );
  218. /* translators: %s: WordPress version number. */
  219. __( '<strong>Version %s</strong> addressed some security issues.' );
  220.  
  221. /* translators: 1: WordPress version number, 2: Plural number of bugs. */
  222. _n_noop(
  223. '<strong>Version %1$s</strong> addressed %2$s bug.',
  224. '<strong>Version %1$s</strong> addressed %2$s bugs.'
  225. );
  226.  
  227. /* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */
  228. _n_noop(
  229. '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
  230. '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
  231. );
  232.  
  233. /* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
  234. _n_noop(
  235. '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
  236. '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
  237. );
  238.  
  239. /* translators: %s: Documentation URL. */
  240. __( 'For more information, see <a href="%s">the release notes</a>.' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement