Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #120 from xwp/develop
Browse files Browse the repository at this point in the history
Add phpdoc type hints and add WP 4.5 to build matrix
  • Loading branch information
westonruter committed Apr 28, 2016
2 parents dde22c1 + e85f880 commit a29cc48
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -9,6 +9,7 @@ php:
- 7.0

env:
- WP_VERSION=4.5 WP_MULTISITE=0
- WP_VERSION=trunk WP_MULTISITE=0
- WP_VERSION=trunk WP_MULTISITE=1

Expand Down
6 changes: 6 additions & 0 deletions php/class-wp-customize-post-field-partial.php
Expand Up @@ -111,6 +111,12 @@ public function render_callback( WP_Customize_Partial $partial, $context = array
return false;
}

/**
* Partial.
*
* @var WP_Customize_Post_Field_Partial $partial
*/

$GLOBALS['post'] = $post; // WPCS: override global ok.
setup_postdata( $post );
if ( 'post_title' === $this->field_id ) {
Expand Down
5 changes: 5 additions & 0 deletions php/class-wp-customize-posts-preview.php
Expand Up @@ -465,6 +465,11 @@ public function export_registered_settings( $results ) {

$results['customize_post_settings'] = array();
foreach ( $this->component->manager->settings() as $setting ) {
/**
* Setting.
*
* @var WP_Customize_Setting $setting
*/
if ( ! $setting->check_capabilities() ) {
continue;
}
Expand Down

0 comments on commit a29cc48

Please sign in to comment.