Skip to content

Remove deprecated function call (remove_preview_signature)#5934

Merged
dereksmart merged 3 commits intoAutomattic:masterfrom
stoyan0v:fix/customizer-infinite-scroll-notice
Dec 20, 2016
Merged

Remove deprecated function call (remove_preview_signature)#5934
dereksmart merged 3 commits intoAutomattic:masterfrom
stoyan0v:fix/customizer-infinite-scroll-notice

Conversation

@stoyan0v
Copy link
Copy Markdown
Contributor

@stoyan0v stoyan0v commented Dec 16, 2016

Fixes #5892

Remove deprecated function call remove_preview_signature to prevent notices when using Infinite Scroll in Customizer.

}

if ( is_customize_preview() ) {
$wp_customize->remove_preview_signature();
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.

Since you're removing this, you should also remove global $wp_customize; in line 1124 since $wp_customize is no longer used in this function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agree, it has been removed.

@stoyan0v stoyan0v force-pushed the fix/customizer-infinite-scroll-notice branch from 5870c03 to cc01897 Compare December 17, 2016 07:47
@jeherve jeherve added [Feature] Infinite Scroll [Pri] Normal [Status] Needs Review This PR is ready for review. Bug When a feature is broken and / or not performing as intended labels Dec 19, 2016
@jeherve jeherve added this to the 4.5 milestone Dec 19, 2016
$results['type'] = 'empty';
}

if ( is_customize_preview() ) {
Copy link
Copy Markdown
Contributor

@dereksmart dereksmart Dec 20, 2016

Choose a reason for hiding this comment

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

We need to maintain support for current WP version -1, so until 4.8 is out we'll need to add a version check here.

if ( version_compare( $wp_version, '4.7', '<' ) && ... )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review. I have added a check to ensure that it will work in 4.6 and also a comment to delete this once 4.8 is released.

@dereksmart dereksmart 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] Needs Review This PR is ready for review. labels Dec 20, 2016
@dereksmart
Copy link
Copy Markdown
Contributor

Looks great, thank you 👍

@dereksmart dereksmart 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 Dec 20, 2016
@dereksmart dereksmart merged commit 6d79053 into Automattic:master Dec 20, 2016
@dereksmart
Copy link
Copy Markdown
Contributor

merged to 4.5 f405c04

jeherve added a commit that referenced this pull request Dec 21, 2016
dereksmart pushed a commit that referenced this pull request Jan 17, 2017
Changelog: add #5867

Changelog: add #5874

Changelog: add #5905

Changelog: add #5906

Changelog: add #5931

Changelog: add #5933

Changelog: add #5934
dereksmart pushed a commit that referenced this pull request Jan 17, 2017
Changelog: add #5867

Changelog: add #5874

Changelog: add #5905

Changelog: add #5906

Changelog: add #5931

Changelog: add #5933

Changelog: add #5934

Bring over 4.4.2 changelog from branch-4.4

@see 18012a3

Changelog: add #5976, #5978, #5983

Changelog: add #5917

Changelog: add #5832

Changelog: add 4.4.2 release post link.

CHangelog: add #5457

Changelog: add #5487

Changelog: add #5708

Changelog: add #5879

Changelog: add #5932

Changelog: add #5963

Changelog: add #5968

Changelog: add #5996

Changelog: add #5998

Changelog: add #5999

Changelog: add #6012

Changelog: add #6013

Changelog: add #6014

Changelog: add #6015

Changelog: add #6023

Changelog: add #6024

Changelog: add #6030

Changelog: add #5465

CHangelog: add #6063

Changelog: add #6025

Changelog: add #5974

Changelog: add #6059

Changelog: add #6046

Changelog: add #5418

Changelog: move things around and add missing information.

Changelog: add #5565

Changelog: add #6087

Changelog: add #6095

Readme: add @tyxla to the list of contributors.

Improved changelog for your readability and enjoyment

updated the release date

finalizing the changelog with a few more edits
@kraftbj kraftbj removed the [Status] Ready to Merge Go ahead, you can push that green button! label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Feature] Infinite Scroll [Pri] Normal Touches WP.com Files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite Scroll: deprecated function when previewing IS in customizer

6 participants