Changeset 1415651
- Timestamp:
- 05/12/2016 02:04:48 PM (10 years ago)
- Location:
- fixed-menu-anchor/trunk
- Files:
-
- 9 edited
-
admin/settings.php (modified) (1 diff)
-
composer.json (modified) (2 diffs)
-
fixed-menu-anchor.php (modified) (3 diffs)
-
phpunit.xml (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
tests/src/PluginsFirst/FixedMenuAnchor/Test/LicenseHandlerTest.php (modified) (1 diff)
-
tests/src/PluginsFirst/FixedMenuAnchor/Test/SettingsTest.php (modified) (1 diff)
-
vendor/composer/autoload_psr4.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fixed-menu-anchor/trunk/admin/settings.php
r1368514 r1415651 8 8 * Admin area 9 9 */ 10 11 // stop execution if user is not a super admin 12 if (false == is_super_admin()) { 13 echo 'Access denied.'; 14 exit; 15 } 10 16 11 17 $licenseHandler = new LicenseHandler(new \Curl\Curl()); -
fixed-menu-anchor/trunk/composer.json
r1407635 r1415651 2 2 "name": "plugins-first/fixed-menu-anchor", 3 3 "require": { 4 "php": ">=5. 2.0",4 "php": ">=5.3.0", 5 5 "hamcrest/hamcrest-php": "1.*", 6 6 "php-curl-class/php-curl-class": "4.*", … … 8 8 }, 9 9 "require-dev": { 10 " brain/monkey": "1.*",11 "p hpunit/phpunit": "4.*"10 "phpunit/phpunit": "4.*", 11 "plugins-first/plugin-test-helper": "0.1.*" 12 12 }, 13 13 "prefer-stable": true, 14 14 "autoload": { 15 15 "psr-4": { 16 "PluginsFirst\\": ["src/PluginsFirst/" ]16 "PluginsFirst\\": ["src/PluginsFirst/", "tests/src/PluginsFirst/"] 17 17 } 18 18 } -
fixed-menu-anchor/trunk/fixed-menu-anchor.php
r1407639 r1415651 8 8 * Plugin Name: Fixed Menu Anchor 9 9 * Plugin URI: https://wordpress.org/plugins/fixed-menu-anchor 10 * Version: 2. 1.3.110 * Version: 2.2 11 11 * Description: Having problems with a fixed header/menu which overlaps the target of an anchor? Use this plugin to jump just before the target so that the fixed header/menu does not overlap anymore. 12 12 * Author: Konrad Abicht, Marc Sauerwald … … 18 18 19 19 if (!defined('FIXEDMENUANCHOR_VERSION')) { 20 define('FIXEDMENUANCHOR_VERSION', '2. 1');20 define('FIXEDMENUANCHOR_VERSION', '2.2'); 21 21 } 22 22 … … 80 80 function fixedMenuAnchor_adminInit() 81 81 { 82 // stop execution if user is not a super admin 83 if (false == is_super_admin()) { 84 return false; 85 } 86 82 87 // add Plugins1st button to admin main menu 83 88 add_submenu_page( -
fixed-menu-anchor/trunk/phpunit.xml
r1368514 r1415651 1 <phpunit bootstrap=" tests/bootstrap.php"1 <phpunit bootstrap="vendor/autoload.php" 2 2 backupGlobals="false" 3 3 colors="true" -
fixed-menu-anchor/trunk/readme.txt
r1407446 r1415651 3 3 Tags: anchor, fixed menu, fixed header, sticky header, sticky menu, cookie banner 4 4 Requires at least: 4.3 5 Tested up to: 4.5. 15 Tested up to: 4.5.2 6 6 Stable tag: trunk 7 7 License: GPLv2 or later -
fixed-menu-anchor/trunk/tests/src/PluginsFirst/FixedMenuAnchor/Test/LicenseHandlerTest.php
r1373131 r1415651 6 6 use PluginsFirst\FixedMenuAnchor\LicenseHandler; 7 7 use PluginsFirst\FixedMenuAnchor\Test\Helper\CurlStub; 8 use PluginsFirst\PluginTestHelper\UnitTestCase; 8 9 9 10 class LicenseHandlerTest extends UnitTestCase -
fixed-menu-anchor/trunk/tests/src/PluginsFirst/FixedMenuAnchor/Test/SettingsTest.php
r1368514 r1415651 5 5 use Brain\Monkey; 6 6 use PluginsFirst\FixedMenuAnchor\Settings; 7 use PluginsFirst\PluginTestHelper\UnitTestCase; 7 8 use RedBeanPHP\R; 8 9 -
fixed-menu-anchor/trunk/vendor/composer/autoload_psr4.php
r1407446 r1415651 7 7 8 8 return array( 9 'PluginsFirst\\' => array($baseDir . '/src/PluginsFirst' ),9 'PluginsFirst\\' => array($baseDir . '/src/PluginsFirst', $baseDir . '/tests/src/PluginsFirst'), 10 10 'Curl\\' => array($vendorDir . '/php-curl-class/php-curl-class/src/Curl'), 11 11 ); -
fixed-menu-anchor/trunk/vendor/composer/autoload_real.php
r1407636 r1415651 24 24 spl_autoload_unregister(array('ComposerAutoloaderInit92164ae0f85f37d3b0adcd04485e4c2f', 'loadClassLoader')); 25 25 26 $useStaticLoader = false; 27 26 $useStaticLoader = false; // PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION'); 28 27 if ($useStaticLoader) { 29 28 require_once __DIR__ . '/autoload_static.php'; 30 29 31 call_user_func(\Composer\Autoload\ComposerStaticInit 8e93f8d684fca3db9937aa8a30bd926c::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit92164ae0f85f37d3b0adcd04485e4c2f::getInitializer($loader)); 32 31 } else { 33 32 $map = require __DIR__ . '/autoload_namespaces.php'; … … 50 49 51 50 if ($useStaticLoader) { 52 $includeFiles = Composer\Autoload\ComposerStaticInit 8e93f8d684fca3db9937aa8a30bd926c::$files;51 $includeFiles = Composer\Autoload\ComposerStaticInit92164ae0f85f37d3b0adcd04485e4c2f::$files; 53 52 } else { 54 53 $includeFiles = require __DIR__ . '/autoload_files.php'; 55 54 } 56 55 foreach ($includeFiles as $fileIdentifier => $file) { 57 composerRequire 8e93f8d684fca3db9937aa8a30bd926c($fileIdentifier, $file);56 composerRequire92164ae0f85f37d3b0adcd04485e4c2f($fileIdentifier, $file); 58 57 } 59 58 … … 62 61 } 63 62 64 function composerRequire 8e93f8d684fca3db9937aa8a30bd926c($fileIdentifier, $file)63 function composerRequire92164ae0f85f37d3b0adcd04485e4c2f($fileIdentifier, $file) 65 64 { 66 65 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
Note: See TracChangeset
for help on using the changeset viewer.