dfcbdc6adc
= Stable Tag value = 2.5.10 (unchanged) = Commits undone = - 2484038 (2021-03-02 05:29:18 +0000 (Tue, 02 Mar 2021)) committer: pewgeuges -2484015 (2021-03-02 04:22:20 +0000 (Tue, 02 Mar 2021)) committer: pewgeuges = Rationale = By renaming a folder (and 3 out of 4 included files), the WordPress Coding Standards compliance upgrade (see changeset 2484015) has broken the traceability of the changes made to the following files: - footnotes/trunk/class/dashboard/init.php - footnotes/trunk/class/dashboard/layout.php - footnotes/trunk/class/dashboard/subpage-diagnostics.php - footnotes/trunk/class/dashboard/subpage-main.php git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2485882 b8457f37-d9ea-0310-8a92-e5e31aec5664
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Includes all common files.
|
|
*
|
|
* @filesource
|
|
* @author Stefan Herndler
|
|
* @since 1.5.0 14.09.14 13:40
|
|
*/
|
|
|
|
/**
|
|
* Requires (require_once) all *.php files inside a specific Directory.
|
|
*
|
|
* @author Stefan Herndler
|
|
* @since 1.5.0
|
|
* @param string $p_str_Directory Absolute Directory path to lookup for *.php files
|
|
*/
|
|
function MCI_Footnotes_requirePhpFiles($p_str_Directory) {
|
|
// append slash at the end of the Directory if not exist
|
|
if (substr($p_str_Directory, -1) != "/") {
|
|
$p_str_Directory .= "/";
|
|
}
|
|
// get all PHP files inside Directory
|
|
$l_arr_Files = scandir($p_str_Directory);
|
|
// iterate through each class
|
|
foreach ($l_arr_Files as $l_str_FileName) {
|
|
// skip all non *.php files
|
|
if (strtolower(substr($l_str_FileName, -4)) != ".php") {
|
|
continue;
|
|
}
|
|
/** @noinspection PhpIncludeInspection */
|
|
require_once($p_str_Directory . $l_str_FileName);
|
|
}
|
|
}
|
|
|
|
MCI_Footnotes_requirePhpFiles(dirname(__FILE__) . "/class");
|
|
MCI_Footnotes_requirePhpFiles(dirname(__FILE__) . "/class/dashboard");
|
|
MCI_Footnotes_requirePhpFiles(dirname(__FILE__) . "/class/widgets");
|