release: release 2.7.2

This commit is contained in:
Ben Goldsworthy 2021-04-25 12:45:44 +01:00
parent 6a1117be15
commit 4e85875d01
6 changed files with 34 additions and 89 deletions

View file

@ -1,5 +1,9 @@
# Changelog # Changelog
= 2.7.2 =
- Reissue of 2.7.1.
= 2.7.1 = = 2.7.1 =
- Bugfix: Stylesheets: namespace collapsed CSS class, thanks to @cybermrmotte - Bugfix: Stylesheets: namespace collapsed CSS class, thanks to @cybermrmotte

View file

@ -200,6 +200,7 @@ read -p "Are you ready to continue? (Y/N): " CONFIRM && [[ $CONFIRM == [yY] || $
echo "Creating local copy of SVN repo..." echo "Creating local copy of SVN repo..."
svn checkout https://plugins.svn.wordpress.org/footnotes svn-tmp --depth immediates 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/trunk --set-depth infinity
svn update --quiet svn-tmp/assets --set-depth infinity
svn update --quiet svn-tmp/tags/$PRERELEASE_VERSION --set-depth infinity svn update --quiet svn-tmp/tags/$PRERELEASE_VERSION --set-depth infinity
echo -e "Local copy created.\n" echo -e "Local copy created.\n"

View file

@ -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 $?

View file

@ -5,7 +5,7 @@
* Description: footnotes lets you easily add highly-customisable footnotes on your WordPress Pages and Posts. * Description: footnotes lets you easily add highly-customisable footnotes on your WordPress Pages and Posts.
* Author: Mark Cheret * Author: Mark Cheret
* Author URI: https://cheret.org/footnotes * Author URI: https://cheret.org/footnotes
* Version: 2.7.1 * Version: 2.7.2
* Text Domain: footnotes * Text Domain: footnotes
* Domain Path: /languages * Domain Path: /languages
* Requires at least: 3.9 * Requires at least: 3.9

View file

@ -68,9 +68,9 @@
author: 'Mark Cheret', author: 'Mark Cheret',
authorurl: 'https://cheret.org/footnotes/', authorurl: 'https://cheret.org/footnotes/',
infourl: 'https://wordpress.org/plugins/footnotes/', infourl: 'https://wordpress.org/plugins/footnotes/',
version : '2.7.2d' version: '2.7.3d',
}; };
} },
}); });
// Register plugin // Register plugin

View file

@ -5,7 +5,7 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen
Requires at least: 3.9 Requires at least: 3.9
Tested up to: 5.7.1 Tested up to: 5.7.1
Requires PHP: 7.0 Requires PHP: 7.0
Stable Tag: 2.7.0 Stable Tag: 2.7.2
License: GPLv3 License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html 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 == == Changelog ==
= 2.7.2 =
- Reissue of 2.7.1.
= 2.7.1 = = 2.7.1 =
- Bugfix: Stylesheets: namespace collapsed CSS class, thanks to @cybermrmotte @markyz89 bug reports. - Bugfix: Stylesheets: namespace collapsed CSS class, thanks to @cybermrmotte @markyz89 bug reports.
- Dashboard: move Plugin settings under default WP Settings menu. - Dashboard: move Plugin settings under default WP Settings menu.
- Bugfix: Footnotes: fix bug when using multiple paragraphs in footnotes. - 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. - Documentation: split changelog into seperate file.
= 2.7.0 = = 2.7.0 =
- Adding: Reference container: optionally per section by shortcode, thanks to @grflukas issue report. - 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: Excerpts: make excerpt handling backward compatible, thanks to @mfessler bug report.
- Bugfix: Dashboard: debug the 'Quick start guide' tab, thanks to @rumperuu bug report. - Bugfix: Dashboard: debug the 'Quick start guide' tab, thanks to @rumperuu bug report.
= 2.6.6 = = 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: Process: fix issue that caused some footnotes to not be processed, thanks to @docteurfitness @rkupadhya @offpeakdesign bug reports.
- 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.
== Upgrade Notice == == Upgrade Notice ==
= 2.7.1 = = 2.7.2 =
This release resolves a CSS class conflict with the commonly-used `.collapsed` class. This release resolves a CSS class conflict with the commonly-used `.collapsed` class.
== Usage == == Usage ==