Open NickGreen opened 7 months ago
Some of these things are pedantic but you asked for widest range
and The WordPress way
😄
index.php
file in the root folder and inside the includes folderdefine( 'FEEDLAND_DEFAULT_USERNAME', 'davewiner' );
wp_register_script
has recently changed the last argument from a bool to an array; it might be more forward-compatible and have better intent to replace false
with array( 'in_footer' => false )
(see notes about WP6.3)meta.load-css
mixin to prepend all of it with an id/class/something and thus prevent any CSS conflicts with the rest of the theme;Universal.Operators.DisallowShortTernary.Found
? I always do that...self-update.php
file doesn't have a check for ABSPATH
... like defined( 'ABSPATH' ) || exit;
at the top.user-agent
in the wp_remote_get
options ... WP will add one that includes the WP version and the blog name which is much more descriptive;self-update.php
returns void but the function is marked as returning array|false
define
should we do a defined || define
check to allow overwriting constants in wp-config
or something? For example, I can see the FEEDLAND_DEFAULT_SERVER
constant as something we would want to overwrite to test against a staging server, e.g.BLOGROLL_OPTIONS
... first of all, it's not prefixed, and second, why is it screaming at me? 😅 declare( strict_types = 1 );
to all our new projects ... it might be a good idea to do that here too; pewaj1-13Z-p2wp_enqueue_scripts
with the conditionals has_shortcode()
? Or would that not work because that only checks the post content and no the sidebar?That's it for now, I'll add more if I see anything else 😄
Since the ID of all blogrolls is idBlogrollContainer
this can lead to HTML validation errors if, for some reason, the blogroll is outputted more than once per page. Maybe the user wants to output it for multiple accounts?
What if we appended the value of wp_unique_id()
to it?
index.php
file in the root folder and inside the includes folderwp_register_script
replace false
with array( 'in_footer' => false )
Universal.Operators.DisallowShortTernary.Found
self-update.php
file doesn't have a check for ABSPATH
... like defined( 'ABSPATH' ) || exit;
at the top.user-agent
in the wp_remote_get
options self-update.php
returns void but the function is marked as returning array|false
define
do a defined || define
check to allow overwriting constants in wp-config
BLOGROLL_OPTIONS
variable namedeclare( strict_types = 1 );
wp_enqueue_scripts
with the conditionals has_shortcode()
Synopsis
This issue is a placeholder for a code review request. There are a couple of places that would be very helpful to focus:
Details