WordPress 4.3.1
[autoinstalls/wordpress.git] / wp-admin / about.php
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( dirname( __FILE__ ) . '/admin.php' );
11
12 wp_enqueue_style( 'wp-mediaelement' );
13 wp_enqueue_script( 'wp-mediaelement' );
14 wp_localize_script( 'mediaelement', '_wpmejsSettings', array(
15         'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
16         'pauseOtherPlayers' => ''
17 ) );
18
19 $title = __( 'About' );
20
21 list( $display_version ) = explode( '-', $wp_version );
22
23 include( ABSPATH . 'wp-admin/admin-header.php' );
24
25 $video_url = 'https://videopress.com/embed/T54Iy7Tw';
26 $locale    = str_replace( '_', '-', get_locale() );
27 if ( 'en-AU' !== $locale ) {
28         list( $locale ) = explode( '-', $locale );
29 }
30 if ( 'en' !== $locale ) {
31         $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url );
32 }
33
34 $major_features = array(
35         array(
36                 'src'         => array(
37                         'mp4'  => '//s.w.org/images/core/4.3/formatting.mp4',
38                         'ogv'  => '//s.w.org/images/core/4.3/formatting.ogv',
39                         'webm' => '//s.w.org/images/core/4.3/formatting.webm',
40                 ),
41                 'heading'     => __( 'Formatting Shortcuts' ),
42                 /* Translators: 1: asterisks; 2: number sign; */
43                 'description' => sprintf( __( 'Your writing flow just got faster with new formatting shortcuts in WordPress 4.3. Use asterisks to create lists and number signs to make a heading. No more breaking your flow; your text looks great with a %1$s and a %2$s.' ), '<code>*</code>', '<code>#</code>' ),
44         ),
45         array(
46                 'src'         => '//s.w.org/images/core/4.3/menu-customizer.png',
47                 'heading'     => __( 'Menus in the Customizer' ),
48                 'description' => __( 'Create your menu, update it, and assign it, all while live-previewing in the customizer. The streamlined customizer design provides a mobile-friendly and accessible interface. With every release, it becomes easier and faster to make your site just the way you want it.' ),
49         ),
50         array(
51                 'src'         => '//s.w.org/images/core/4.3/better-passwords.png',
52                 'heading'     => __( 'Better Passwords' ),
53                 'description' => __( 'Keep your site more secure with WordPress&#8217; improved approach to passwords. Instead of receiving passwords via email, you&#8217;ll get a password reset link. When you add new users to your site or edit a user profile, WordPress will automatically generate a secure password.' ),
54         ),
55         array(
56                 'src'         => '//s.w.org/images/core/4.3/site-icon-customizer.png',
57                 'heading'     => __( 'Site Icons' ),
58                 'description' => __( 'Site icons represent your site in browser tabs, bookmark menus, and on the home screen of mobile devices. Add your unique site icon in the customizer; it will even stay in place when you switch themes. Make your whole site reflect your brand.' ),
59         ),
60 );
61 shuffle( $major_features );
62
63 $minor_features = array(
64         array(
65                 'src'         => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBmaWxsPSIjMDBhMGQyIiBkPSJNNTAgMjE1aDI0MHYzMEg1MHpNNTAgMjc1aDI0MHYzMEg1MHpNNTAgMTU1aDI0MHYzMEg1MHpNNTAgOTVoMjQwdjMwSDUwek0zMTAuMSA5NWwxOS45IDMwIDIwLjEtMzAiLz48L3N2Zz4=',
66                 'heading'     => __( 'A smoother admin experience' ),
67                 'description' => __( 'Refinements to the list view across the admin make your WordPress more accessible and easier to work with on any device.' ),
68         ),
69         array(
70                 'src'         => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iIzAwYTBkMiIgZD0iTTUgMmgxMHEuODIgMCAxLjQxLjU5VDE3IDR2OHEwIC44Mi0uNTkgMS40MVQxNSAxNGgtMmwtNSA1di01SDVxLS44MiAwLTEuNDEtLjU5VDMgMTJWNHEwLS44Mi41OS0xLjQxVDUgMnptOC41IDguNUwxMSA4bDIuNS0yLjUtMS0xTDEwIDcgNy41IDQuNWwtMSAxTDkgOGwtMi41IDIuNSAxIDFMMTAgOWwyLjUgMi41eiIvPjwvc3ZnPg==',
71                 'heading'     => __( 'Comments turned off on pages' ),
72                 'description' => __( 'All new pages that you create will have comments turned off. Keep discussions to your blog, right where they&#8217;re supposed to happen.' ),
73         ),
74         array(
75                 'src'         => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZmlsbD0iIzAwYTBkMiIgZD0iTTI5LjMyOCA1LjcxMnEuMDQ4LS4xNDQuMDk2LS4zODR0LS4wNjQtLjgxNi0uNTI4LS45NzZxLS4zODQtLjM2OC0uODcyLS40NjR0LS43OTIgMGwtLjI4OC4wOHEtMS40NTYuNzItNS44OCAzLjczNnQtNi4zOTIgNS4xNzZxLS43MzYuODMyLTEuNDA4IDIuMzJ0LS44OCAzIC41NDQgMi4zOTJxLjgzMi43MzYgMi4zNDQuNTc2dDMuMDcyLS44MjQgMi4yNDgtMS4zNTJxMi4xNDQtMi4xNDQgNS4xNjgtNi42NTZ0My42MzItNS44MDh6TTIuMjQgMjguMjRxMS4wNTYtLjY4OCAxLjcxMi0xLjUyOHQuOTUyLTEuNjE2LjU0NC0xLjUyLjcyLTEuNDggMS4yNC0xLjI4cTEuMDg4LS44IDIuNTA0LS43MDR0Mi40MjQgMS4xNjhxLjgxNi44OC44MjQgMi42NHQtMS4wOCAyLjg5NnEtMS4yMTYgMS4xMi0yLjkwNCAxLjYyNHQtMy40MjQuNDI0LTMuNTEyLS42MjR6Ii8+PC9zdmc+',
76                 'heading'     => __( 'Customize your site quickly' ),
77                 'description' => __( 'Wherever you are on the front-end, you can click the customize link in the toolbar to swiftly make changes to your site.' ),
78         ),
79 );
80
81 $tech_features = array(
82         array(
83                 'heading'     => __( 'Taxonomy Roadmap' ),
84                 'description' => __( 'Terms shared across multiple taxonomies are now split into separate terms.' ),
85         ),
86         array(
87                 'heading'     => __( 'Template Hierarchy' ),
88                 /* Translators: 1: singular.php; 2: single.php; 3:page.php */
89                 'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>' ),
90         ),
91         array(
92                 'heading'     => '<code>WP_List_Table</code>',
93                 'description' => __( 'List tables can and should designate a primary column.' ),
94         ),
95 );
96
97 ?>
98         <div class="wrap about-wrap">
99                 <h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
100
101                 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes it even easier to format your content and customize your site.' ), $display_version ); ?></div>
102                 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
103
104                 <h2 class="nav-tab-wrapper">
105                         <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
106                         <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
107                         <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
108                 </h2>
109
110                 <div class="changelog point-releases">
111                         <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 1 ); ?></h3>
112                         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
113                          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 26 ), '4.3.1', number_format_i18n( 26 ) ); ?>
114                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_4.3.1' ); ?>
115                         </p>
116                 </div>
117
118                 <div class="headline-feature feature-video">
119                         <iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
120                         <script src="https://videopress.com/videopress-iframe.js"></script>
121                 </div>
122
123                 <hr/>
124
125                 <div class="feature-section two-col">
126                         <?php foreach ( $major_features as $feature ) : ?>
127                         <div class="col">
128                                 <div class="media-container">
129                                         <?php
130                                         // Video.
131                                         if ( is_array( $feature['src'] ) ) :
132                                                 echo wp_video_shortcode( array(
133                                                         'mp4'      => $feature['src']['mp4'],
134                                                         'ogv'      => $feature['src']['ogv'],
135                                                         'webm'     => $feature['src']['webm'],
136                                                         'loop'     => true,
137                                                         'autoplay' => true,
138                                                         'width'    => 500,
139                                                         'height'   => 284
140                                                 ) );
141
142                                         // Image.
143                                         else:
144                                         ?>
145                                         <img src="<?php echo esc_url( $feature['src'] ); ?>" />
146                                         <?php endif; ?>
147                                 </div>
148                                 <h3><?php echo $feature['heading']; ?></h3>
149                                 <p><?php echo $feature['description']; ?></p>
150                         </div>
151                         <?php endforeach; ?>
152                 </div>
153
154                 <div class="feature-section three-col">
155                         <?php foreach ( $minor_features as $feature ) : ?>
156                         <div class="col">
157                                 <div class="svg-container">
158                                         <img src="<?php echo esc_attr( $feature['src'] ); ?>" />
159                                 </div>
160                                 <h3><?php echo $feature['heading']; ?></h3>
161                                 <p><?php echo $feature['description']; ?></p>
162                         </div>
163                         <?php endforeach; ?>
164                 </div>
165
166                 <div class="changelog">
167                         <h3><?php _e( 'Under the Hood' ); ?></h3>
168
169                         <div class="feature-section under-the-hood three-col">
170                                 <?php foreach ( $tech_features as $feature ) : ?>
171                                 <div class="col">
172                                         <h4><?php echo $feature['heading']; ?></h4>
173                                         <p><?php echo $feature['description']; ?></p>
174                                 </div>
175                                 <?php endforeach; ?>
176                         </div>
177
178                         <div class="return-to-dashboard">
179                                 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
180                                         <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
181                                                 <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
182                                         </a> |
183                                 <?php endif; ?>
184                                 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
185                         </div>
186
187                 </div>
188         </div>
189 <?php
190
191 include( ABSPATH . 'wp-admin/admin-footer.php' );
192
193 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
194 return;
195
196 _n_noop( 'Maintenance Release', 'Maintenance Releases' );
197 _n_noop( 'Security Release', 'Security Releases' );
198 _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
199
200 /* translators: 1: WordPress version number. */
201 _n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
202          '<strong>Version %1$s</strong> addressed some security issues.' );
203
204 /* translators: 1: WordPress version number, 2: plural number of bugs. */
205 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
206          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
207
208 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
209 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
210          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
211
212 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
213 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
214          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
215
216 __( 'For more information, see <a href="%s">the release notes</a>.' );