Skip to content
Snippets Groups Projects
Commit 193fa14b authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

feature(core): small changes

parent c06ea41f
No related branches found
No related tags found
1 merge request!42feature(core): small changes
......@@ -7,7 +7,7 @@ variables:
CODECEPTION_PARALLEL: 1
# only for free plugin
include: 'https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-free.yml'
include: '${CI_SERVER_URL}/wpdesk/gitlab-ci/raw/master/gitlab-ci-free.yml'
integration:earliest:
when: manual
......
*** plugin-template Changelog ***
## [1.0.0] - 2017-06-20
## [1.0.0] - 2022-10-01
### Added
- use https://keepachangelog.com/en/1.0.0/ standards in your changelog
- First Release!
##### Added,Fixed
......@@ -10,9 +10,9 @@
* Domain Path: /lang/
* ​
* Requires at least: 5.7
* Tested up to: 6.0
* WC requires at least: 6.6
* WC tested up to: 7.0
* Tested up to: 6.1
* WC requires at least: 7.0
* WC tested up to: 7.4
* Requires PHP: 7.2
* ​
* Copyright 2022 WP Desk Ltd.
......@@ -49,6 +49,7 @@ $plugin_dir = __DIR__;
// todo: only for paid plugins.
$plugin_shops = [
'default' => 'https://www.wpdesk.net/',
'pl_PL' => 'https://www.wpdesk.pl/',
];
$requirements = [
......
......@@ -17,7 +17,21 @@ return [
Finder::create()
->files()
->ignoreVCS( true )
->name( [ '*.php', 'composer.json', '*.css', '*.js', '*.jpg', '*.png', '*.wsdl' ] )
->name( [
'*.php',
'composer.json',
'*.css',
'*.js',
'*.scss',
'*.jsx',
'*.jpg',
'*.png',
'*.svg',
'*.ttf',
'*.otf',
'*.woff',
'*.woff2',
] )
->exclude( [
'doc',
'test',
......
<?php
ini_set('error_reporting', E_ALL); // or error_reporting(E_ALL);
error_reporting( E_ALL & ~E_DEPRECATED );
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
......
......@@ -7,17 +7,5 @@ require_once __DIR__ . '/../../vendor/autoload.php';
error_reporting( E_ALL & ~E_DEPRECATED );
if ( getenv( 'PLUGIN_PATH' ) !== false ) {
define( 'PLUGIN_PATH', getenv( 'PLUGIN_PATH' ) );
} else {
define( 'PLUGIN_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
}
if ( getenv( 'ABSPATH' ) !== false ) {
define( 'ABSPATH', getenv( 'ABSPATH' ) );
} else {
define( 'ABSPATH', PLUGIN_PATH . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
}
WP_Mock::setUsePatchwork( true );
WP_Mock::bootstrap();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment