Skip to content

Commit

Permalink
Merge branch 'master' of github.com:adamsilverstein/mathml-block into…
Browse files Browse the repository at this point in the history
… add/amp-compat

* 'master' of github.com:adamsilverstein/mathml-block:
  run on all tags
  Require PHP 5.6 in readme
  Require PHP 5.6
  Next version is 1.1.5 (adamsilverstein#34)
  Bump for wp 5.5, version 1.1.2. (adamsilverstein#33)
  Make JS translations work (adamsilverstein#29)
  • Loading branch information
westonruter committed Oct 1, 2020
2 parents 02c0bd2 + 0fa608a commit 1f27736
Show file tree
Hide file tree
Showing 5 changed files with 757 additions and 574 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploytowp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to WordPress.org
on:
push:
tags:
- "*"
- "**"
jobs:
tag:
name: New tag
Expand Down
13 changes: 5 additions & 8 deletions mathml-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/**
* Plugin Name: MathML block
* Description: Display MathML formulas.
* Version: 1.1.2
* Version: 1.1.5
* Requires at least: 5.0
* Tested up to: 5.5
* Requires PHP: 5.4
* Requires PHP: 5.6
* Stable tag: trunk
* Author: adamsilverstein
* Author URI: http://tunedin.net
Expand Down Expand Up @@ -58,6 +58,9 @@ function register_mathjax_script() {
);

wp_register_script( MATHJAX_SCRIPT_HANDLE, $src, array(), null, false );

// Maka JavaScript translatable.
wp_set_script_translations( MATHJAX_SCRIPT_HANDLE, 'mathml-block' );
}

/**
Expand All @@ -77,12 +80,6 @@ function mathml_block_enqueue_scripts() {
}
add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\mathml_block_enqueue_scripts' );

// Maka JavaScript translatable.
function mathml_set_up_js_translations() {
wp_set_script_translations( 'mathml-block', 'mathml-block' );
}
add_action( 'init', __NAMESPACE__ . '\mathml_set_up_js_translations' );

/**
* Register block.
*/
Expand Down
Loading

0 comments on commit 1f27736

Please sign in to comment.