release: release 2.7.2
This commit is contained in:
parent
6a1117be15
commit
4e85875d01
6 changed files with 34 additions and 89 deletions
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
= 2.7.2 =
|
||||
|
||||
- Reissue of 2.7.1.
|
||||
|
||||
= 2.7.1 =
|
||||
|
||||
- Bugfix: Stylesheets: namespace collapsed CSS class, thanks to @cybermrmotte
|
||||
|
|
|
@ -200,6 +200,7 @@ read -p "Are you ready to continue? (Y/N): " CONFIRM && [[ $CONFIRM == [yY] || $
|
|||
echo "Creating local copy of SVN repo..."
|
||||
svn checkout https://plugins.svn.wordpress.org/footnotes svn-tmp --depth immediates
|
||||
svn update --quiet svn-tmp/trunk --set-depth infinity
|
||||
svn update --quiet svn-tmp/assets --set-depth infinity
|
||||
svn update --quiet svn-tmp/tags/$PRERELEASE_VERSION --set-depth infinity
|
||||
echo -e "Local copy created.\n"
|
||||
|
||||
|
|
|
@ -1,64 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Modified from: https://github.com/bjornjohansen/wp-pre-commit-hook
|
||||
# Also: https://softdiscover.com/wordpress/perfect-setup-for-a-wordpress-project-development/
|
||||
|
||||
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"`
|
||||
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php`
|
||||
|
||||
# Determine if a file list is passed
|
||||
if [ "$#" -eq 1 ]
|
||||
then
|
||||
oIFS=$IFS
|
||||
IFS='
|
||||
'
|
||||
SFILES="$1"
|
||||
IFS=$oIFS
|
||||
fi
|
||||
SFILES=${SFILES:-$STAGED_FILES_CMD}
|
||||
|
||||
echo "Checking PHP Lint..."
|
||||
for FILE in $SFILES
|
||||
do
|
||||
php -l -d display_errors=0 $PROJECT/$FILE
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo "Fix the error before commit."
|
||||
exit 1
|
||||
fi
|
||||
FILES="$FILES $PROJECT/$FILE"
|
||||
done
|
||||
|
||||
#if [ -f "$PROJECT/phpcs.ruleset.xml" ]
|
||||
#then
|
||||
# RULESET="$PROJECT/phpcs.ruleset.xml"
|
||||
#elif [ -f "$PROJECT/phpcs.xml.dist" ]
|
||||
#then
|
||||
# RULESET="$PROJECT/phpcs.xml.dist"
|
||||
#else
|
||||
#
|
||||
#fi
|
||||
|
||||
if [ "$FILES" != "" ]
|
||||
then
|
||||
for RULESET in WordPress PHPCompatibilityWP; do
|
||||
echo "Checking Code Standard Compliance, using $RULESET as ruleset standard..."
|
||||
./vendor/bin/phpcs --standard="$RULESET" --runtime-set testVersion 7.0- --colors --encoding=utf-8 -n -p $FILES
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo "Coding standards errors have been detected. Running phpcbf..."
|
||||
./vendor/bin/phpcbf --standard="$RULESET" --runtime-set testVersion 7.0- --encoding=utf-8 -n -p $FILES
|
||||
git add $FILES
|
||||
echo "Running Code Sniffer again..."
|
||||
./vendor/bin/phpcs --standard="$RULESET" --runtime-set testVersion 7.0- --colors --encoding=utf-8 -n -p $FILES
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo "Errors found not fixable automatically. You need to manually fix them."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
echo "$RULESET passed."
|
||||
done
|
||||
fi
|
||||
|
||||
exit $?
|
|
@ -5,7 +5,7 @@
|
|||
* Description: footnotes lets you easily add highly-customisable footnotes on your WordPress Pages and Posts.
|
||||
* Author: Mark Cheret
|
||||
* Author URI: https://cheret.org/footnotes
|
||||
* Version: 2.7.1
|
||||
* Version: 2.7.2
|
||||
* Text Domain: footnotes
|
||||
* Domain Path: /languages
|
||||
* Requires at least: 3.9
|
||||
|
|
|
@ -54,24 +54,24 @@
|
|||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns information about the plugin as a name/value array.
|
||||
* The current keys are longname, author, authorurl, infourl and version.
|
||||
*
|
||||
* @return {Object} Name/value array containing information about the plugin.
|
||||
*
|
||||
* Edit: needs updating the version number manually
|
||||
*/
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Inserts the Footnotes short code.',
|
||||
author : 'Mark Cheret',
|
||||
authorurl : 'https://cheret.org/footnotes/',
|
||||
infourl : 'https://wordpress.org/plugins/footnotes/',
|
||||
version : '2.7.2d'
|
||||
};
|
||||
}
|
||||
});
|
||||
/**
|
||||
* Returns information about the plugin as a name/value array.
|
||||
* The current keys are longname, author, authorurl, infourl and version.
|
||||
*
|
||||
* @return {Object} Name/value array containing information about the plugin.
|
||||
*
|
||||
* Edit: needs updating the version number manually
|
||||
*/
|
||||
getInfo: function () {
|
||||
return {
|
||||
longname: 'Inserts the Footnotes short code.',
|
||||
author: 'Mark Cheret',
|
||||
authorurl: 'https://cheret.org/footnotes/',
|
||||
infourl: 'https://wordpress.org/plugins/footnotes/',
|
||||
version: '2.7.3d',
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('footnotes', tinymce.plugins.Footnotes);
|
||||
|
|
|
@ -5,7 +5,7 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen
|
|||
Requires at least: 3.9
|
||||
Tested up to: 5.7.1
|
||||
Requires PHP: 7.0
|
||||
Stable Tag: 2.7.0
|
||||
Stable Tag: 2.7.2
|
||||
License: GPLv3
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
|
@ -60,7 +60,12 @@ No, this Plugin has been written from scratch. Of course some inspirations on ho
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 2.7.2 =
|
||||
|
||||
- Reissue of 2.7.1.
|
||||
|
||||
= 2.7.1 =
|
||||
|
||||
- Bugfix: Stylesheets: namespace collapsed CSS class, thanks to @cybermrmotte @markyz89 bug reports.
|
||||
- Dashboard: move Plugin settings under default WP Settings menu.
|
||||
- Bugfix: Footnotes: fix bug when using multiple paragraphs in footnotes.
|
||||
|
@ -68,20 +73,19 @@ No, this Plugin has been written from scratch. Of course some inspirations on ho
|
|||
- Documentation: split changelog into seperate file.
|
||||
|
||||
= 2.7.0 =
|
||||
|
||||
- Adding: Reference container: optionally per section by shortcode, thanks to @grflukas issue report.
|
||||
- Bugfix: Excerpts: make excerpt handling backward compatible, thanks to @mfessler bug report.
|
||||
- Bugfix: Dashboard: debug the 'Quick start guide' tab, thanks to @rumperuu bug report.
|
||||
|
||||
= 2.6.6 =
|
||||
- Bugfix: Process: fix issue that caused some footnotes to not be processed, thanks to @docteurfitness @rkupadhya @offpeakdesign bug reports.
|
||||
|
||||
= 2.6.5 =
|
||||
- Bugfix: Editor buttons: debug button by reverting name change in PHP file while JS file and HTML template remained unsynced, thanks to @gova bug report.
|
||||
- Bugfix: Hooks: default-disable the_excerpt hook with respect to theme-specific excerpt handling, thanks to @mmallett bug reports.
|
||||
- Bugfix: Process: fix issue that caused some footnotes to not be processed, thanks to @docteurfitness @rkupadhya @offpeakdesign bug reports.
|
||||
|
||||
== Upgrade Notice ==
|
||||
|
||||
= 2.7.1 =
|
||||
= 2.7.2 =
|
||||
|
||||
This release resolves a CSS class conflict with the commonly-used `.collapsed` class.
|
||||
|
||||
== Usage ==
|
||||
|
|
Reference in a new issue