Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint the common modules #738

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Lint the common modules #738

merged 1 commit into from
Jul 2, 2024

Conversation

ingeniumed
Copy link
Contributor

Description

This will lint the two common modules that were skipped out on, in the previous PR. It's mainly spacing changes really so it's safe to do so and I ensure this won't be ignored in the future.

Steps to Test

  • Use the screen options on the dashboard to enable/disable edit flow widgets
  • Use the help screen to ensure everything renders correctly
  • Preview posts with custom statuses

@ingeniumed ingeniumed requested a review from hanifn July 1, 2024 03:03
@ingeniumed ingeniumed self-assigned this Jul 1, 2024
Copy link

@hanifn hanifn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just have a non-blocking question.

$url = trailingslashit(get_permalink()) . user_trailingslashit("$wp_rewrite->pagination_base/" . $i, 'single_paged');
else
$url = trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged');
} else if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we ever decided between else if vs elseif? Because I think there have been a PR or 2 before this where we've changed else if to elseif. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think so, though I'm not pedantic about that. I've always been used to writing else if hence why I stuck with it

@ingeniumed ingeniumed merged commit f994dd5 into develop Jul 2, 2024
2 of 3 checks passed
@ingeniumed ingeniumed deleted the lint/remaining-php-code branch July 2, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants