Plugin Directory

Changeset 3058092

Timestamp:
03/25/2024 09:07:03 AM (4 months ago)
Author:
xlthlx
Message:

Version 1.6.5

Location:
wp-inci
Files:
634 added
12 edited

Legend:

Unmodified
Added
Removed
  • wp-inci/trunk/.wp-env.json

    r2993742 r3058092  
    1818    "WP_DEBUG_LOG": true,
    1919    "WP_DEBUG_DISPLAY": false,
    20     "SCRIPT_DEBUG": true
     20    "SCRIPT_DEBUG": true,
     21    "ALTERNATE_WP_CRON": true
    2122  }
    2223}
  • wp-inci/trunk/admin/class-wp-inci-admin.php

    r2851432 r3058092  
    163163            wp_register_style(
    164164                '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'
    168166            );
    169167            wp_enqueue_style( 'wp-inci-admin-css' );
     
    183181                'wp-inci-admin-js',
    184182                $this->admin_url . '/js/wp-inci-admin.min.js',
    185                 array( 'jquery' ),
    186                 $this->version
     183                array( 'jquery' )
    187184            );
    188185            wp_enqueue_script( 'wp-inci-admin-js' );
     
    215212            $new_actions = array();
    216213
    217             if ( plugin_basename( $this->plugin_file ) === $plugin_file ) {
     214            if ( plugin_basename( ) === $plugin_file ) {
    218215                $new_actions['wi_settings'] = '<a href="' . esc_url( admin_url( 'options-general.php?page=wi_settings' ) ) . '">' . __(
    219216                    'Settings',
  • wp-inci/trunk/class-wp-inci-fields.php

    r2884717 r3058092  
    141141            );
    142142
    143             if ( $escaped_value == $active_value ) {
     143            if ( $escaped_value == $active_value ) {
    144144                $args['checked'] = 'checked="checked"';
    145145            } else {
     
    310310                'jquery-autocomplete',
    311311                $this->url . '/admin/js/jquery.autocomplete.min.js',
    312                 array( 'jquery' ),
    313                 $this->version
     312                array( 'jquery' )
    314313            );
    315314            wp_register_script(
    316315                'search-ajax',
    317316                $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' )
    320318            );
    321319            wp_localize_script(
     
    333331                'multiple-search-ajax',
    334332                $this->url . '/admin/js/multiple-search-ajax.min.js',
    335                 array( 'jquery' ),
    336                 $this->version
     333                array( 'jquery' )
    337334            );
    338335            wp_localize_script(
  • wp-inci/trunk/class-wp-inci.php

    r2993742 r3058092  
    2525    class WP_Inci {
    2626
    27 
    2827        /**
    2928         * A static reference to track the single instance of this class.
     
    3433
    3534        /**
    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.
    3744         *
    3845         * @since 1.0
    3946         * @var   string
    4047         */
    41         public $version = '1.6.4';
    42 
    43         /**
    44          * Release.
    45          *
    46          * @since 1.0
    47          * @var   string
    48          */
    49         public $release = 1;
    50         /**
    51          * Minor.
    52          *
    53          * @since 1.0
    54          * @var   string
    55          */
    56         public $minor = 6;
    57         /**
    58          * Revision.
    59          *
    60          * @since 1.0
    61          * @var   string
    62          */
    63         public $revision = 4;
    64 
    65         /**
    66          * Plugin name
    67          *
    68          * @since 1.0
    69          * @var   string
    70          */
    71         public $plugin_name = 'WP INCI';
    72 
    73         /**
    74          * Main plugin slug.
    75          *
    76          * @since 1.0
    77          * @var   string
    78          */
    79         public $plugin_slug = 'wp-inci';
    80 
    81         /**
    82          * Setting from main file to __FILE__.
    83          *
    84          * @since 1.0
    85          * @var   string
    86          */
    87         public $plugin_file = 'wp-inci/wp-inci.php';
    88 
    89         /**
    90          * Options array containing all options for this plugin.
    91          *
    92          * @since 1.0
    93          * @var   array
    94          */
    95         public $options = array();
    96 
    97         /**
    98          * This plugin url.
    99          *
    100          * @since 1.0
    101          * @var   string
    102          */
    10348        public $url = '';
    10449
     
    11055        public function __construct() {
    11156            $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];
    11957
    12058            /**
     
    190128            $url  = get_term_meta( $term_id, 'source_url', true );
    191129
    192             echo '<a href="' . $url . '" target="_blank">' . $term->name . ' &#x2197;</a>';
     130            echo '<a href="' . . ' &#x2197;</a>';
    193131        }
    194132
  • wp-inci/trunk/package.json

    r2993742 r3058092  
    1919  },
    2020  "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",
    2424    "npm-run-all": "^4.1.5",
    2525    "onchange": "^7.1.0",
    26     "uglify-js": "^3.17.2"
     26    "uglify-js": "^3.17."
    2727  }
    2828}
  • wp-inci/trunk/phpcs.xml.dist

    r2851446 r3058092  
    11<?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">
    73
    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>
    105
     6
     7
     8
     9
    1110
    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"/>
    4716
    4817    <rule ref="WordPress">
    49         <!-- This rule does not apply here since the _s prefix should be changed by the theme author. -->
    5018        <exclude name="WordPress.NamingConventions.PrefixAllGlobals.ShortPrefixPassed"/>
    5119    </rule>
    52     <rule ref="WPThemeReview"/>
    5320
    54     <!--
    55     #############################################################################
    56     SNIFF SPECIFIC CONFIGURATION
    57     #############################################################################
    58     -->
     21    <arg name="cache" value="./phpcs.cache"/>
    5922
    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
    6225    <rule ref="WordPress.WP.I18n">
    6326        <properties>
    64             <property name="text_domain" type="array" value="wp-inci"/>
     27            <property name="text_domain" type="array" value=""/>
    6528        </properties>
    6629    </rule>
    6730
    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 version
    82          as set in the "Requires at least" tag in the readme.txt file. -->
    8331    <config name="minimum_supported_wp_version" value="5.9"/>
    8432
    8533    <rule ref="WordPress.Arrays.MultipleStatementAlignment">
    8634        <properties>
    87             <!-- No need to adjust alignment of large arrays when the item with the largest key is removed. -->
    8835            <property name="exact" value="false"/>
    89             <!-- Don't align multi-line items if ALL items in the array are multi-line. -->
    9036            <property name="alignMultilineItems" value="!=100"/>
    91             <!-- Array assignment operator should always be on the same line as the array key. -->
    9237            <property name="ignoreNewlines" value="false"/>
    9338        </properties>
    9439    </rule>
    9540
    96     <!--
    97     #############################################################################
    98     USE THE PHPCompatibility RULESET
    99     #############################################################################
    100     -->
    101 
    10241    <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>
    10456
    10557</ruleset>
  • wp-inci/trunk/readme.txt

    r2993742 r3058092  
    44Tags: INCI, ingredients, cosmetics, makeup
    55Requires at least: 5.9
    6 Tested up to: 6.4
    7 Stable tag: 1.6.4
     6Tested up to: 6.
     7Stable tag: 1.6.
    88Requires PHP: 7.4
    99License: GPLv3 or later
     
    5050
    5151== Changelog ==
     52
     53
     54
     55
    5256
    5357= 1.6.4 =
  • wp-inci/trunk/vendor/composer/installed.json

    r2993742 r3058092  
    328328        {
    329329            "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",
    332332            "source": {
    333333                "type": "git",
    334334                "url": "https://github.com/johnbillion/extended-cpts.git",
    335                 "reference": "612a5f1c25a911d8d8b7a0fb2aa5b9ebed95607d"
     335                "reference": ""
    336336            },
    337337            "dist": {
    338338                "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": "",
    341341                "shasum": ""
    342342            },
     
    349349                "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
    350350                "johnbillion/falsey-assertequals-detector": "*",
    351                 "lucatume/wp-browser": "^3.0",
     351                "johnbillion/plugin-infrastructure": "dev-trunk",
     352                "lucatume/wp-browser": "^3.0.21",
    352353                "phpcompatibility/phpcompatibility-wp": "^2",
    353354                "phpstan/phpstan": "^1.0",
    354355                "phpstan/phpstan-phpunit": "^1.0",
    355                 "phpunit/phpunit": "^9",
    356356                "roots/wordpress-core-installer": "^1.0.0",
    357                 "roots/wordpress-full": "~6.1.0",
     357                "roots/wordpress-full": "",
    358358                "szepeviktor/phpstan-wordpress": "1.1.6",
    359                 "vlucas/phpdotenv": "^3",
    360                 "wp-cli/core-command": "^2",
    361                 "wp-cli/db-command": "^2",
    362359                "wp-coding-standards/wpcs": "2.3.0"
    363360            },
    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",
    369362            "type": "library",
    370363            "extra": {
    371                 "wordpress-install-dir": "tests/wordpress"
     364                "wordpress-install-dir": "s/wordpress"
    372365            },
    373366            "installation-source": "dist",
     
    395388            "support": {
    396389                "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."
    398391            },
    399392            "funding": [
  • wp-inci/trunk/vendor/composer/installed.php

    r2993742 r3058092  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '29dc43b9ebee66adcdce77f59d50f0a48e453520',
     6        'reference' => '2',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    3939        ),
    4040        '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' => '',
    4444            'type' => 'library',
    4545            'install_path' => __DIR__ . '/../johnbillion/extended-cpts',
     
    5050            'pretty_version' => 'dev-main',
    5151            'version' => 'dev-main',
    52             'reference' => '29dc43b9ebee66adcdce77f59d50f0a48e453520',
     52            'reference' => '2',
    5353            'type' => 'library',
    5454            '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)
    22[![Stable Release](https://img.shields.io/packagist/v/johnbillion/extended-cpts.svg?style=flat-square)](https://packagist.org/packages/johnbillion/extended-cpts)
    33[![License](https://img.shields.io/badge/license-GPL_v2%2B-blue.svg?style=flat-square)](https://github.com/johnbillion/extended-cpts/blob/trunk/LICENSE)
     
    6363  - Tested up to PHP 8.2
    6464* **WordPress:** 5.6 
    65   - Tested up to WP 6.3
     65  - Tested up to WP 6.
    6666
    6767## Installation ##
  • wp-inci/trunk/vendor/johnbillion/extended-cpts/composer.json

    r2942387 r3058092  
    22    "name": "johnbillion/extended-cpts",
    33    "description": "A library which provides extended functionality to WordPress custom post types and taxonomies.",
    4     "homepage": "https://github.com/johnbillion/extended-cpts/",
    54    "license": "GPL-2.0-or-later",
    65    "authors": [
     
    109        }
    1110    ],
    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/",
    2312    "require": {
    2413        "php": ">= 7.4.0",
     
    2918        "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
    3019        "johnbillion/falsey-assertequals-detector": "*",
    31         "lucatume/wp-browser": "^3.0",
     20        "johnbillion/plugin-infrastructure": "dev-trunk",
     21        "lucatume/wp-browser": "^3.0.21",
    3222        "phpcompatibility/phpcompatibility-wp": "^2",
    3323        "phpstan/phpstan": "^1.0",
    3424        "phpstan/phpstan-phpunit": "^1.0",
    35         "phpunit/phpunit": "^9",
    3625        "roots/wordpress-core-installer": "^1.0.0",
    37         "roots/wordpress-full": "~6.1.0",
     26        "roots/wordpress-full": "",
    3827        "szepeviktor/phpstan-wordpress": "1.1.6",
    39         "vlucas/phpdotenv": "^3",
    40         "wp-cli/core-command": "^2",
    41         "wp-cli/db-command": "^2",
    4228        "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         ]
    6229    },
    6330    "autoload": {
     
    7037        ]
    7138    },
    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        ]
    7576    }
    7677}
  • wp-inci/trunk/vendor/johnbillion/extended-cpts/extended-cpts.php

    r2993742 r3058092  
    1010 * @copyright 2012-2023 John Blackbourn
    1111 * @license   GPL v2 or later
    12  * @version   5.0.5
     12 * @version   5.0.
    1313 *
    1414 * This program is free software; you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.