diff options
author | 2013-03-10 12:10:26 +0100 | |
---|---|---|
committer | 2013-03-10 12:10:26 +0100 | |
commit | 7aea9fc04bd42e2ac02a1925d3a02a76d391c3e7 (patch) | |
tree | 68c852c654cef340592f1001b6310e33827b130c /plugins/jetpack/modules/latex.php | |
parent | Make the script more silent (diff) | |
download | blogs-gentoo-7aea9fc04bd42e2ac02a1925d3a02a76d391c3e7.tar.gz blogs-gentoo-7aea9fc04bd42e2ac02a1925d3a02a76d391c3e7.tar.bz2 blogs-gentoo-7aea9fc04bd42e2ac02a1925d3a02a76d391c3e7.zip |
update plugins
Diffstat (limited to 'plugins/jetpack/modules/latex.php')
-rw-r--r-- | plugins/jetpack/modules/latex.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/latex.php b/plugins/jetpack/modules/latex.php index 4e4d9db2..76066cd6 100644 --- a/plugins/jetpack/modules/latex.php +++ b/plugins/jetpack/modules/latex.php @@ -1,7 +1,7 @@ <?php /** * Module Name: Beautiful Math - * Module Description: Mark up your posts with the <img src="http://l.wordpress.com/latex.php?latex=%5CLaTeX&bg=transparent&fg=000&s=-2" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /> markup language, perfect for complex mathematical equations and other über-geekery. + * Module Description: Mark up your posts with the <img src="//s0.wp.com/latex.php?latex=%5CLaTeX&bg=transparent&fg=000&s=-2" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /> markup language, perfect for complex mathematical equations and other über-geekery. * Sort Order: 12 * First Introduced: 1.1 */ @@ -64,11 +64,11 @@ function latex_entity_decode( $latex ) { } function latex_render( $latex, $fg, $bg, $s = 0 ) { - $url = ( is_ssl() ? 'https://s-ssl.wordpress.com' : 'http://s0.wp.com' ) . "/latex.php?latex=" . urlencode( $latex ) . "&bg=$bg&fg=$fg&s=$s"; + $url = "//s0.wp.com/latex.php?latex=" . urlencode( $latex ) . "&bg=" . $bg . "&fg=" . $fg . "&s=" . $s; $url = esc_url( $url ); $alt = str_replace( '\\', '\', esc_attr( $latex ) ); - return "<img src='$url' alt='$alt' title='$alt' class='latex' />"; + return '<img src="' . $url . '" alt="' . $alt . '" title="' . $alt . '" class="latex" />'; } /** |