2021-02-24 08:51:24 +00:00
|
|
|
|
<?php
|
2021-02-23 16:44:18 +00:00
|
|
|
|
/**
|
2021-02-23 22:01:48 +00:00
|
|
|
|
* Plugin Name: footnotes
|
|
|
|
|
* Plugin URI: https://wordpress.org/plugins/footnotes/
|
|
|
|
|
* Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine.
|
|
|
|
|
* Author: Mark Cheret
|
2021-03-04 07:46:19 +00:00
|
|
|
|
* Version: 2.5.11d1
|
2021-02-23 22:01:48 +00:00
|
|
|
|
* Author URI: http://cheret.de/plugins/footnotes-2/
|
|
|
|
|
* Text Domain: footnotes
|
|
|
|
|
* Domain Path: /languages
|
|
|
|
|
*
|
2021-02-24 08:51:24 +00:00
|
|
|
|
* @package footnotes
|
2021-02-23 22:01:48 +00:00
|
|
|
|
* @copyright 2021 Mark Cheret (email: mark@cheret.de)
|
2021-02-23 16:44:18 +00:00
|
|
|
|
*/
|
2021-02-24 08:51:24 +00:00
|
|
|
|
|
2021-02-23 16:00:59 +00:00
|
|
|
|
/**
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* Package Version number for stylesheet cache busting.
|
2021-02-23 16:00:59 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* Please keep this constant in sync with the Version in the header above,
|
|
|
|
|
* and also in sync with the Package Version in the header of the readme.
|
|
|
|
|
* DO NOT SYNC THE STABLE TAG VALUE WITH THE PACKAGE VERSION VALUE.
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-02-23 16:00:59 +00:00
|
|
|
|
* @since 2.1.4
|
|
|
|
|
* @since 2.5.3 (Hungarian)
|
|
|
|
|
* @var str
|
2021-03-11 05:26:34 +00:00
|
|
|
|
* @lastmodified 2021-03-11T0623+0100
|
2021-02-23 16:00:59 +00:00
|
|
|
|
*/
|
2021-03-05 03:30:50 +00:00
|
|
|
|
define( 'C_STR_PACKAGE_VERSION', '2.5.11d1' );
|
2021-02-23 16:00:59 +00:00
|
|
|
|
|
2021-03-05 03:30:50 +00:00
|
|
|
|
/**
|
2021-03-08 09:10:32 +00:00
|
|
|
|
* Version numbers in a WordPress plugin readme.txt header.
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-08 09:10:32 +00:00
|
|
|
|
* - Adding: Documentation: Readme.txt: informative 'Package Version' field in sync with the package version currently hidden in the main PHP script header.
|
|
|
|
|
* - Adding: Documentation: Readme.txt: informative 'Tagged Version' field pointing a tag folder in SVN for bugfix versions available ahead of the stable tag.
|
|
|
|
|
* - Adding: Documentation: Readme.txt: comment line below the 'Stable Tag' field to warn that this is (unexpectedly) parsed for release configuration.
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @since 2.5.11
|
|
|
|
|
* @see readme.txt
|
2021-03-08 09:10:32 +00:00
|
|
|
|
* @link https://meta.trac.wordpress.org/ticket/5652
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
|
|
|
|
* Package Version Actual version string.
|
|
|
|
|
* May identify a development version.
|
|
|
|
|
* A 'd' series is suffixed to incremented bugfix version.
|
|
|
|
|
*
|
|
|
|
|
* Tagged Version Refers to the latest tag.
|
|
|
|
|
* Typically the best available version.
|
|
|
|
|
* May not be released, due to release frequency concerns.
|
|
|
|
|
*
|
|
|
|
|
* Stable Tag Parsed in trunk/ for release configuration.
|
|
|
|
|
* Must not be greater than the Version in MAIN.php header.
|
|
|
|
|
*
|
2021-03-08 09:10:32 +00:00
|
|
|
|
* WordPress plugin readmes are usually lacking the version number of the package.
|
|
|
|
|
* In Footnotes, this has been included after the stable tag had been mistaken for
|
|
|
|
|
* the package version, given that state-of-the-art readmes have that information.
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* - Bugfix: Codebase: revert to 2.5.8, thanks to @little-shiva @watershare @adjayabdg @staho @frav8 @voregnev @dsl225 @alexclassroom @a223123131 @codldmac bug reports.
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @version 2.5.10 (reversion to @version 2.5.8)
|
|
|
|
|
* @revision 2483464
|
Also added @revision and @timestamp PHPDOC tags
@revision and @timestamp used for SVN refs.
Full enumeration of added custom PHPDOC tags:
@accountable, @bib, @biblio, @callback, @commit, @committer, @contributor, @courtesy, @date, @datetime, @lastmodified, @modified, @publisher, @reporter, @revision, @timestamp, @user.Some tags like @reporter and @contributor are more used than others.
2021-03-05 07:58:48 +00:00
|
|
|
|
* @timestamp 2021-03-01 11:09:29 +0000
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @link https://plugins.trac.wordpress.org/changeset/2483464/footnotes/trunk
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @little-shiva
|
|
|
|
|
* @link https://wordpress.org/support/topic/footnotes-broke-two-of-my-client-sites/
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @watershare
|
|
|
|
|
* @link https://wordpress.org/support/topic/latest-update-broke-my-site-19/
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @adjayabdg
|
|
|
|
|
* @link https://wordpress.org/support/topic/latest-update-broke-my-site-19/#post-14115531
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @staho
|
|
|
|
|
* @link https://wordpress.org/support/topic/version-2-5-9d1-breaks-wp-down/
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @frav8
|
|
|
|
|
* @link https://wordpress.org/support/topic/version-2-5-9d1-breaks-wp-down/#post-14115614
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @voregnev
|
|
|
|
|
* @link https://wordpress.org/support/topic/version-2-5-9d1-breaks-wp-down/#post-14115632
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @dsl225
|
|
|
|
|
* @link https://wordpress.org/support/topic/version-2-5-9d1-breaks-wp-down/#post-14115820
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @alexclassroom
|
|
|
|
|
* @link https://wordpress.org/support/topic/version-2-5-9d1-breaks-wp-down/#post-14115860
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @a223123131
|
|
|
|
|
* @link https://wordpress.org/support/topic/version-2-5-9d1-breaks-wp-down/#post-14115906
|
|
|
|
|
* @link https://wordpress.org/support/topic/update-breaks-layout-3/
|
|
|
|
|
* @link https://wordpress.org/support/topic/bugs-in-every-2nd-update/#post-14116804
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @reporter @codldmac
|
|
|
|
|
* @link https://wordpress.org/support/topic/crashed-my-site-104/
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* The accidental release of 2.5.9d1 was due to 3 factors:
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* 1. The codebase got overhauled for the sake of WordPress Coding Standards compliance,
|
|
|
|
|
* one requirement of which is that files be named after the name of the class in them;
|
|
|
|
|
* 2. The renamed folder was not added to Subversion version control due to an unexpected
|
|
|
|
|
* unfamiliarity with the system and its command line interface;
|
|
|
|
|
* 3. The Stable Tag field in the Readme header was used for the package version because
|
2021-03-11 05:26:34 +00:00
|
|
|
|
* the related field is lacking, and the use of file headers for release configuration
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* is uncommon.
|
2021-03-11 05:26:34 +00:00
|
|
|
|
*
|
2021-03-05 03:30:50 +00:00
|
|
|
|
* @link https://wordpress.org/support/topic/2-5-10-reverts-2-5-9d1-and-apologies/
|
|
|
|
|
* @link https://wordpress.org/support/topic/2-5-10-reverts-2-5-9d1-and-apologies/#post-14119440
|
|
|
|
|
* @link https://github.com/markcheret/footnotes/issues/55
|
|
|
|
|
* @link https://meta.trac.wordpress.org/ticket/5645
|
|
|
|
|
* @link https://wordpress.org/plugins/readme.txt
|
|
|
|
|
* @link https://developer.wordpress.org/plugins/wordpress-org/how-your-readme-txt-works/
|
|
|
|
|
*/
|
2021-02-23 16:00:59 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Plugin’s main PHP file.
|
2021-02-23 16:44:18 +00:00
|
|
|
|
*
|
2021-02-23 16:00:59 +00:00
|
|
|
|
* @filesource
|
2021-02-23 16:44:18 +00:00
|
|
|
|
* @package footnotes
|
2021-02-23 16:00:59 +00:00
|
|
|
|
* @since 0.0.1
|
|
|
|
|
*/
|
|
|
|
|
|
2021-02-23 16:44:18 +00:00
|
|
|
|
// Get all common classes and functions.
|
|
|
|
|
require_once dirname( __FILE__ ) . '/includes.php';
|
2021-02-23 16:00:59 +00:00
|
|
|
|
|
2021-02-23 16:44:18 +00:00
|
|
|
|
// Add Plugin Links to the "installed plugins" page.
|
2021-02-23 16:00:59 +00:00
|
|
|
|
$l_str_plugin_file = 'footnotes/footnotes.php';
|
2021-02-23 16:44:18 +00:00
|
|
|
|
add_filter( "plugin_action_links_{$l_str_plugin_file}", array( 'MCI_Footnotes_Hooks', 'plugin_links' ), 10, 2 );
|
2021-02-23 16:00:59 +00:00
|
|
|
|
|
2021-02-23 16:44:18 +00:00
|
|
|
|
// Initialize the Plugin.
|
|
|
|
|
$g_obj_mci_footnotes = new MCI_Footnotes();
|
|
|
|
|
// Run the Plugin.
|
|
|
|
|
$g_obj_mci_footnotes->run();
|
2021-02-23 16:00:59 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the stylesheet enqueuing mode for production.
|
2021-02-23 16:44:18 +00:00
|
|
|
|
*
|
2021-02-23 16:00:59 +00:00
|
|
|
|
* @since 2.5.5
|
|
|
|
|
* @var bool
|
|
|
|
|
* @see class/init.php
|
2021-02-23 16:44:18 +00:00
|
|
|
|
*
|
2021-02-23 16:00:59 +00:00
|
|
|
|
* In production, a minified CSS file tailored to the settings is enqueued.
|
2021-02-23 16:44:18 +00:00
|
|
|
|
*
|
2021-02-23 16:00:59 +00:00
|
|
|
|
* Developing stylesheets is meant to be easier when this is set to false.
|
|
|
|
|
* WARNING: This facility designed for development must NOT be used in production.
|
2021-02-23 16:44:18 +00:00
|
|
|
|
*/
|
2021-02-23 16:00:59 +00:00
|
|
|
|
define( 'C_BOOL_CSS_PRODUCTION_MODE', true );
|