Skip to content

Commit

Permalink
Merge pull request #9 from localheinz/feature/4.9.9
Browse files Browse the repository at this point in the history
Enhancement: Require johnpbloch/wordpress:4.9.9
  • Loading branch information
localheinz authored Jan 24, 2019
2 parents 6a8a21e + d667731 commit 7729a0f
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"require-dev": {
"php": "^7.1",
"giacocorsiglia/stubs-generator": "^0.5.0",
"johnpbloch/wordpress": "4.9.8"
"johnpbloch/wordpress": "4.9.9"
},
"license": "GPL-2.0+",
"authors": [
Expand Down
76 changes: 60 additions & 16 deletions wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10022,7 +10022,7 @@ private function __construct()
*
* Intended for use from `wp_add_privacy_policy_content()`.
*
* $since 4.9.6
* @since 4.9.6
*
* @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
* @param string $policy_text The suggested content for inclusion in the policy.
Expand Down Expand Up @@ -10072,7 +10072,7 @@ public static function get_suggested_policy_text()
*
* @since 4.9.6
*
* @param $post WP_Post The currently edited post.
* @param WP_Post $post The currently edited post.
*/
public static function notice($post)
{
Expand Down Expand Up @@ -41155,8 +41155,8 @@ class WP_Term_Query
* Can be used in conjunction with `$meta_value`. Default empty.
* @type string $meta_value Limit terms to those matching a specific metadata value.
* Usually used in conjunction with `$meta_key`. Default empty.
* @type string $meta_type Type of object metadata is for (e.g., comment, post, or user).
* Default empty.
* @type string $meta_type MySQL data type that the `$meta_value` will be CAST to for
* comparisons. Default empty.
* @type string $meta_compare Comparison operator to test the 'meta_value'. Default empty.
* }
*/
Expand Down Expand Up @@ -64194,6 +64194,17 @@ function wp_add_privacy_policy_content($plugin_name, $policy_text)
function _wp_translate_postdata($update = \false, $post_data = \null)
{
}
/**
* Returns only allowed post data fields
*
* @since 4.9.9
*
* @param array $post_data Array of post data. Defaults to the contents of $_POST.
* @return object|bool WP_Error on failure, true on success.
*/
function _wp_get_allowed_postdata($post_data = \null)
{
}
/**
* Update an existing post with values provided in $_POST.
*
Expand Down Expand Up @@ -79553,7 +79564,7 @@ function wp_is_stream($path)
*
* @since 3.5.0
*
* @see checkdate()
* @link https://secure.php.net/manual/en/function.checkdate.php
*
* @param int $month Month number.
* @param int $day Day number.
Expand Down Expand Up @@ -81223,6 +81234,20 @@ function noindex()
function wp_no_robots()
{
}
/**
* Display a noindex,noarchive meta tag and referrer origin-when-cross-origin meta tag.
*
* Outputs a noindex,noarchive meta tag that tells web robots not to index or cache the page content.
* Outputs a referrer origin-when-cross-origin meta tag that tells the browser not to send the full
* url as a referrer to other sites when cross-origin assets are loaded.
*
* Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_sensitive_page_meta' );
*
* @since 5.0.0
*/
function wp_sensitive_page_meta()
{
}
/**
* Display site icon meta tags.
*
Expand Down Expand Up @@ -82190,6 +82215,7 @@ function wp_kses_one_attr($string, $element)
* Return a list of allowed tags and attributes for a given context.
*
* @since 3.5.0
* @since 5.0.1 `form` removed as allowable HTML tag.
*
* @global array $allowedposttags
* @global array $allowedtags
Expand Down Expand Up @@ -82247,6 +82273,23 @@ function wp_kses_version()
function wp_kses_split($string, $allowed_html, $allowed_protocols)
{
}
/**
* Helper function listing HTML attributes containing a URL.
*
* This function returns a list of all HTML attributes that must contain
* a URL according to the HTML specification.
*
* This list includes URI attributes both allowed and disallowed by KSES.
*
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
*
* @since 5.0.1
*
* @return array HTML attributes that must include a URL.
*/
function wp_kses_uri_attributes()
{
}
/**
* Callback for wp_kses_split.
*
Expand Down Expand Up @@ -86813,7 +86856,7 @@ function wp_media_personal_data_exporter($email_address, $page = 1)
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int $object_id ID of the object metadata is for
* @param string $meta_key Metadata key
* @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
Expand All @@ -86834,7 +86877,7 @@ function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique =
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int $object_id ID of the object metadata is for
* @param string $meta_key Metadata key
* @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
Expand All @@ -86852,7 +86895,7 @@ function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int $object_id ID of the object metadata is for
* @param string $meta_key Metadata key
* @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar. If specified, only delete
Expand All @@ -86873,7 +86916,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d
*
* @since 2.9.0
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int $object_id ID of the object metadata is for
* @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for
* the specified object.
Expand All @@ -86890,7 +86933,7 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = \false)
*
* @since 3.3.0
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int $object_id ID of the object metadata is for
* @param string $meta_key Metadata key.
* @return bool True of the key is set, false if not.
Expand Down Expand Up @@ -86919,7 +86962,7 @@ function get_metadata_by_mid($meta_type, $meta_id)
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int $meta_id ID for a specific meta row
* @param string $meta_value Metadata value
* @param string $meta_key Optional, you can provide a meta key to update it
Expand Down Expand Up @@ -86949,7 +86992,7 @@ function delete_metadata_by_mid($meta_type, $meta_id)
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
* @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).
* @param int|array $object_ids Array or comma delimited list of object IDs to update cache for
* @return array|false Metadata cache for the specified objects, or false on failure.
*/
Expand Down Expand Up @@ -86990,7 +87033,7 @@ function get_meta_sql($meta_query, $type, $primary_table, $primary_id_column, $c
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $type Type of object to get metadata table for (e.g., comment, post, or user)
* @param string $type Type of object to get metadata table for (e.g., comment, post, term, or user).
* @return string|false Metadata table name, or false if no metadata table exists
*/
function _get_meta_table($type)
Expand All @@ -87001,8 +87044,9 @@ function _get_meta_table($type)
*
* @since 3.1.3
*
* @param string $meta_key Meta key
* @param string|null $meta_type
* @param string $meta_key Meta key
* @param string|null $meta_type Optional. Type of object metadata is for (e.g., comment, post,
* term, or user).
* @return bool True if the key is protected, false otherwise.
*/
function is_protected_meta($meta_key, $meta_type = \null)
Expand Down Expand Up @@ -92652,7 +92696,7 @@ function get_page_statuses()
/**
* Return statuses for privacy requests.
*
* @since 5.0.0
* @since 4.9.6
*
* @return array
*/
Expand Down

0 comments on commit 7729a0f

Please sign in to comment.