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

PHPStan for WordPress 1.1.5 compatbility #385

Merged
merged 2 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/class-convertkit-admin-bulk-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function enqueue_assets() {
wp_enqueue_style( 'convertkit-bulk-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/bulk-edit.css', array(), CONVERTKIT_PLUGIN_VERSION );

// Output Bulk Edit fields in the footer of the Administration screen.
add_action( 'in_admin_footer', array( $this, 'bulk_edit_fields' ), 10, 2 );
add_action( 'in_admin_footer', array( $this, 'bulk_edit_fields' ), 10 );

}

Expand Down
2 changes: 1 addition & 1 deletion admin/class-convertkit-admin-quick-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function quick_edit_inline_data( $post ) {
}

// Output Quick Edit fields in the footer of the Administration screen.
add_action( 'in_admin_footer', array( $this, 'quick_edit_fields' ), 10, 2 );
add_action( 'in_admin_footer', array( $this, 'quick_edit_fields' ), 10 );

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ private function get_cf7_forms() {
// Register Admin Settings section.
add_filter(
'convertkit_admin_settings_register_sections',
/**
* Register WishList Member as a section at Settings > ConvertKit.
*
* @param array $sections Settings Sections.
* @return array
*/
function( $sections ) {

// Bail if Contact Form 7 isn't enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ public function get_wlm_levels() {
// Register Admin Settings section.
add_filter(
'convertkit_admin_settings_register_sections',
/**
* Register WishList Member as a section at Settings > ConvertKit.
*
* @param array $sections Settings Sections.
* @return array
*/
function( $sections ) {

// Bail if WishList Member isn't enabled.
Expand Down