Changeset 43954
- Timestamp:
- 11/30/2018 08:24:42 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/includes/class-wp-theme-install-list-table.php
r41683 r43954 231 231 * An object that contains theme data returned by the WordPress.org API. 232 232 * 233 * @type string $name Theme name, e.g. 'Twenty Seventeen'.234 * @type string $slug Theme slug, e.g. 'twenty seventeen'.233 * @type string $name Theme name, e.g. 'Twenty Nineteen'. 234 * @type string $slug Theme slug, e.g. 'twentynineteen'. 235 235 * @type string $version Theme version, e.g. '1.1'. 236 236 * @type string $author Theme author username, e.g. 'melchoyce'. 237 * @type string $preview_url Preview URL, e.g. 'http://201 7.wordpress.net/'.238 * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twenty seventeen/'.237 * @type string $preview_url Preview URL, e.g. 'http://2019.wordpress.net/'. 238 * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentynineteen/'. 239 239 * @type float $rating Rating score. 240 240 * @type int $num_ratings The number of ratings. 241 * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twenty seventeen/'.241 * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentynineteen/'. 242 242 * @type string $description Theme description. 243 243 * @type string $download_link Theme ZIP download URL. -
branches/5.0/src/wp-admin/includes/upgrade.php
r43921 r43954 331 331 update_option( 'widget_categories', array ( 2 => array ( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) ); 332 332 update_option( 'widget_meta', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) ); 333 update_option( 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), 'sidebar-1' => array( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2' ), ' sidebar-2' => array(), 'sidebar-3' => array(), 'array_version' => 3 ) );333 update_option( 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), 'sidebar-1' => array( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2' ), 'array_version' => 3 ) ); 334 334 if ( ! is_multisite() ) 335 335 update_user_meta( $user_id, 'show_welcome_panel', 1 ); -
branches/5.0/src/wp-admin/nav-menus.php
r42811 r43954 520 520 $overview = '<p>' . __( 'This screen is used for managing your navigation menus.' ) . '</p>'; 521 521 /* translators: 1: Widgets admin screen URL, 2 and 3: The name of the default themes */ 522 $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the navigation menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty S ixteen', 'Twenty Seventeen' ) . '</p>';522 $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the navigation menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Seventeen', 'Twenty Nineteen' ) . '</p>'; 523 523 $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>'; 524 524 $overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>'; -
branches/5.0/tests/phpunit/tests/customize/widgets.php
r41935 r43954 33 33 unset( $GLOBALS['_wp_sidebars_widgets'] ); // clear out cache set by wp_get_sidebars_widgets() 34 34 $sidebars_widgets = wp_get_sidebars_widgets(); 35 $this->assertEqualSets( array( 'wp_inactive_widgets', 'sidebar-1' , 'sidebar-2', 'sidebar-3'), array_keys( wp_get_sidebars_widgets() ) );35 $this->assertEqualSets( array( 'wp_inactive_widgets', 'sidebar-1' ), array_keys( wp_get_sidebars_widgets() ) ); 36 36 $this->assertContains( 'search-2', $sidebars_widgets['sidebar-1'] ); 37 37 $this->assertContains( 'categories-2', $sidebars_widgets['sidebar-1'] );
Note: See TracChangeset
for help on using the changeset viewer.