~canonical-sysadmins/wordpress/4.9.4

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-metadata-lazyloader.php

  • Committer: Barry Price
  • Date: 2017-11-17 04:49:02 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: barry.price@canonical.com-20171117044902-5frux4ycbq6g9fyf
Merge WP4.9 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
         * Pending objects queue.
34
34
         *
35
35
         * @since 4.5.0
36
 
         * @access protected
37
36
         * @var array
38
37
         */
39
38
        protected $pending_objects;
42
41
         * Settings for supported object types.
43
42
         *
44
43
         * @since 4.5.0
45
 
         * @access protected
46
44
         * @var array
47
45
         */
48
46
        protected $settings = array();
51
49
         * Constructor.
52
50
         *
53
51
         * @since 4.5.0
54
 
         * @access public
55
52
         */
56
53
        public function __construct() {
57
54
                $this->settings = array(
70
67
         * Adds objects to the metadata lazy-load queue.
71
68
         *
72
69
         * @since 4.5.0
73
 
         * @access public
74
70
         *
75
71
         * @param string $object_type Type of object whose meta is to be lazy-loaded. Accepts 'term' or 'comment'.
76
72
         * @param array  $object_ids  Array of object IDs.
112
108
         * Resets lazy-load queue for a given object type.
113
109
         *
114
110
         * @since 4.5.0
115
 
         * @access public
116
111
         *
117
112
         * @param string $object_type Object type. Accepts 'comment' or 'term'.
118
113
         * @return bool|WP_Error True on success, WP_Error on failure.
135
130
         * is no need to invoke it directly.
136
131
         *
137
132
         * @since 4.5.0
138
 
         * @access public
139
133
         *
140
134
         * @param mixed $check The `$check` param passed from the 'get_term_metadata' hook.
141
135
         * @return mixed In order not to short-circuit `get_metadata()`. Generally, this is `null`, but it could be