Skip to content

Errors when hooking into wp_insert_post #5788

@jeherve

Description

@jeherve

On some sites, the following warnings are displayed on all pages:

Warning: Missing argument 2 for Publicize::save_publicized() in /wp-content/plugins/jetpack/modules/publicize/publicize-jetpack.php on line 426

Warning: Missing argument 3 for Publicize::save_publicized() in /wp-content/plugins/jetpack/modules/publicize/publicize-jetpack.php on line 426

Warning: Missing argument 2 for Jetpack_Sync_Module_Posts::send_published() in /wp-content/plugins/jetpack/sync/class.jetpack-sync-module-posts.php on line 189

Warning: Missing argument 3 for Jetpack_Sync_Module_Posts::send_published() in /wp-content/plugins/jetpack/sync/class.jetpack-sync-module-posts.php on line 189

I suspect it comes from a conflict with another plugin that hooks into wp_insert_post as well, but it would be nice if we could avoid the warnings on our end.

Reported here:
https://wordpress.org/support/topic/missing-argument-2-for-jetpack_sync_module_postssend_published/

Metadata

Metadata

Assignees

Labels

BugWhen a feature is broken and / or not performing as intended[Feature] PublicizeNow Jetpack Social, auto-sharing[Package] Sync[Pri] High

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions