Changeset 3058092
- Timestamp:
- 03/25/2024 09:07:03 AM (4 months ago)
- Location:
- wp-inci
- Files:
-
- 634 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-inci/trunk/.wp-env.json
r2993742 r3058092 18 18 "WP_DEBUG_LOG": true, 19 19 "WP_DEBUG_DISPLAY": false, 20 "SCRIPT_DEBUG": true 20 "SCRIPT_DEBUG": true, 21 "ALTERNATE_WP_CRON": true 21 22 } 22 23 } -
wp-inci/trunk/admin/class-wp-inci-admin.php
r2851432 r3058092 163 163 wp_register_style( 164 164 'wp-inci-admin-css', 165 $this->admin_url . '/css/wp-inci-admin.min.css', 166 array(), 167 $this->version 165 $this->admin_url . '/css/wp-inci-admin.min.css' 168 166 ); 169 167 wp_enqueue_style( 'wp-inci-admin-css' ); … … 183 181 'wp-inci-admin-js', 184 182 $this->admin_url . '/js/wp-inci-admin.min.js', 185 array( 'jquery' ), 186 $this->version 183 array( 'jquery' ) 187 184 ); 188 185 wp_enqueue_script( 'wp-inci-admin-js' ); … … 215 212 $new_actions = array(); 216 213 217 if ( plugin_basename( $this->plugin_file) === $plugin_file ) {214 if ( plugin_basename( ) === $plugin_file ) { 218 215 $new_actions['wi_settings'] = '<a href="' . esc_url( admin_url( 'options-general.php?page=wi_settings' ) ) . '">' . __( 219 216 'Settings', -
wp-inci/trunk/class-wp-inci-fields.php
r2884717 r3058092 141 141 ); 142 142 143 if ( $escaped_value == $active_value ) {143 if ( $escaped_value == $active_value ) { 144 144 $args['checked'] = 'checked="checked"'; 145 145 } else { … … 310 310 'jquery-autocomplete', 311 311 $this->url . '/admin/js/jquery.autocomplete.min.js', 312 array( 'jquery' ), 313 $this->version 312 array( 'jquery' ) 314 313 ); 315 314 wp_register_script( 316 315 'search-ajax', 317 316 $this->url . '/admin/js/search-ajax.min.js', 318 array( 'jquery', 'jquery-autocomplete', 'jquery-ui-sortable' ), 319 $this->version 317 array( 'jquery', 'jquery-autocomplete', 'jquery-ui-sortable' ) 320 318 ); 321 319 wp_localize_script( … … 333 331 'multiple-search-ajax', 334 332 $this->url . '/admin/js/multiple-search-ajax.min.js', 335 array( 'jquery' ), 336 $this->version 333 array( 'jquery' ) 337 334 ); 338 335 wp_localize_script( -
wp-inci/trunk/class-wp-inci.php
r2993742 r3058092 25 25 class WP_Inci { 26 26 27 28 27 /** 29 28 * A static reference to track the single instance of this class. … … 34 33 35 34 /** 36 * Plugin version. 35 * Options array containing all options for this plugin. 36 * 37 * @since 1.0 38 * @var array 39 */ 40 public $options = array(); 41 42 /** 43 * This plugin url. 37 44 * 38 45 * @since 1.0 39 46 * @var string 40 47 */ 41 public $version = '1.6.4';42 43 /**44 * Release.45 *46 * @since 1.047 * @var string48 */49 public $release = 1;50 /**51 * Minor.52 *53 * @since 1.054 * @var string55 */56 public $minor = 6;57 /**58 * Revision.59 *60 * @since 1.061 * @var string62 */63 public $revision = 4;64 65 /**66 * Plugin name67 *68 * @since 1.069 * @var string70 */71 public $plugin_name = 'WP INCI';72 73 /**74 * Main plugin slug.75 *76 * @since 1.077 * @var string78 */79 public $plugin_slug = 'wp-inci';80 81 /**82 * Setting from main file to __FILE__.83 *84 * @since 1.085 * @var string86 */87 public $plugin_file = 'wp-inci/wp-inci.php';88 89 /**90 * Options array containing all options for this plugin.91 *92 * @since 1.093 * @var array94 */95 public $options = array();96 97 /**98 * This plugin url.99 *100 * @since 1.0101 * @var string102 */103 48 public $url = ''; 104 49 … … 110 55 public function __construct() { 111 56 $this->init(); 112 /**113 * Split version for more detail.114 */115 $split_version = explode( '.', $this->version );116 $this->release = $split_version[0];117 $this->minor = $split_version[1];118 $this->revision = $split_version[2];119 57 120 58 /** … … 190 128 $url = get_term_meta( $term_id, 'source_url', true ); 191 129 192 echo '<a href="' . $url . '" target="_blank">' . $term->name. ' ↗</a>';130 echo '<a href="' . . ' ↗</a>'; 193 131 } 194 132 -
wp-inci/trunk/package.json
r2993742 r3058092 19 19 }, 20 20 "devDependencies": { 21 "@wordpress/env": "^ 8.4.0",22 "clean-css-cli": "^5.6. 1",23 "imagemin-cli": "^ 7.0.0",21 "@wordpress/env": "^.0", 22 "clean-css-cli": "^5.6.", 23 "imagemin-cli": "^.0", 24 24 "npm-run-all": "^4.1.5", 25 25 "onchange": "^7.1.0", 26 "uglify-js": "^3.17. 2"26 "uglify-js": "^3.17." 27 27 } 28 28 } -
wp-inci/trunk/phpcs.xml.dist
r2851446 r3058092 1 1 <?xml version="1.0"?> 2 <ruleset name="WordPress Theme Coding Standards"> 3 <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> 4 <!-- See https://github.com/WordPress/WordPress-Coding-Standards --> 5 <!-- See https://github.com/WPTRT/WPThemeReview --> 6 <!-- See https://github.com/PHPCompatibility/PHPCompatibilityWP --> 2 <ruleset name="WordPress Plugin Coding Standards"> 7 3 8 <!-- Set a description for this ruleset. --> 9 <description>A custom set of code standard rules to check for WordPress themes.</description> 4 <description>A custom set of code standard rules to check for WordPress plugins.</description> 10 5 6 7 8 9 11 10 12 <!-- 13 ############################################################################# 14 COMMAND LINE ARGUMENTS 15 https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml 16 ############################################################################# 17 --> 18 19 <!-- Pass some flags to PHPCS: 20 p flag: Show progress of the run. 21 s flag: Show sniff codes in all reports. 22 --> 23 <arg value="ps"/> 24 25 <!-- Strip the filepaths down to the relevant bit. --> 26 <arg name="basepath" value="./"/> 27 28 <!-- Check up to 8 files simultaneously. --> 29 <arg name="parallel" value="8"/> 30 31 <!-- Check PHP files only. JavaScript and CSS files are checked separately using the @wordpress/scripts package. --> 32 <arg name="extensions" value="php"/> 33 34 <!-- Check all files in this directory and the directories below it. --> 35 <file>.</file> 36 37 <!-- Exclude patterns. --> 38 <exclude-pattern>/vendor/*</exclude-pattern> 39 <exclude-pattern>/node_modules/*</exclude-pattern> 40 41 42 <!-- 43 ############################################################################# 44 USE THE WordPress AND THE Theme Review RULESET 45 ############################################################################# 46 --> 11 <arg value="sp"/> 12 <arg name="basepath" value="."/> 13 <arg name="colors"/> 14 <arg name="extensions" value="php"/> 15 <arg name="parallel" value="50"/> 47 16 48 17 <rule ref="WordPress"> 49 <!-- This rule does not apply here since the _s prefix should be changed by the theme author. -->50 18 <exclude name="WordPress.NamingConventions.PrefixAllGlobals.ShortPrefixPassed"/> 51 19 </rule> 52 <rule ref="WPThemeReview"/>53 20 54 <!-- 55 ############################################################################# 56 SNIFF SPECIFIC CONFIGURATION 57 ############################################################################# 58 --> 21 <arg name="cache" value="./phpcs.cache"/> 59 22 60 <!-- Verify that the text_domain is set to the desired text-domain. 61 Multiple valid text domains can be provided as a comma-delimited list. --> 23 <rule ref="WordPress-Docs"/> 24 62 25 <rule ref="WordPress.WP.I18n"> 63 26 <properties> 64 <property name="text_domain" type="array" value=" wp-inci"/>27 <property name="text_domain" type="array" value=""/> 65 28 </properties> 66 29 </rule> 67 30 68 <!-- Removes check for deregister jquery. -->69 <rule ref="WPThemeReview.CoreFunctionality.NoDeregisterCoreScript">70 <severity>0</severity>71 </rule>72 73 <!-- Allow for theme specific exceptions to the file name rules based on the theme hierarchy. -->74 <rule ref="WordPress.Files.FileName">75 <properties>76 <property name="is_plugin" value="true"/>77 </properties>78 </rule>79 80 <!-- Set the minimum supported WP version. This is used by several sniffs.81 The minimum version set here should be in line with the minimum WP version82 as set in the "Requires at least" tag in the readme.txt file. -->83 31 <config name="minimum_supported_wp_version" value="5.9"/> 84 32 85 33 <rule ref="WordPress.Arrays.MultipleStatementAlignment"> 86 34 <properties> 87 <!-- No need to adjust alignment of large arrays when the item with the largest key is removed. -->88 35 <property name="exact" value="false"/> 89 <!-- Don't align multi-line items if ALL items in the array are multi-line. -->90 36 <property name="alignMultilineItems" value="!=100"/> 91 <!-- Array assignment operator should always be on the same line as the array key. -->92 37 <property name="ignoreNewlines" value="false"/> 93 38 </properties> 94 39 </rule> 95 40 96 <!--97 #############################################################################98 USE THE PHPCompatibility RULESET99 #############################################################################100 -->101 102 41 <config name="testVersion" value="7.4-"/> 103 <rule ref="PHPCompatibilityWP"/> 42 <rule ref="PHPCompatibility"> 43 <exclude name="PHPCompatibility.PHP.NewConstants.t_finallyFound"/> 44 <exclude name="PHPCompatibility.PHP.NewConstants.t_yieldFound"/> 45 <exclude name="PHPCompatibility.PHP.NewConstants.t_ellipsisFound"/> 46 <exclude name="PHPCompatibility.PHP.NewConstants.t_powFound"/> 47 <exclude name="PHPCompatibility.PHP.NewConstants.t_pow_equalFound"/> 48 <exclude name="PHPCompatibility.PHP.NewConstants.t_spaceshipFound"/> 49 <exclude name="PHPCompatibility.PHP.NewConstants.t_coalesceFound"/> 50 <exclude name="PHPCompatibility.PHP.NewConstants.t_coalesce_equalFound"/> 51 <exclude name="PHPCompatibility.PHP.NewConstants.t_yield_fromFound"/> 52 <exclude name="PHPCompatibility.PHP.NewConstants.t_traitFound"/> 53 <exclude name="PHPCompatibility.Operators.NewOperators.t_coalesceFound"/> 54 <exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_columnFound"/> 55 </rule> 104 56 105 57 </ruleset> -
wp-inci/trunk/readme.txt
r2993742 r3058092 4 4 Tags: INCI, ingredients, cosmetics, makeup 5 5 Requires at least: 5.9 6 Tested up to: 6. 47 Stable tag: 1.6. 46 Tested up to: 6. 7 Stable tag: 1.6. 8 8 Requires PHP: 7.4 9 9 License: GPLv3 or later … … 50 50 51 51 == Changelog == 52 53 54 55 52 56 53 57 = 1.6.4 = -
wp-inci/trunk/vendor/composer/installed.json
r2993742 r3058092 328 328 { 329 329 "name": "johnbillion/extended-cpts", 330 "version": "5.0. 5",331 "version_normalized": "5.0. 5.0",330 "version": "5.0.", 331 "version_normalized": "5.0..0", 332 332 "source": { 333 333 "type": "git", 334 334 "url": "https://github.com/johnbillion/extended-cpts.git", 335 "reference": " 612a5f1c25a911d8d8b7a0fb2aa5b9ebed95607d"335 "reference": "" 336 336 }, 337 337 "dist": { 338 338 "type": "zip", 339 "url": "https://api.github.com/repos/johnbillion/extended-cpts/zipball/ 612a5f1c25a911d8d8b7a0fb2aa5b9ebed95607d",340 "reference": " 612a5f1c25a911d8d8b7a0fb2aa5b9ebed95607d",339 "url": "https://api.github.com/repos/johnbillion/extended-cpts/zipball/", 340 "reference": "", 341 341 "shasum": "" 342 342 }, … … 349 349 "dealerdirect/phpcodesniffer-composer-installer": "^0.7", 350 350 "johnbillion/falsey-assertequals-detector": "*", 351 "lucatume/wp-browser": "^3.0", 351 "johnbillion/plugin-infrastructure": "dev-trunk", 352 "lucatume/wp-browser": "^3.0.21", 352 353 "phpcompatibility/phpcompatibility-wp": "^2", 353 354 "phpstan/phpstan": "^1.0", 354 355 "phpstan/phpstan-phpunit": "^1.0", 355 "phpunit/phpunit": "^9",356 356 "roots/wordpress-core-installer": "^1.0.0", 357 "roots/wordpress-full": " ~6.1.0",357 "roots/wordpress-full": "", 358 358 "szepeviktor/phpstan-wordpress": "1.1.6", 359 "vlucas/phpdotenv": "^3",360 "wp-cli/core-command": "^2",361 "wp-cli/db-command": "^2",362 359 "wp-coding-standards/wpcs": "2.3.0" 363 360 }, 364 "suggest": { 365 "seravo/wp-custom-bulk-actions": "Custom Bulk Actions", 366 "wpackagist-plugin/rewrite-testing": "Rewrite Rule Testing" 367 }, 368 "time": "2023-08-21T00:09:00+00:00", 361 "time": "2023-11-17T01:34:02+00:00", 369 362 "type": "library", 370 363 "extra": { 371 "wordpress-install-dir": " tests/wordpress"364 "wordpress-install-dir": "s/wordpress" 372 365 }, 373 366 "installation-source": "dist", … … 395 388 "support": { 396 389 "issues": "https://github.com/johnbillion/extended-cpts/issues", 397 "source": "https://github.com/johnbillion/extended-cpts/tree/5.0. 5"390 "source": "https://github.com/johnbillion/extended-cpts/tree/5.0." 398 391 }, 399 392 "funding": [ -
wp-inci/trunk/vendor/composer/installed.php
r2993742 r3058092 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => '2 9dc43b9ebee66adcdce77f59d50f0a48e453520',6 'reference' => '2', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 39 39 ), 40 40 'johnbillion/extended-cpts' => array( 41 'pretty_version' => '5.0. 5',42 'version' => '5.0. 5.0',43 'reference' => ' 612a5f1c25a911d8d8b7a0fb2aa5b9ebed95607d',41 'pretty_version' => '5.0.', 42 'version' => '5.0..0', 43 'reference' => '', 44 44 'type' => 'library', 45 45 'install_path' => __DIR__ . '/../johnbillion/extended-cpts', … … 50 50 'pretty_version' => 'dev-main', 51 51 'version' => 'dev-main', 52 'reference' => '2 9dc43b9ebee66adcdce77f59d50f0a48e453520',52 'reference' => '2', 53 53 'type' => 'library', 54 54 'install_path' => __DIR__ . '/../../', -
wp-inci/trunk/vendor/johnbillion/extended-cpts/README.md
r2993742 r3058092 1 [![Build Status](https://img.shields.io/github/actions/workflow/status/johnbillion/extended-cpts/ test.yml?branch=develop&style=flat-square)](https://github.com/johnbillion/extended-cpts/actions)1 [![Build Status](https://img.shields.io/github/actions/workflow/status/johnbillion/extended-cpts/.yml?branch=develop&style=flat-square)](https://github.com/johnbillion/extended-cpts/actions) 2 2 [![Stable Release](https://img.shields.io/packagist/v/johnbillion/extended-cpts.svg?style=flat-square)](https://packagist.org/packages/johnbillion/extended-cpts) 3 3 [![License](https://img.shields.io/badge/license-GPL_v2%2B-blue.svg?style=flat-square)](https://github.com/johnbillion/extended-cpts/blob/trunk/LICENSE) … … 63 63 - Tested up to PHP 8.2 64 64 * **WordPress:** 5.6 65 - Tested up to WP 6. 365 - Tested up to WP 6. 66 66 67 67 ## Installation ## -
wp-inci/trunk/vendor/johnbillion/extended-cpts/composer.json
r2942387 r3058092 2 2 "name": "johnbillion/extended-cpts", 3 3 "description": "A library which provides extended functionality to WordPress custom post types and taxonomies.", 4 "homepage": "https://github.com/johnbillion/extended-cpts/",5 4 "license": "GPL-2.0-or-later", 6 5 "authors": [ … … 10 9 } 11 10 ], 12 "config": { 13 "sort-packages": true, 14 "preferred-install": "dist", 15 "allow-plugins": { 16 "dealerdirect/phpcodesniffer-composer-installer": true, 17 "roots/wordpress-core-installer": true 18 } 19 }, 20 "extra": { 21 "wordpress-install-dir": "tests/wordpress" 22 }, 11 "homepage": "https://github.com/johnbillion/extended-cpts/", 23 12 "require": { 24 13 "php": ">= 7.4.0", … … 29 18 "dealerdirect/phpcodesniffer-composer-installer": "^0.7", 30 19 "johnbillion/falsey-assertequals-detector": "*", 31 "lucatume/wp-browser": "^3.0", 20 "johnbillion/plugin-infrastructure": "dev-trunk", 21 "lucatume/wp-browser": "^3.0.21", 32 22 "phpcompatibility/phpcompatibility-wp": "^2", 33 23 "phpstan/phpstan": "^1.0", 34 24 "phpstan/phpstan-phpunit": "^1.0", 35 "phpunit/phpunit": "^9",36 25 "roots/wordpress-core-installer": "^1.0.0", 37 "roots/wordpress-full": " ~6.1.0",26 "roots/wordpress-full": "", 38 27 "szepeviktor/phpstan-wordpress": "1.1.6", 39 "vlucas/phpdotenv": "^3",40 "wp-cli/core-command": "^2",41 "wp-cli/db-command": "^2",42 28 "wp-coding-standards/wpcs": "2.3.0" 43 },44 "scripts": {45 "post-update-cmd": [46 "@php -r \"! file_exists( 'tests/.env' ) && copy( 'tests/.env.dist', 'tests/.env' );\""47 ],48 "test:cs": [49 "phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs --basepath='./' ."50 ],51 "test:analyze": [52 "phpstan analyze --memory-limit=1024M"53 ],54 "test:integration": [55 "codecept run integration"56 ],57 "test": [58 "@test:cs",59 "@test:analyze",60 "@test:integration"61 ]62 29 }, 63 30 "autoload": { … … 70 37 ] 71 38 }, 72 "suggest": { 73 "seravo/wp-custom-bulk-actions": "Custom Bulk Actions", 74 "wpackagist-plugin/rewrite-testing": "Rewrite Rule Testing" 39 "config": { 40 "allow-plugins": { 41 "dealerdirect/phpcodesniffer-composer-installer": true, 42 "roots/wordpress-core-installer": true 43 }, 44 "preferred-install": "dist", 45 "sort-packages": true 46 }, 47 "extra": { 48 "wordpress-install-dir": "vendor/wordpress/wordpress" 49 }, 50 "scripts": { 51 "test": [ 52 "@composer validate --strict --no-check-lock", 53 "@test:phpstan", 54 "@test:phpcs", 55 "@test:integration" 56 ], 57 "test:destroy": [ 58 "COMPOSE_PROJECT_NAME=extended-cpts docker compose down --volumes --remove-orphans" 59 ], 60 "test:integration": [ 61 "integration-tests" 62 ], 63 "test:phpcs": [ 64 "phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs.json --basepath='./' ." 65 ], 66 "test:phpstan": [ 67 "codecept build", 68 "phpstan analyze --memory-limit=1024M" 69 ], 70 "test:start": [ 71 "COMPOSE_PROJECT_NAME=extended-cpts docker compose up -d" 72 ], 73 "test:stop": [ 74 "COMPOSE_PROJECT_NAME=extended-cpts docker compose down" 75 ] 75 76 } 76 77 } -
wp-inci/trunk/vendor/johnbillion/extended-cpts/extended-cpts.php
r2993742 r3058092 10 10 * @copyright 2012-2023 John Blackbourn 11 11 * @license GPL v2 or later 12 * @version 5.0. 512 * @version 5.0. 13 13 * 14 14 * This program is free software; you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.