Skip to content

Commit

Permalink
AT-716: Update Inpsyde in code to Syde (license, copyright, text)
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk authored Jan 27, 2025
1 parent 28c254f commit 4f24bfe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 67 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A WordPress plugin that completely disables comments as a WordPress feature.
* [Installation](#installation)
* [Crafted by Syde](#crafted-by-syde)
* [Credits](#credits)
* [License](#license)
* [Copyright and License](#copyright-and-license)
* [Contributing](#contributing)

## Features
Expand Down Expand Up @@ -77,9 +77,9 @@ The team at [Syde](https://syde.com) is engineering the Web since 2006.

Originally born as a fork of https://github.com/bueltge/remove-comments-absolutely.

## License
## Copyright and License

This repository is a free software, and is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See [LICENSE](./LICENSE) for complete license.
This package is [free software](https://www.gnu.org/philosophy/free-sw.en.html) distributed under the terms of the GNU General Public License version 2 or (at your option) any later version. For the full license, see [LICENSE](./LICENSE).

## Contributing

Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Inpsyde GmbH",
"email": "hello@inpsyde.com",
"homepage": "https://inpsyde.com/",
"name": "Syde GmbH",
"homepage": "https://syde.com/",
"email": "hello@syde.com",
"role": "Company"
}
],
Expand Down Expand Up @@ -46,6 +46,9 @@
"scripts": {
"cs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"psalm": "@php ./vendor/vimeo/psalm/psalm --no-suggestions --find-unused-psalm-suppress --no-diff --no-cache --no-file-cache",
"qa": ["@cs", "@psalm"]
"qa": [
"@cs",
"@psalm"
]
}
}
17 changes: 0 additions & 17 deletions disable-comments.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
<?php

/**
* This file is part of the "inpsyde-disable-comments" package.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @wordpress-plugin
* Plugin Name: Inpsyde Disable Comments
* Description: Entirely ditches comments as a WordPress feature.
* Version: 1.0.3
* License: GPLv2+
* Requires at least: 6.0
* Requires PHP: 7.4
* Update URI: false
Expand Down
20 changes: 0 additions & 20 deletions resources/templates/comments-template.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
<?php

/*
* This file is part of the "disable-comments" package.
*
* Copyright (C) 2023 Inpsyde GmbH
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

declare(strict_types=1);
23 changes: 0 additions & 23 deletions src/CommentsDisabler.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
<?php

/*
* This file is part of the "inpsyde-disable-comments" package.
*
* Copyright (C) 2023 Inpsyde GmbH
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

declare(strict_types=1);

namespace Inpsyde;
Expand Down Expand Up @@ -309,9 +289,6 @@ private function filterOptionsAndMetaboxes(): void

remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
foreach (get_post_types() as $postType) {
if (!is_string($postType)) {
continue;
}
remove_meta_box('commentstatusdiv', $postType, 'normal');
remove_meta_box('commentsdiv', $postType, 'normal');
remove_meta_box('trackbacksdiv', $postType, 'normal');
Expand Down

0 comments on commit 4f24bfe

Please sign in to comment.