Plugin Directory

Changeset 1972923


Ignore:
Timestamp:
11/12/2018 11:14:51 AM (7 years ago)
Author:
conraid
Message:

Fixed style and testing with wordpress 5

Location:
blank-footnotes/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • blank-footnotes/trunk/blank-footnotes.php

    r1630294 r1972923  
    7575
    7676    // Regex to convert markdown footnotes to HTML.
    77     $content = preg_replace( '/\[\^(\d+)\]:/' , "<span class='footnote' id='fn-$post_id-$1'><a href='#fnref-$post_id-$1'>$1</a>.</span>" , $content );
     77    $content = preg_replace( '/\[\^(\d+)\]:/', "<span class='footnote' id='fn-$post_id-$1'><a href='#fnref-$post_id-$1'>$1</a>.</span>", $content );
    7878
    7979    // Regex to convert markdown reference notes to HTML.
    80     $content = preg_replace( '/\[\^(\d+)\]/' , "<sup class='footnote' id='fnref-$post_id-$1'><a href='#fn-$post_id-$1' rel='footnote'>$1</a></sup>" , $content );
    81 
    82     return($content);
     80    $content = preg_replace( '/\[\^(\d+)\]/', "<sup class='footnote' id='fnref-$post_id-$1'><a href='#fn-$post_id-$1' rel='footnote'>$1</a></sup>", $content );
     81
     82    return( $content );
    8383
    8484}
     
    9292 *    }
    9393 */
    94 if ( get_option('jetpack_active_modules')) {
     94if ( get_option( 'jetpack_active_modules' ) ) {
    9595    if ( ! in_array( 'markdown', get_option( 'jetpack_active_modules' ), true ) ) {
    9696        add_action( 'the_content', 'bfn_markdown_convert', 1 );
     
    142142    }
    143143</script>
    144 <?php
     144        <?php
    145145    }
    146146}
  • blank-footnotes/trunk/changelog.txt

    r1630294 r1972923  
    11*** Blank Footnotes ***
     2
     32018-11-10 version 1.6.1
     4
     5* Added note for Gutenberg.
     6* Fixed style according to WordPress Coding Standards for
     7PHP_CodeSniffer.
     8* Tested with Wordpress 5.0 classic editor
    29
    3102017-04.05 version 1.6
  • blank-footnotes/trunk/index.php

    r1345974 r1972923  
    88 */
    99
    10 ?>
     10// Silent is god!
  • blank-footnotes/trunk/readme.txt

    r1761715 r1972923  
    44Tags: footnotes, footnote, notes, reference, endnotes, formatting
    55Requires at least: 4.4
    6 Tested up to: 4.9
    7 Stable tag: 1.6
     6Tested up to: 5.0
     7Stable tag: 1.6.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2525Unlike jetpack-markdown, footnotes will appear in the exact point where they have been inserted. To go back to text mode click on the footnote number.
    2626
     27Work only with Classic Editor, in visual and html mode. Not work with Gutenberg.
     28
    2729== Installation ==
    2830
    2931This section describes how to install the plugin and get it working.
    3032
    31 1. Upload the plugin files to the '/wp-content/plugins/plugin-name' directory, or install the plugin through the WordPress plugins screen directly.
     331. Upload the plugin files to the '/wp-content/plugins/blank-footnotes' directory, or install the plugin through the WordPress plugins screen directly.
    32342. Activate the plugin through the 'Plugins' screen in WordPress
    3335
Note: See TracChangeset for help on using the changeset viewer.