This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE: mnt/d/WordPress-Themes/themes/lightning/comments.php | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
LINE 28: WARNING Mismatched placeholders is probably an error (WordPress.WP.I18n.MismatchedPlaceholders) | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
26: » » <h2·class="comments-title"> | |
27: » <?php | |
>> 28: » printf(·_nx(·'One·thought·on·“%2$s”',·'%1$s·thoughts·on·“%2$s”',·get_comments_number(),·'comments·title',·'lightning'·), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Api_Docs_Page | |
* | |
* @package My_Plugin\Routes\Endpoints | |
*/ | |
namespace My_Plugin\Tests\Routes\Endpoints; | |
use WP_REST_Request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Assuming we have ACF. | |
$rows = get_field('images'); | |
// Regular ACF query with 10 images in repeater yeilds 34 queries | |
foreach ($rows as $row) : | |
$image_id = $row['image']; | |
$image = wp_get_attachment_image_src($image_id, 'your-custom-image-size'); | |
echo '<img src="'. $image[0] . '" width="'. $image[1] . '" height="'. $image[2] . '" />'; | |
endforeach; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = // email | |
name = // name | |
username = // username | |
signingkey = // your sign in key | |
[help] | |
autocorrect = 0 | |
[diff] | |
tool = default-difftool | |
[difftool "default-difftool"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE: ...wp-graphql/src/Connection/Themes.php | |
---------------------------------------------------------------------- | |
FOUND 1 ERROR AFFECTING 1 LINE | |
---------------------------------------------------------------------- | |
1 | ERROR | Missing file doc comment | |
| | (Squiz.Commenting.FileComment.Missing) | |
---------------------------------------------------------------------- | |
FILE: ...wp-graphql/src/Connection/Comments.php | |
---------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
app: | |
image: wordpress:5.2.0-php7.2-fpm | |
container_name: wptest-app | |
depends_on: | |
- db | |
- redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require-dev": { | |
"pheromone/phpcs-security-audit": "^2.0", | |
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", | |
"roave/security-advisories": "dev-master", | |
"phpcompatibility/php-compatibility": "^9.2", | |
"wp-coding-standards/wpcs": "^2.1" | |
}, | |
"scripts": { | |
"phpcs-i": "@php vendor/bin/phpcs -i", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The random string generator helper | |
* | |
* Solution implemented from http://stackoverflow.com/a/13733588/1056679 | |
* | |
* Usage: CLI: php random.php {length} | |
* length - length of the random string to generage | |
* | |
* @since 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* !!WARNING!! | |
* This script will delete everything you have in wordpress. | |
* I use it only when developing something that requires me to delete everything, e.g. importer. | |
* You can comment some parts out if you need to quickly delete just posts, or pages or so, but still be very careful!!! | |
* | |
* @author Denis Žoljom (https://github.com/dingo-d) | |
* @license Free to use at your own risk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "cmd+shift+[Period]", | |
"command": "editor.action.insertSnippet", | |
"args": { | |
"snippet": "error_log( print_r( , true ) );" | |
} | |
}, | |
{ | |
"key": "cmd+shift+m", |