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: ...@@ -7,7 +7,7 @@ variables:
CODECEPTION_PARALLEL: 1 CODECEPTION_PARALLEL: 1
# only for free plugin # 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: integration:earliest:
when: manual when: manual
......
*** plugin-template Changelog *** *** plugin-template Changelog ***
## [1.0.0] - 2017-06-20 ## [1.0.0] - 2022-10-01
### Added ### Added
- use https://keepachangelog.com/en/1.0.0/ standards in your changelog - First Release!
##### Added,Fixed
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
* Domain Path: /lang/ * Domain Path: /lang/
* ​ * ​
* Requires at least: 5.7 * Requires at least: 5.7
* Tested up to: 6.0 * Tested up to: 6.1
* WC requires at least: 6.6 * WC requires at least: 7.0
* WC tested up to: 7.0 * WC tested up to: 7.4
* Requires PHP: 7.2 * Requires PHP: 7.2
* ​ * ​
* Copyright 2022 WP Desk Ltd. * Copyright 2022 WP Desk Ltd.
...@@ -49,6 +49,7 @@ $plugin_dir = __DIR__; ...@@ -49,6 +49,7 @@ $plugin_dir = __DIR__;
// todo: only for paid plugins. // todo: only for paid plugins.
$plugin_shops = [ $plugin_shops = [
'default' => 'https://www.wpdesk.net/', 'default' => 'https://www.wpdesk.net/',
'pl_PL' => 'https://www.wpdesk.pl/',
]; ];
$requirements = [ $requirements = [
......
...@@ -17,7 +17,21 @@ return [ ...@@ -17,7 +17,21 @@ return [
Finder::create() Finder::create()
->files() ->files()
->ignoreVCS( true ) ->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( [ ->exclude( [
'doc', 'doc',
'test', 'test',
......
<?php <?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_errors', '1');
ini_set('display_startup_errors', '1'); ini_set('display_startup_errors', '1');
......
...@@ -7,17 +7,5 @@ require_once __DIR__ . '/../../vendor/autoload.php'; ...@@ -7,17 +7,5 @@ require_once __DIR__ . '/../../vendor/autoload.php';
error_reporting( E_ALL & ~E_DEPRECATED ); 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::setUsePatchwork( true );
WP_Mock::bootstrap(); WP_Mock::bootstrap();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment