Skip to content

Commit

Permalink
Update plugin update checker; switch to 10up toolkit; PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Jul 11, 2023
1 parent ccb07a8 commit 5c2e758
Show file tree
Hide file tree
Showing 100 changed files with 29,053 additions and 23,823 deletions.
6 changes: 0 additions & 6 deletions .browserslistrc

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
3 changes: 0 additions & 3 deletions .stylelintrc

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

18 changes: 4 additions & 14 deletions 10up-experience.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: 10up Experience
* Plugin URI: https://github.com/10up/10up-experience
* Description: The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10ups best practices.
* Version: 1.10.1
* Version: 1.10.2
* Author: 10up
* Author URI: https://10up.com
* License: GPLv2 or later
Expand All @@ -17,9 +17,9 @@

namespace TenUpExperience;

use Puc_v4_Factory;
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

define( 'TENUP_EXPERIENCE_VERSION', '1.10.1' );
define( 'TENUP_EXPERIENCE_VERSION', '1.10.2' );
define( 'TENUP_EXPERIENCE_DIR', __DIR__ );
define( 'TENUP_EXPERIENCE_FILE', __FILE__ );

Expand Down Expand Up @@ -49,7 +49,7 @@ function( $class_name ) {
}
);

$tenup_plugin_updater = Puc_v4_Factory::buildUpdateChecker(
$tenup_plugin_updater = PucFactory::buildUpdateChecker(
'https://github.com/10up/10up-experience/',
__FILE__,
'10up-experience'
Expand All @@ -59,16 +59,6 @@ function( $class_name ) {
$tenup_plugin_updater->setAuthentication( TENUP_EXPERIENCE_GITHUB_KEY );
}

$tenup_plugin_updater->addResultFilter(
function( $plugin_info, $http_response = null ) {
$plugin_info->icons = array(
'svg' => plugins_url( '/assets/img/tenup.svg', __FILE__ ),
);

return $plugin_info;
}
);

// Define a constant if we're network activated to allow plugin to respond accordingly.
$network_activated = Utils\is_network_activated( plugin_basename( __FILE__ ) );

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).

## [1.10.2] - 2023-07-11

* Remove WP Acceptance
* Upgrade build process to 10up Toolkit
* Upgrade Plugin Update Checker

## [1.10.1] - 2022-09-13
### Fixed
* Fix bug allowing admin username user to authenticate
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Requirements

* PHP 5.4+
* PHP 7.2+
* [WordPress](http://wordpress.org) 4.7+

## Installation
Expand Down
3 changes: 2 additions & 1 deletion assets/js/notices.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { tenupWelcome, ajaxurl } from 'window'; /* eslint-disable-line import/no-unresolved */
import jQuery from 'jquery'; /* eslint-disable-line import/no-unresolved */

const { tenupWelcome, ajaxurl } = window;

const dismiss = document.querySelector('.notice-10up-experience-welcome');

if (dismiss) {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/passwords.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tenupPasswords } from 'window'; /* eslint-disable-line import/no-unresolved */
const { tenupPasswords } = window;

const passwordWrapper = document.querySelectorAll('#your-profile .wp-pwd, #resetpassform .wp-pwd');

Expand Down
16 changes: 0 additions & 16 deletions babel.config.js

This file was deleted.

9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"10up"
],
"homepage": "https://github.com/10up/10up-experience",
"license": ["GPL-2.0-or-later"],
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "10up",
Expand All @@ -25,16 +27,15 @@
"source": "https://github.com/10up/10up-experience"
},
"require": {
"yahnis-elsts/plugin-update-checker": "4.13",
"yahnis-elsts/plugin-update-checker": "5.1",
"bjeavons/zxcvbn-php": "^1.0"
},
"require-dev": {
"10up/phpcs-composer": "dev-master",
"10up/wpacceptance": "dev-master",
"squizlabs/php_codesniffer": "3.*"
},
"scripts": {
"lint": "phpcs .",
"lint-fix": "phpcbf ."
}
}
}
Loading

0 comments on commit 5c2e758

Please sign in to comment.