Skip to content

Remove jetpack_publicize_post action#6567

Merged
enejb merged 1 commit intomasterfrom
remove/old-punlicize-actions
Mar 7, 2017
Merged

Remove jetpack_publicize_post action#6567
enejb merged 1 commit intomasterfrom
remove/old-punlicize-actions

Conversation

@enejb
Copy link
Copy Markdown
Member

@enejb enejb commented Mar 6, 2017

Since we are using jetpack_published_post instead instead.

  • deprecate the action.
  • remove listeners
  • update tests

This PR is mostly clean up.

Testing instructions:

  • Publicize should work as expected.

Since we are using jetpack_published_post instead instead.
- deprecate the action.
- remove listeners
- update tests
@enejb enejb requested review from gititon and lezama March 6, 2017 19:53
@enejb enejb self-assigned this Mar 6, 2017
@enejb enejb added [Feature] Publicize Now Jetpack Social, auto-sharing [Package] Sync [Status] Needs Review This PR is ready for review. labels Mar 6, 2017
* @param int The post ID
*/
do_action( 'jetpack_publicize_post', $post->ID );
do_action_deprecated( 'jetpack_publicize_post', $post->ID, '4.8.0', 'jetpack_published_post_flags' );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For anyone else reviewing this, do_action_deprecated() merged in to Core at 4.6.0 and as we support current and current - 1 (currently 4.7 and 4.6) we're fine to use this. 👍

Copy link
Copy Markdown
Member

@jeherve jeherve Mar 7, 2017

Choose a reason for hiding this comment

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

Maybe we should add the hook to our own list of deprecated hooks as well?
https://github.com/Automattic/jetpack/blob/master/class.jetpack.php#L5821

@lezama lezama added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Mar 7, 2017
@lezama
Copy link
Copy Markdown
Contributor

lezama commented Mar 7, 2017

🚢

jeherve
jeherve previously requested changes Mar 7, 2017
* @param int The post ID
*/
do_action( 'jetpack_publicize_post', $post->ID );
do_action_deprecated( 'jetpack_publicize_post', $post->ID, '4.8.0', 'jetpack_published_post_flags' );
Copy link
Copy Markdown
Member

@jeherve jeherve Mar 7, 2017

Choose a reason for hiding this comment

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

Maybe we should add the hook to our own list of deprecated hooks as well?
https://github.com/Automattic/jetpack/blob/master/class.jetpack.php#L5821

@jeherve jeherve added [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. and removed [Status] Ready to Merge Go ahead, you can push that green button! labels Mar 7, 2017
@enejb
Copy link
Copy Markdown
Member Author

enejb commented Mar 7, 2017

@jeherve the function you linked to is more intended for functions and methods that we deprecated. Which is a bit different from deprecating an action hook. I think it is fine not to included it there.

@enejb enejb added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. labels Mar 7, 2017
@enejb enejb dismissed jeherve’s stale review March 7, 2017 21:48

Talked about it in slack

Copy link
Copy Markdown
Contributor

@lezama lezama left a comment

Choose a reason for hiding this comment

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

Approved

@enejb enejb merged commit 0cce715 into master Mar 7, 2017
@matticbot matticbot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Mar 7, 2017
@enejb enejb deleted the remove/old-punlicize-actions branch March 8, 2017 17:14
jeherve added a commit that referenced this pull request Mar 9, 2017
jeherve added a commit that referenced this pull request Mar 28, 2017
samhotchkiss pushed a commit that referenced this pull request Mar 29, 2017
* Readme: remove old release and add skeleton for 4.8.

* Changelog: add #6572

* Changelog: add #6567

* Changelog: add #6542

* Changelog: add #6527

* Changelog: add #6508

* Changelog: add #6478

* Changelog: add #6477

* Changelog: add #6249

* Update stable version and remove old version from readme.

* Changelog: add 4.7.1 to changelog.

* Readme: add new contributor.

* Sync: update docblock @SInCE version.

Related: #6053

* Changelog: add release post.

* changelog: add #6053

* Changelog: add #6413

* Changelog: add #6482

* Changelog: add #6584

* Changelog add #6603

* Changelog: add #6606

* Changelog: add #6611

* Changelog: add #6635

* Changelog: add #6639

* Changelog: add #6684

* Changelog: add #6710

* Changelog: add #6711

* Changelog: add #5461

* Testing list: update Settings UI feedback prompt.

Props @MichaelArestad

* Changelog: add #6789

* Changelog: add #6778

* Changelog: add #6777

* Changelog: add #6775

* Changelog: add #6755

* Changelog: add #6731

* Changelog: add #6721

* Changelog: add #6705

* Changelog: add #6702

* Changelog: add #6671

* Changelog: add #6637

* Changelog: add #6582

* Changelog: add #6566

* Changelog: add #6555

* Changelog: add #6529

* Changelog: add #6344

* Changelog: add #5763

* Changelog: add #5503

* Changelog: update #6637 changelog.

@see 40e115c#commitcomment-21523982

* Changelog: add #6699

* Changelog: add #6632

* Changelog: add #6769

* Changelog: add #6707

* Changelog: add #6590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Publicize Now Jetpack Social, auto-sharing [Package] Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants