Browse Source

Fix coding standards.

pull/108/head
Ned Zimmerman 8 years ago
parent
commit
d2ca37e56c
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 2
      functions.php
  2. 6
      inc/actions/namespace.php

2
functions.php

@ -47,7 +47,7 @@ add_action( 'after_setup_theme', '\Aldine\Actions\content_width', 0 );
add_action( 'wp_head', '\Aldine\Actions\output_custom_colors' );
add_action( 'init', '\Aldine\Actions\add_editor_styles' );
add_action( 'admin_init', '\Aldine\Actions\hide_catalog_content_editor' );
foreach ( array('post.php','post-new.php') as $hook ) {
foreach ( [ 'post.php', 'post-new.php' ] as $hook ) {
add_action( "admin_head-$hook", '\Aldine\Actions\tinymce_l18n' );
}
add_filter( 'body_class', '\Aldine\Filters\body_classes' );

6
inc/actions/namespace.php

@ -275,7 +275,8 @@ function register_shortcode_buttons() {
*
* @since 1.1.0
*/
function tinymce_l18n() { ?>
function tinymce_l18n() {
?>
<script type='text/javascript'>
const aldine = {
page_section: {
@ -293,4 +294,5 @@ function tinymce_l18n() { ?>
}
};
</script>
<?php }
<?php
}

Loading…
Cancel
Save