Skip to content

Commit

Permalink
Merge pull request #117 from Emilia-Capital/cleanup
Browse files Browse the repository at this point in the history
Cleanup - prep for new plugin
  • Loading branch information
jdevalk authored Jan 22, 2024
2 parents 1533233 + 9743781 commit d5eae6e
Show file tree
Hide file tree
Showing 33 changed files with 214 additions and 684 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Before filing a bug report or a feature request, be sure to read the contributio
## How to use GitHub
We use GitHub exclusively for well-documented bugs, feature requests and code contributions. Communication is always done in English.

To receive free support for this plugin, go to [the support formus](https://wordpress.org/support/plugin/yoast-comment-hacks/). Thanks for your understanding.
To receive free support for this plugin, go to [the support formus](https://wordpress.org/support/plugin/comment-hacks/). Thanks for your understanding.

## Security issues
Please do not report security issues here. Instead, report them per our [security policy](https://github.com/emilia-capital/comment-hacks/security/policy).
Expand Down
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Reporting a Vulnerability

You can report any security bugs found in the source code of this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/yoast-comment-hacks). The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
You can report any security bugs found in the source code of this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/comment-hacks). The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.

## Responding to Vulnerability Reports

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: yoast-comment-hacks # optional, remove if GitHub repo name matches SVN slug, including capitalization
SLUG: comment-hacks # optional, remove if GitHub repo name matches SVN slug, including capitalization
build:
name: Create Release
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

# Don't run the cronjob in this workflow on forks.
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Yoast')
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Emilia-Capital')

steps:
- name: Checkout code
Expand Down
21 changes: 7 additions & 14 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
Ref: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#custom-unit-test-classes
-->
<property name="custom_test_class_whitelist" type="array">
<element value="JoostBlog\WP\Comment\Tests\TestCase"/>
<element value="EmiliaProjects\WP\Comment\Tests\TestCase"/>
</property>

<!-- Provide the plugin specific prefix for use with namespace and hook names. -->
<property name="prefixes" type="array">
<element value="JoostBlog\WP\Comment"/>
<element value="yoast_comment"/>
<element value="EmiliaProjects\WP\Comment"/>
<element value="comment_hacks"/>
</property>
</properties>
</rule>
Expand All @@ -65,7 +65,7 @@
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="yoast-comment-hacks"/>
<element value="comment-hacks"/>
<element value="default"/>
</property>
</properties>
Expand All @@ -75,16 +75,14 @@
<properties>
<!-- Don't trigger on the main file as renaming it would deactivate the plugin. -->
<property name="excluded_files_strict_check" type="array">
<element value="yoast-comment-hacks.php"/>
<element value="comment-hacks.php"/>
</property>

<!-- Remove the following prefixes from the names of object structures. -->
<property name="oo_prefixes" type="array">
<element value="yoast_comment"/>
<element value="emiliaprojects_comment"/>
</property>
</properties>

<exclude-pattern>*/deprecated/deprecated-classes\.php$</exclude-pattern>
</rule>


Expand All @@ -95,11 +93,6 @@
#############################################################################
-->

<!-- Valid: These classes were deprecated to comply with the prefixing rules. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>*/deprecated/*\.php$</exclude-pattern>
</rule>

<rule ref="Yoast.Files.FileName.InvalidFunctionsFileName">
<exclude-pattern>/tests/bootstrap\.php</exclude-pattern>
</rule>
Expand All @@ -117,7 +110,7 @@
<properties>
<property name="prefixes" type="array" extend="true">
<element value="yst_comment"/>
<element value="JOOST_COMMENT_HACKS"/>
<element value="EMILIA_COMMENT_HACKS"/>
</property>
</properties>
</rule>
Expand Down
154 changes: 1 addition & 153 deletions .wordpress-org/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ module.exports = function( grunt ) {
// Define project configuration
var project = {
pluginVersion: pluginVersion,
pluginSlug: "yoast-comment-hacks",
pluginMainFile: "yoast-comment-hacks.php",
pluginSlug: "comment-hacks",
pluginMainFile: "comment-hacks.php",
paths: {
/**
* Gets the config path.
Expand Down
2 changes: 1 addition & 1 deletion Security.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

## Reporting Security Bugs

Please report security bugs found in this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/yoast-comment-hacks).
Please report security bugs found in this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/comment-hacks).

The Patchstack team will assist you with verification, CVE assignment, and notify me, the plugin developer.
Loading

0 comments on commit d5eae6e

Please sign in to comment.