Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Conversation

@westonruter
Copy link
Member

No description provided.

@westonruter
Copy link
Member Author

Auto-closing tags and brackets should help users write valid code to start with. All of the add-ons enabled here should help with reducing errors or at least improve the quality of code and the UX.

@westonruter
Copy link
Member Author

Though the styling needs improvement.

}
} elseif ( false !== strpos( $type, 'xml' ) || in_array( $extension, array( 'xml', 'svg' ), true ) ) {
$settings['codemirror']['mode'] = 'application/xml';
$settings['codemirror'] = array_merge( $settings['codemirror'], array(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be wp_parse_args instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is necessary because wp_parse_args is only really useful if a user is supplying params via query string like mode=application/xml, but that's not being done here.

@westonruter westonruter deleted the add/addons branch August 27, 2017 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants