Skip to content

Commit

Permalink
Merge pull request #6 from aidanlane/master
Browse files Browse the repository at this point in the history
Added missing static keywords for PHP Strict Standards
  • Loading branch information
paulschreiber committed Dec 21, 2014
2 parents 3825184 + 9c76f4f commit 09715f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mathjax-latex.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function init() {
}

// registers default options
public function mathjax_install() {
public static function mathjax_install() {
add_option( 'kblog_mathjax_force_load', false );
add_option( 'kblog_mathjax_latex_inline', 'inline' );
add_option( 'kblog_mathjax_use_wplatex_syntax', false );
Expand All @@ -118,7 +118,7 @@ public function mathjax_install() {
add_option( 'kblog_mathjax_config', 'default' );
}

public function mathjax_uninstall() {
public static function mathjax_uninstall() {
delete_option( 'kblog_mathjax_force_load' );
delete_option( 'kblog_mathjax_latex_inline' );
delete_option( 'kblog_mathjax_use_wplatex_syntax' );
Expand Down Expand Up @@ -191,7 +191,7 @@ public static function inline_to_shortcode( $content ) {
return preg_replace_callback( '#\$latex[= ](.*?[^\\\\])\$#', array( __CLASS__, 'inline_to_shortcode_callback' ), $content );
}

public function inline_to_shortcode_callback( $matches ) {
public static function inline_to_shortcode_callback( $matches ) {

//
// Also support wp-latex syntax. This includes the ability to set background and foreground
Expand All @@ -214,7 +214,7 @@ public function inline_to_shortcode_callback( $matches ) {
}

// add a link to settings on the plugin management page
public function mathjax_settings_link( $links, $file ) {
public static function mathjax_settings_link( $links, $file ) {
if ( 'mathjax-latex/mathjax-latex.php' === $file && function_exists( 'admin_url' ) ) {
$settings_link = '<a href="' . esc_url( admin_url( 'options-general.php?page=kblog-mathjax-latex' ) ) . '">' . esc_html__( 'Settings' ) . '</a>';
array_unshift( $links, $settings_link );
Expand Down

0 comments on commit 09715f6

Please sign in to comment.