Making WordPress.org


Ignore:
Timestamp:
07/28/2016 10:55:18 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Restructure containers and components.

Merges containers with their components and adopts a folder hierarchy similar
to the actual element hierarchy. The exception to the rule are reusable
components.

This also adds support for displaying plugins in the plugin_section taxonomy.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header/main-navigation/index.jsx

    r3733 r3734  
    22
    33import MenuItem from './menu-item';
    4 import SearchForm from './search-form';
     4import SearchForm from 'components/search-form';
    55
    66export default React.createClass( {
    77    displayName: 'MainNavigation',
    88
    9     getInitialState() {
     9    getDefaultProps() {
    1010        return {
    1111            menuItems: [
     
    2727
    2828    render() {
    29         var menuItems = this.state.menuItems.map( ( menuItem, key ) => <MenuItem key={ key } item={ menuItem } /> );
     29        var menuItems = this.props.menuItems.map( ( menuItem, key ) => <MenuItem key={ key } item={ menuItem } /> );
    3030
    3131        return (
Note: See TracChangeset for help on using the changeset viewer.