Ticket #28885: 28885.diff
File 28885.diff, 45.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/custom-background.php
59 59 } 60 60 61 61 /** 62 * Make private properties readable for backwards compatibility 62 * Make private properties readable for backwards compatibility. 63 63 * 64 64 * @since 4.0.0 65 * @param string $name 66 * @return mixed 65 * @access public 66 * 67 * @param string $name Property name. 68 * @return mixed Property. 67 69 */ 68 70 public function __get( $name ) { 69 71 return $this->$name; 70 72 } 71 73 72 74 /** 73 * Make private properties setable for backwards compatibility 75 * Make private properties setable for backwards compatibility. 74 76 * 75 77 * @since 4.0.0 76 * @param string $name 77 * @param string $value 78 * @return mixed 78 * @access public 79 * 80 * @param string $name Property to set. 81 * @param mixed $value Property value. 82 * @return mixed Newly-set property. 79 83 */ 80 84 public function __set( $name, $value ) { 81 85 return $this->$name = $value; 82 86 } 83 87 84 88 /** 85 * Make private properties checkable for backwards compatibility 89 * Make private properties checkable for backwards compatibility. 86 90 * 87 91 * @since 4.0.0 88 * @param string $name 89 * @return mixed 92 * @access public 93 * 94 * @param string $name Property to check if set. 95 * @return bool Whether the property is set. 90 96 */ 91 97 public function __isset( $name ) { 92 98 return isset( $this->$name ); … … 96 102 * Make private properties unsetable for backwards compatibility 97 103 * 98 104 * @since 4.0.0 99 * @param string $name 100 * @return mixed 105 * @access public 106 * 107 * @param string $name Property to unset. 101 108 */ 102 109 public function __unset( $name ) { 103 110 unset( $this->$name ); -
src/wp-admin/custom-header.php
84 84 * Make private properties readable for backwards compatibility 85 85 * 86 86 * @since 4.0.0 87 * @param string $name 88 * @return mixed 87 * @access public 88 * 89 * @param string $name Property to get. 90 * @return mixed Property. 89 91 */ 90 92 public function __get( $name ) { 91 93 return $this->$name; … … 95 97 * Make private properties setable for backwards compatibility 96 98 * 97 99 * @since 4.0.0 98 * @param string $name 99 * @param string $value 100 * @return mixed 100 * @access public 101 * 102 * @param string $name Property to set. 103 * @param mixed $value Property value. 104 * @return mixed Newly-set property. 101 105 */ 102 106 public function __set( $name, $value ) { 103 107 return $this->$name = $value; … … 107 111 * Make private properties checkable for backwards compatibility 108 112 * 109 113 * @since 4.0.0 110 * @param string $name 111 * @return mixed 114 * @access public 115 * 116 * @param string $name Property to check if set. 117 * @return bool Whether the property is set. 112 118 */ 113 119 public function __isset( $name ) { 114 120 return isset( $this->$name ); … … 118 124 * Make private properties unsetable for backwards compatibility 119 125 * 120 126 * @since 4.0.0 121 * @param string $name 122 * @return mixed 127 * @access public 128 * 129 * @param string $name Property to unset. 123 130 */ 124 131 public function __unset( $name ) { 125 132 unset( $this->$name ); -
src/wp-admin/includes/ajax-actions.php
130 130 * 131 131 * @since 4.0.0 132 132 * 133 * @param int $characters The minimum number of characters required. Default 2.134 * @param object $tax The taxonomy object.135 * @param string $sThe search term.133 * @param int $characters The minimum number of characters required. Default 2. 134 * @param object $tax The taxonomy object. 135 * @param string The search term. 136 136 */ 137 137 $term_search_min_chars = (int) apply_filters( 'term_search_min_chars', 2, $tax, $s ); 138 138 … … 2608 2608 * Apply [embed] handlers to a string. 2609 2609 * 2610 2610 * @since 4.0.0 2611 * 2612 * @global WP_Post $post Global $post. 2613 * @global WP_Embed $wp_embed Embed API instance. 2611 2614 */ 2612 2615 function wp_ajax_parse_embed() { 2613 2616 global $post, $wp_embed; -
src/wp-admin/includes/class-wp-filesystem-base.php
40 40 public $method = ''; 41 41 42 42 /** 43 * Make private properties readable for backwards compatibility 43 * Make private properties readable for backwards compatibility. 44 44 * 45 45 * @since 4.0.0 46 * @access public 47 * 46 48 * @param string $name 47 49 * @return mixed 48 50 */ … … 51 53 } 52 54 53 55 /** 54 * Make private properties setable for backwards compatibility 56 * Make private properties setable for backwards compatibility. 55 57 * 56 58 * @since 4.0.0 57 * @param string $name 58 * @param string $value 59 * @return mixed 59 * @access public 60 * 61 * @param string $name Property to set. 62 * @param mixed $value Property value. 63 * @return mixed Newly-set property. 60 64 */ 61 65 public function __set( $name, $value ) { 62 66 return $this->$name = $value; 63 67 } 64 68 65 69 /** 66 * Make private properties checkable for backwards compatibility 70 * Make private properties checkable for backwards compatibility. 67 71 * 68 72 * @since 4.0.0 69 * @param string $name 70 * @return mixed 73 * @access public 74 * 75 * @param string $name Property to check if set. 76 * @return bool Whether the property is set. 71 77 */ 72 78 public function __isset( $name ) { 73 79 return isset( $this->$name ); … … 77 83 * Make private properties unsetable for backwards compatibility 78 84 * 79 85 * @since 4.0.0 80 * @param string $name 81 * @return mixed 86 * @access public 87 * 88 * @param string $name Property to unset. 82 89 */ 83 90 public function __unset( $name ) { 84 91 unset( $this->$name ); -
src/wp-admin/includes/class-wp-list-table.php
96 96 } 97 97 98 98 /** 99 * Make private properties readable for backwards compatibility 99 * Make private properties readable for backwards compatibility. 100 100 * 101 101 * @since 4.0.0 102 * @param string $name 103 * @return mixed 102 * @access publc 103 * 104 * @param string $name Property to get. 105 * @return mixed Property. 104 106 */ 105 107 public function __get( $name ) { 106 108 return $this->$name; 107 109 } 108 110 109 111 /** 110 * Make private properties setable for backwards compatibility 112 * Make private properties setable for backwards compatibility. 111 113 * 112 114 * @since 4.0.0 113 * @param string $name 114 * @param string $value 115 * @return mixed 115 * @access public 116 * 117 * @param string $name Propert to set. 118 * @param mixed $value Property value. 119 * @return mixed Newly-set property. 116 120 */ 117 121 public function __set( $name, $value ) { 118 122 return $this->$name = $value; 119 123 } 120 124 121 125 /** 122 * Make private properties checkable for backwards compatibility 126 * Make private properties checkable for backwards compatibility. 123 127 * 124 128 * @since 4.0.0 125 * @param string $name 126 * @return mixed 129 * @access public 130 * 131 * @param string $name Property to check if set. 132 * @return bool Whether the property is set. 127 133 */ 128 134 public function __isset( $name ) { 129 135 return isset( $this->$name ); 130 136 } 131 137 132 138 /** 133 * Make private properties unsetable for backwards compatibility 139 * Make private properties unsetable for backwards compatibility. 134 140 * 135 141 * @since 4.0.0 136 * @param string $name 137 * @return mixed 142 * @access public 143 * 144 * @param string $name Property to unset. 138 145 */ 139 146 public function __unset( $name ) { 140 147 unset( $this->$name ); 141 148 } 142 149 143 150 /** 144 * Make private/protected methods readable for backwards compatibility 151 * Make private/protected methods readable for backwards compatibility. 145 152 * 146 153 * @since 4.0.0 147 * @param string $name 148 * @param array $arguments 149 * @return mixed 154 * @access public 155 * 156 * @param callable $name Method to call. 157 * @param array $arguments Arguments to pass when calling. 158 * @return mixed|bool Return value of the callback, false otherwise. 150 159 */ 151 160 public function __call( $name, $arguments ) { 152 161 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
282 282 /** 283 283 * Filter the details link for a plugin. 284 284 * 285 * @since 4.0 285 * @since 4.0.0 286 286 * 287 287 * @param array $details_link Link to view the current plugin's details. 288 288 * @param array $plugin The plugin currently being listed. -
src/wp-admin/includes/meta-boxes.php
42 42 $preview_button = __( 'Preview Changes' ); 43 43 } else { 44 44 $preview_link = set_url_scheme( get_permalink( $post->ID ) ); 45 45 46 /** 46 47 * Filter the URI of a post preview in the post submit box. 47 48 * -
src/wp-admin/includes/upgrade.php
2183 2183 } 2184 2184 2185 2185 /** 2186 * Get savailable translations from the WordPress.org API.2186 * Get available translations from the WordPress.org API. 2187 2187 * 2188 2188 * @since 4.0.0 2189 2189 * 2190 * @see wp_remote_post() 2191 * 2190 2192 * @return array Array of translations, each an array of data. 2191 2193 */ 2192 2194 function wp_get_available_translations_from_api() { … … 2214 2216 } 2215 2217 2216 2218 /** 2217 * Download sa language pack.2219 * Download a language pack. 2218 2220 * 2219 2221 * @since 4.0.0 2220 2222 * 2223 * @see wp_get_available_translations_from_api() 2224 * 2221 2225 * @param string $download Language code to download. 2222 * @return string| falseReturns the language code if successfully downloaded2223 * 2226 * @return string|bool Returns the language code if successfully downloaded 2227 * (or already installed), or false on failure. 2224 2228 */ 2225 2229 function wp_install_download_language_pack( $download ) { 2226 2230 // Check if the translation is already installed. … … 2261 2265 * 2262 2266 * @since 4.0.0 2263 2267 * 2268 * @see load_textdomain() 2269 * 2264 2270 * @param string $translation Translation to load. 2265 * @return string| falseReturns the language code if successfully loaded,2266 * 2271 * @return string|bool Returns the language code if successfully loaded, 2272 * or false on failure. 2267 2273 */ 2268 2274 function wp_install_load_language( $translation ) { 2269 2275 if ( ! empty( $translation ) ) { -
src/wp-includes/cache.php
310 310 * Make private properties readable for backwards compatibility 311 311 * 312 312 * @since 4.0.0 313 * @param string $name 314 * @return mixed 313 * @access public 314 * 315 * @param string $name Property to get. 316 * @return mixed Property. 315 317 */ 316 318 public function __get( $name ) { 317 319 return $this->$name; … … 321 323 * Make private properties setable for backwards compatibility 322 324 * 323 325 * @since 4.0.0 324 * @param string $name 325 * @param string $value 326 * @return mixed 326 * @access public 327 * 328 * @param string $name Property to set. 329 * @param mixed $value Property value. 330 * @return mixed Newly-set property. 327 331 */ 328 332 public function __set( $name, $value ) { 329 333 return $this->$name = $value; … … 333 337 * Make private properties checkable for backwards compatibility 334 338 * 335 339 * @since 4.0.0 336 * @param string $name 337 * @return mixed 340 * @access public 341 * 342 * @param string $name Property to check if set. 343 * @return bool Whether the property is set. 338 344 */ 339 345 public function __isset( $name ) { 340 346 return isset( $this->$name ); … … 344 350 * Make private properties unsetable for backwards compatibility 345 351 * 346 352 * @since 4.0.0 347 * @param string $name 348 * @return mixed 353 * @access public 354 * 355 * @param string $name Property to unset. 349 356 */ 350 357 public function __unset( $name ) { 351 358 unset( $this->$name ); -
src/wp-includes/capabilities.php
82 82 } 83 83 84 84 /** 85 * Make private/protected methods readable for backwards compatibility 85 * Make private/protected methods readable for backwards compatibility. 86 86 * 87 87 * @since 4.0.0 88 * @param string $name 89 * @param array $arguments 90 * @return mixed 88 * @access public 89 * 90 * @param callable $name Method to call. 91 * @param array $arguments Arguments to pass when calling. 92 * @return mixed|bool Return value of the callback, false otherwise. 91 93 */ 92 94 public function __call( $name, $arguments ) { 93 95 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-includes/class-oembed.php
160 160 * Make private/protected methods readable for backwards compatibility 161 161 * 162 162 * @since 4.0.0 163 * @param string $name 164 * @param array $arguments 165 * @return mixed 163 * @access public 164 * 165 * @param callable $name Method to call. 166 * @param array $arguments Arguments to pass when calling. 167 * @return mixed|bool Return value of the callback, false otherwise. 166 168 */ 167 169 public function __call( $name, $arguments ) { 168 170 return call_user_func_array( array( $this, $name ), $arguments ); … … 171 173 /** 172 174 * Takes a URL and returns the corresponding oEmbed provider's URL, if there is one. 173 175 * 176 * @since 4.0.0 177 * @access public 178 * 174 179 * @see WP_oEmbed::discover() 175 180 * 176 * @param string $url The URL to the content.177 * @param array $args Optionalarguments.181 * @param string $url The URL to the content. 182 * @param string|array $args Optional provider arguments. 178 183 * @return bool|string False on failure, otherwise the oEmbed provider URL. 179 * @since 4.0.0180 184 */ 181 185 public function get_provider( $url, $args = '' ) { 182 186 … … 213 217 * The just-in-time addition is for the benefit of the 'oembed_providers' filter. 214 218 * 215 219 * @since 4.0.0 220 * @access public 216 221 * @static 217 222 * 218 223 * @see wp_oembed_add_provider() 219 224 * 220 * @param string $format The format of URL that this provider can handle. You can use225 * @param string $format Format of URL that this provider can handle. You can use 221 226 * asterisks as wildcards. 222 227 * @param string $provider The URL to the oEmbed provider.. 223 228 * @param bool $regex Optional. Whether the $format parameter is in a regex format. … … 238 243 * The just-in-time removal is for the benefit of the 'oembed_providers' filter. 239 244 * 240 245 * @since 4.0.0 246 * @access public 241 247 * @static 242 248 * 243 249 * @see wp_oembed_remove_provider() -
src/wp-includes/class-wp-ajax-response.php
30 30 } 31 31 32 32 /** 33 * Make private properties readable for backwards compatibility 33 * Make private properties readable for backwards compatibility. 34 34 * 35 35 * @since 4.0.0 36 * @param string $name 37 * @return mixed 36 * @access public 37 * 38 * @param string $name Property to get. 39 * @return mixed Property. 38 40 */ 39 41 public function __get( $name ) { 40 42 return $this->$name; 41 43 } 42 44 43 45 /** 44 * Make private properties setable for backwards compatibility 46 * Make private properties setable for backwards compatibility. 45 47 * 46 48 * @since 4.0.0 47 * @param string $name 48 * @param string $value 49 * @return mixed 49 * @access public 50 * 51 * @param string $name Property to set. 52 * @param mixed $value Property value. 53 * @return mixed Newly-set property. 50 54 */ 51 55 public function __set( $name, $value ) { 52 56 return $this->$name = $value; 53 57 } 54 58 55 59 /** 56 * Make private properties checkable for backwards compatibility 60 * Make private properties checkable for backwards compatibility. 57 61 * 58 62 * @since 4.0.0 59 * @param string $name 60 * @return mixed 63 * @access public 64 * 65 * @param string $name Property to check if set. 66 * @return bool Whether the property is set. 61 67 */ 62 68 public function __isset( $name ) { 63 69 return isset( $this->$name ); 64 70 } 65 71 66 72 /** 67 * Make private properties unsetable for backwards compatibility 73 * Make private properties unsetable for backwards compatibility. 68 74 * 69 75 * @since 4.0.0 70 * @param string $name 71 * @return mixed 76 * @access public 77 * 78 * @param string $name Property to unset. 72 79 */ 73 80 public function __unset( $name ) { 74 81 unset( $this->$name ); -
src/wp-includes/class-wp-customize-control.php
86 86 public $type = 'text'; 87 87 88 88 /** 89 * Callback 89 * Callback. 90 90 * 91 91 * @since 4.0.0 92 * @access public 92 93 * 93 * @access public94 94 * @see WP_Customize_Control::active() 95 * @var callable Callback is called with one argument, the instance of 96 * WP_Customize_Control, and returns bool to indicate whether 97 * the control is active (such as it relates to the URL 98 * currently being previewed). 95 * 96 * @var callable Callback is called with one argument, the instance of 97 * WP_Customize_Control, and returns bool to indicate whether 98 * the control is active (such as it relates to the URL 99 * currently being previewed). 99 100 */ 100 101 public $active_callback = ''; 101 102 … … 154 155 * Check whether control is active to current customizer preview. 155 156 * 156 157 * @since 4.0.0 158 * @access public 157 159 * 158 * @return bool 160 * @return bool Whether the control is active to the current preview. 159 161 */ 160 162 public final function active() { 161 163 $control = $this; … … 166 168 * 167 169 * @since 4.0.0 168 170 * 169 * @param bool $active170 * @param WP_Customize_Control $control 171 * @param bool $active Whether the Customizer control is active. 172 * @param WP_Customize_Control $control WP_Customize_Control instance. 171 173 */ 172 174 $active = apply_filters( 'customize_control_active', $active, $control ); 173 175 … … 180 182 * Subclasses can override this with their specific logic, or they may 181 183 * provide an 'active_callback' argument to the constructor. 182 184 * 183 * @return bool 185 * @since 4.0.0 186 * @access public 187 * 188 * @return bool Always true. 184 189 */ 185 190 public function active_callback() { 186 191 return true; … … 315 320 * Render the custom attributes for the control's input element. 316 321 * 317 322 * @since 4.0.0 323 * @access public 318 324 */ 319 325 public function input_attrs() { 320 326 foreach( $this->input_attrs as $attr => $value ) { … … 1052 1058 } 1053 1059 1054 1060 /** 1055 * @return bool 1061 * Whether the current sidebar is rendered on the page. 1062 * 1063 * @since 4.0.0 1064 * @access public 1065 * 1066 * @return bool Whether sidebar is rendered. 1056 1067 */ 1057 function active_callback() {1068 public function active_callback() { 1058 1069 return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id ); 1059 1070 } 1060 1071 } … … 1099 1110 } 1100 1111 1101 1112 /** 1102 * @return bool 1113 * Whether the current widget is rendered on the page. 1114 * 1115 * @since 4.0.0 1116 * @access public 1117 * 1118 * @return bool Whether the widget is rendered. 1103 1119 */ 1104 1120 function active_callback() { 1105 1121 return $this->manager->widgets->is_widget_rendered( $this->widget_id ); -
src/wp-includes/class-wp-customize-manager.php
319 319 * Get the registered panels. 320 320 * 321 321 * @since 4.0.0 322 * @access public 322 323 * 323 * @return array 324 * @return array Panels. 324 325 */ 325 326 public function panels() { 326 327 return $this->panels; … … 433 434 * preview, since it causes the jQuery Ajax to fail. Send 200 instead. 434 435 * 435 436 * @since 4.0.0 437 * @access public 436 438 */ 437 439 public function customize_preview_override_404_status() { 438 440 if ( is_404() ) { … … 680 682 * Add a customize panel. 681 683 * 682 684 * @since 4.0.0 685 * @access public 683 686 * 684 687 * @param WP_Customize_Panel|string $id Customize Panel object, or Panel ID. 685 * @param array $args Panel arguments.688 * @param array $args Optional. Panel arguments. Default empty array. 686 689 */ 687 690 public function add_panel( $id, $args = array() ) { 688 691 if ( is_a( $id, 'WP_Customize_Panel' ) ) { … … 699 702 * Retrieve a customize panel. 700 703 * 701 704 * @since 4.0.0 705 * @access public 702 706 * 703 * @param string $id Panel ID .704 * @return WP_Customize_Panel 707 * @param string $id Panel ID to get. 708 * @return WP_Customize_Panel Requested panel instance. 705 709 */ 706 710 public function get_panel( $id ) { 707 711 if ( isset( $this->panels[ $id ] ) ) { … … 713 717 * Remove a customize panel. 714 718 * 715 719 * @since 4.0.0 720 * @access public 716 721 * 717 * @param string $id Panel ID .722 * @param string $id Panel ID to remove. 718 723 */ 719 724 public function remove_panel( $id ) { 720 725 unset( $this->panels[ $id ] ); -
src/wp-includes/class-wp-customize-section.php
218 218 * Any supplied $args override class property defaults. 219 219 * 220 220 * @since 4.0.0 221 * @access public 221 222 * 222 223 * @param WP_Customize_Manager $manager Customizer bootstrap instance. 223 224 * @param string $id An specific ID of the section. 224 * @param array $args Section arguments.225 * @param array $args Optional. Section arguments. Default empty array. 225 226 */ 226 227 public function __construct( $manager, $id, $args = array() ) { 227 228 parent::__construct( $manager, $id, $args ); … … 235 236 * Render the panel, and the sections that have been added to it. 236 237 * 237 238 * @since 4.0.0 239 * @access protected 238 240 */ 239 241 protected function render() { 240 242 ?> -
src/wp-includes/class-wp-customize-widgets.php
1077 1077 * @since 4.0.0 1078 1078 * @access public 1079 1079 * 1080 * @param string $widget_id 1081 * @return bool 1080 * @param string $widget_id Widget ID to check. 1081 * @return bool Whether the widget is rendered. 1082 1082 */ 1083 1083 public function is_widget_rendered( $widget_id ) { 1084 1084 return in_array( $widget_id, $this->rendered_widgets ); … … 1090 1090 * @since 4.0.0 1091 1091 * @access public 1092 1092 * 1093 * @param string $sidebar_id 1094 * @return bool 1093 * @param string $sidebar_id Sidebar ID to check. 1094 * @return bool Whether the sidebar is rendered. 1095 1095 */ 1096 1096 public function is_sidebar_rendered( $sidebar_id ) { 1097 1097 return in_array( $sidebar_id, $this->rendered_sidebars ); … … 1108 1108 * @since 3.9.0 1109 1109 * @access public 1110 1110 * 1111 * @param bool 1112 * @pa sram string $sidebar_id Sidebar ID.1111 * @param bool $is_active Whether the sidebar is active. 1112 * @param string $sidebar_id Sidebar ID. 1113 1113 */ 1114 1114 public function tally_sidebars_via_is_active_sidebar_calls( $is_active, $sidebar_id ) { 1115 1115 if ( isset( $GLOBALS['wp_registered_sidebars'][$sidebar_id] ) ) { -
src/wp-includes/class-wp-embed.php
198 198 * 199 199 * @since 4.0.0 200 200 * 201 * @param int $time Time to live (in seconds). 201 202 * @param string $url The attempted embed URL. 202 203 * @param array $attr An array of shortcode attributes. 203 204 * @param int $post_ID Post ID. -
src/wp-includes/class-wp-error.php
66 66 } 67 67 68 68 /** 69 * Make private properties readable for backwards compatibility 69 * Make private properties readable for backwards compatibility. 70 70 * 71 71 * @since 4.0.0 72 * @param string $name 73 * @return mixed 72 * @access public 73 * 74 * @param string $name Property to get. 75 * @return mixed Property. 74 76 */ 75 77 public function __get( $name ) { 76 78 return $this->$name; 77 79 } 78 80 79 81 /** 80 * Make private properties setable for backwards compatibility 82 * Make private properties setable for backwards compatibility. 81 83 * 82 84 * @since 4.0.0 83 * @param string $name 84 * @param string $value 85 * @return mixed 85 * @access public 86 * 87 * @param string $name Property to set. 88 * @param mixed $value Property value. 89 * @return mixed Newly-set property. 86 90 */ 87 91 public function __set( $name, $value ) { 88 92 return $this->$name = $value; 89 93 } 90 94 91 95 /** 92 * Make private properties checkable for backwards compatibility 96 * Make private properties checkable for backwards compatibility. 93 97 * 94 98 * @since 4.0.0 95 * @param string $name 96 * @return mixed 99 * @access public 100 * 101 * @param string $name Property to check if set. 102 * @return bool Whether the property is set. 97 103 */ 98 104 public function __isset( $name ) { 99 105 return isset( $this->$name ); 100 106 } 101 107 102 108 /** 103 * Make private properties unsetable for backwards compatibility 109 * Make private properties unsetable for backwards compatibility. 104 110 * 105 111 * @since 4.0.0 106 * @param string $name 107 * @return mixed 112 * @access public 113 * 114 * @param string $name Property to unset. 108 115 */ 109 116 public function __unset( $name ) { 110 117 unset( $this->$name ); -
src/wp-includes/class-wp-walker.php
16 16 * What the class handles. 17 17 * 18 18 * @since 2.1.0 19 * @access public 19 20 * @var string 20 * @access public21 21 */ 22 22 public $tree_type; 23 23 … … 25 25 * DB fields to use. 26 26 * 27 27 * @since 2.1.0 28 * @access protected 28 29 * @var array 29 * @access protected30 30 */ 31 31 protected $db_fields; 32 32 … … 34 34 * Max number of pages walked by the paged walker 35 35 * 36 36 * @since 2.7.0 37 * @access protected 37 38 * @var int 38 * @access protected39 39 */ 40 40 protected $max_pages = 1; 41 41 … … 43 43 * Wether the current element has children or not. To be used in start_el() 44 44 * 45 45 * @since 4.0.0 46 * @access protected 46 47 * @var bool 47 * @access protected48 48 */ 49 49 protected $has_children; 50 50 … … 52 52 * Make private properties readable for backwards compatibility 53 53 * 54 54 * @since 4.0.0 55 * @param string $name 56 * @return mixed 55 * @access public 56 * 57 * @param string $name Property to get. 58 * @return mixed Property. 57 59 */ 58 60 public function __get( $name ) { 59 61 return $this->$name; … … 63 65 * Make private properties setable for backwards compatibility 64 66 * 65 67 * @since 4.0.0 66 * @param string $name 67 * @param string $value 68 * @return mixed 68 * @access public 69 * 70 * @param string $name Property to set. 71 * @param mixed $value Property value. 72 * @return mixed Newly-set property. 69 73 */ 70 74 public function __set( $name, $value ) { 71 75 return $this->$name = $value; … … 75 79 * Make private properties checkable for backwards compatibility 76 80 * 77 81 * @since 4.0.0 78 * @param string $name 79 * @return mixed 82 * @access public 83 * 84 * @param string $name Property to check if set. 85 * @return bool Whether the property is set. 80 86 */ 81 87 public function __isset( $name ) { 82 88 return isset( $this->$name ); … … 86 92 * Make private properties unsetable for backwards compatibility 87 93 * 88 94 * @since 4.0.0 89 * @param string $name 90 * @return mixed 95 * @access public 96 * 97 * @param string $name Property to unset. 91 98 */ 92 99 public function __unset( $name ) { 93 100 unset( $this->$name ); -
src/wp-includes/class-wp-xmlrpc-server.php
145 145 * Make private/protected methods readable for backwards compatibility 146 146 * 147 147 * @since 4.0.0 148 * @param string $name 149 * @param array $arguments 150 * @return mixed 148 * @access public 149 * 150 * @param callable $name Method to call. 151 * @param array $arguments Arguments to pass when calling. 152 * @return mixed|bool Return value of the callback, false otherwise. 151 153 */ 152 154 public function __call( $name, $arguments ) { 153 155 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-includes/class-wp.php
663 663 public $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; // magic number 664 664 665 665 /** 666 * Make private properties readable for backwards compatibility 666 * Make private properties readable for backwards compatibility. 667 667 * 668 668 * @since 4.0.0 669 * @param string $name 670 * @return mixed 669 * @access public 670 * 671 * @param string $name Property to get. 672 * @return mixed Property. 671 673 */ 672 674 public function __get( $name ) { 673 675 return $this->$name; 674 676 } 675 677 676 678 /** 677 * Make private properties setable for backwards compatibility 679 * Make private properties setable for backwards compatibility. 678 680 * 679 681 * @since 4.0.0 680 * @param string $name 681 * @param string $value 682 * @return mixed 682 * @access public 683 * 684 * @param string $name Property to set. 685 * @param mixed $value Property value. 686 * @return mixed Newly-set property. 683 687 */ 684 688 public function __set( $name, $value ) { 685 689 return $this->$name = $value; 686 690 } 687 691 688 692 /** 689 * Make private properties checkable for backwards compatibility 693 * Make private properties checkable for backwards compatibility. 690 694 * 691 695 * @since 4.0.0 692 * @param string $name 693 * @return mixed 696 * @access public 697 * 698 * @param string $name Property to check if set. 699 * @return bool Whether the property is set. 694 700 */ 695 701 public function __isset( $name ) { 696 702 return isset( $this->$name ); 697 703 } 698 704 699 705 /** 700 * Make private properties unsetable for backwards compatibility 706 * Make private properties unsetable for backwards compatibility. 701 707 * 702 708 * @since 4.0.0 703 * @param string $name 704 * @return mixed 709 * @access public 710 * 711 * @param string $name Property to unset. 705 712 */ 706 713 public function __unset( $name ) { 707 714 unset( $this->$name ); 708 715 } 709 716 710 717 /** 711 * Make private/protected methods readable for backwards compatibility 718 * Make private/protected methods readable for backwards compatibility. 712 719 * 713 720 * @since 4.0.0 714 * @param string $name 715 * @param array $arguments 716 * @return mixed 721 * @access public 722 * 723 * @param callable $name Method to call. 724 * @param array $arguments Arguments to pass when calling. 725 * @return mixed|bool Return value of the callback, false otherwise. 717 726 */ 718 727 public function __call( $name, $arguments ) { 719 728 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-includes/comment-template.php
1940 1940 * 1941 1941 * @since 4.0.0 1942 1942 * 1943 * @see wp_list_comments() 1944 * 1943 1945 * @param array $r An array of arguments for displaying comments. 1944 1946 */ 1945 1947 $r = apply_filters( 'wp_list_comments_args', $r ); -
src/wp-includes/comment.php
224 224 * Make private/protected methods readable for backwards compatibility 225 225 * 226 226 * @since 4.0.0 227 * @param string $name 228 * @param array $arguments 229 * @return mixed 227 * @access public 228 * 229 * @param callable $name Method to call. 230 * @param array $arguments Arguments to pass when calling. 231 * @return mixed|bool Return value of the callback, false otherwise. 230 232 */ 231 233 public function __call( $name, $arguments ) { 232 234 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-includes/formatting.php
40 40 // Set up static variables. Run once only. 41 41 if ( $reset || ! isset( $static_characters ) ) { 42 42 /** 43 * Filter whether to skip running `wptexturize()`.43 * Filter whether to skip running wptexturize(). 44 44 * 45 * Passing false to the filter will effectively short-circuit `wptexturize()`.45 * Passing false to the filter will effectively short-circuit wptexturize(). 46 46 * returning the original text passed to the function instead. 47 47 * 48 * The filter runs only once, the first time `wptexturize()`is called.48 * The filter runs only once, the first time wptexturize() is called. 49 49 * 50 50 * @since 4.0.0 51 51 * 52 * @param bool $run_texturize Whether to short-circuit `wptexturize()`. 52 * @see wptexturize() 53 * 54 * @param bool $run_texturize Whether to short-circuit wptexturize(). 53 55 */ 54 56 $run_texturize = apply_filters( 'run_wptexturize', $run_texturize ); 55 57 if ( false === $run_texturize ) { -
src/wp-includes/functions.php
3506 3506 * 3507 3507 * @since 4.0.0 3508 3508 * 3509 * @param string $url The URL 3510 * @return bool True if the given URL uses https, false if not (or if the URL is not valid). 3509 * @param string $url The URL. 3510 * @return bool True if the given URL uses https, false if not (or if the URL 3511 * is not valid). 3511 3512 */ 3512 3513 function is_https_url( $url ) { 3513 3514 return ( 'https' === parse_url( $url, PHP_URL_SCHEME ) ); -
src/wp-includes/l10n.php
821 821 * Language selector. More to come. 822 822 * 823 823 * @since 4.0.0 824 * 825 * @see get_available_languages() 826 * 827 * @param array $args Optional arguments. Default empty array. 824 828 */ 825 829 function wp_dropdown_languages( $args = array() ) { 826 830 if ( isset( $args['languages'] ) ) { -
src/wp-includes/media.php
2281 2281 } 2282 2282 2283 2283 /** 2284 * The YouTube embed handler callback. Catches URLs that can be parsed but aren't supported by oEmbed.2284 * YouTube embed handler callback. 2285 2285 * 2286 * Catches URLs that can be parsed but aren't supported by oEmbed. 2287 * 2286 2288 * @since 4.0.0 2287 2289 * 2288 * @param array $matches The regex matches from the provided regex when calling {@link wp_embed_register_handler()}.2289 * @param array $attrEmbed attributes.2290 * @param string $url The original URL that was matched by the regex.2291 * @param array $rawattr The original unmodified attributes.2290 * @param array $matches The regex matches from the provided regex when calling {@link wp_embed_register_handler()}. 2291 * @param array $attr Embed attributes. 2292 * @param string $url The original URL that was matched by the regex. 2293 * @param array $rawattr The original unmodified attributes. 2292 2294 * @return string The embed HTML. 2293 2295 */ 2294 2296 function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) { … … 2299 2301 * 2300 2302 * @since 4.0.0 2301 2303 * 2304 * @see wp_embed_handler_youtube() 2305 * 2302 2306 * @param string $embed YouTube embed output. 2303 2307 * @param array $attr An array of embed attributes. 2304 2308 * @param string $url The original URL that was matched by the regex. … … 3232 3236 * @since 4.0.0 3233 3237 * 3234 3238 * @global wpdb $wpdb WordPress database access abstraction object. 3239 * 3235 3240 * @param string $url The URL to resolve. 3236 * @return int The found post _id.3241 * @return int The found post ID. 3237 3242 */ 3238 3243 function attachment_url_to_postid( $url ) { 3239 3244 global $wpdb; -
src/wp-includes/ms-blogs.php
910 910 * 911 911 * @since 4.0 912 912 * 913 * @param int $post_id Post ID 913 * @param int $post_id Post ID. 914 914 */ 915 915 function _update_posts_count_on_delete( $post_id ) { 916 916 if ( 'publish' !== get_post_field( 'post_status', $post_id ) ) { -
src/wp-includes/query.php
3932 3932 } 3933 3933 3934 3934 /** 3935 * Make private properties readable for backwards compatibility 3935 * Make private properties readable for backwards compatibility. 3936 3936 * 3937 3937 * @since 4.0.0 3938 * @param string $name 3939 * @return mixed 3938 * @access public 3939 * 3940 * @param string $name Property to get 3941 * @return mixed Property. 3940 3942 */ 3941 3943 public function __get( $name ) { 3942 3944 return $this->$name; 3943 3945 } 3944 3946 3945 3947 /** 3946 * Make private properties setable for backwards compatibility 3948 * Make private properties setable for backwards compatibility. 3947 3949 * 3948 3950 * @since 4.0.0 3949 * @param string $name 3950 * @return mixed 3951 * @access public 3952 * 3953 * @param string $name Property to check if set. 3954 * @return bool Whether the property is set. 3951 3955 */ 3952 3956 public function __isset( $name ) { 3953 3957 return isset( $this->$name ); 3954 3958 } 3955 3959 3956 3960 /** 3957 * Make private properties setable for backwards compatibility 3961 * Make private properties setable for backwards compatibility. 3958 3962 * 3959 3963 * @since 4.0.0 3960 * @param string $name 3961 * @return mixed 3964 * @access public 3965 * 3966 * @param string $name Property to unset. 3962 3967 */ 3963 3968 public function __unset( $name ) { 3964 3969 unset( $this->$name ); 3965 3970 } 3966 3971 3967 3972 /** 3968 * Make private/protected methods readable for backwards compatibility 3973 * Make private/protected methods readable for backwards compatibility. 3969 3974 * 3970 3975 * @since 4.0.0 3971 * @param string $name 3972 * @param array $arguments 3973 * @return mixed 3976 * @access public 3977 * 3978 * @param callable $name Method to call. 3979 * @param array $arguments Arguments to pass when calling. 3980 * @return mixed|bool Return value of the callback, otherwise false. 3974 3981 */ 3975 3982 public function __call( $name, $arguments ) { 3976 3983 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-includes/theme.php
1947 1947 * 1948 1948 * @since 4.0.0 1949 1949 * 1950 * @global WP_Customize_Manager $wp_customize Customizer instance. 1951 * 1950 1952 * @return bool True if the site is being previewed in the Customizer, false otherwise. 1951 1953 */ 1952 1954 function is_customize_preview() { -
src/wp-includes/user.php
840 840 } 841 841 842 842 /** 843 * Make private properties readable for backwards compatibility 843 * Make private properties readable for backwards compatibility. 844 844 * 845 845 * @since 4.0.0 846 * @param string $name 847 * @return mixed 846 * @access public 847 * 848 * @param string $name Property to get 849 * @return mixed Property. 848 850 */ 849 851 public function __get( $name ) { 850 852 return $this->$name; 851 853 } 852 854 853 855 /** 854 * Make private properties setable for backwards compatibility 856 * Make private properties setable for backwards compatibility. 855 857 * 856 858 * @since 4.0.0 857 * @param string $name 858 * @param string $value 859 * @return mixed 859 * @access public 860 * 861 * @param string $name Property to set. 862 * @param mixed $value Property value. 863 * @return mixed Newly-set property. 860 864 */ 861 865 public function __set( $name, $value ) { 862 866 return $this->$name = $value; 863 867 } 864 868 865 869 /** 866 * Make private properties checkable for backwards compatibility 870 * Make private properties checkable for backwards compatibility. 867 871 * 868 872 * @since 4.0.0 869 * @param string $name 870 * @return mixed 873 * @access public 874 * 875 * @param string $name Property to check if set. 876 * @return bool Whether the property is set. 871 877 */ 872 878 public function __isset( $name ) { 873 879 return isset( $this->$name ); 874 880 } 875 881 876 882 /** 877 * Make private properties unsetable for backwards compatibility 883 * Make private properties unsetable for backwards compatibility. 878 884 * 879 885 * @since 4.0.0 880 * @param string $name 881 * @return mixed 886 * @access public 887 * 888 * @param string $name Property to unset. 882 889 */ 883 890 public function __unset( $name ) { 884 891 unset( $this->$name ); … … 888 895 * Make private/protected methods readable for backwards compatibility 889 896 * 890 897 * @since 4.0.0 891 * @param string $name 892 * @param array $arguments 893 * @return mixed 898 * @access public 899 * 900 * @param callable $name Method to call. 901 * @param array $arguments Arguments to pass when calling. 902 * @return mixed|bool Return value of the callback, false otherwise. 894 903 */ 895 904 public function __call( $name, $arguments ) { 896 905 return call_user_func_array( array( $this, $name ), $arguments ); -
src/wp-includes/wp-db.php
1188 1188 * $sql = esc_sql( $wpdb->esc_like( $input ) ); 1189 1189 * 1190 1190 * @since 4.0.0 1191 * @access public 1191 1192 * 1192 * @param string $text The raw text to be escaped. The input typed by the user should have no extra or deleted slashes. 1193 * @return string Text in the form of a LIKE phrase. The output is not SQL safe. Call prepare or real_escape next. 1193 * @param string $text The raw text to be escaped. The input typed by the user should have no 1194 * extra or deleted slashes. 1195 * @return string Text in the form of a LIKE phrase. The output is not SQL safe. Call $wpdb::prepare() 1196 * or real_escape next. 1194 1197 */ 1195 function esc_like( $text ) {1198 public function esc_like( $text ) { 1196 1199 return addcslashes( $text, '_%\\' ); 1197 1200 } 1198 1201 -
src/wp-includes/wp-diff.php
431 431 } 432 432 433 433 /** 434 * Make private properties readable for backwards compatibility 434 * Make private properties readable for backwards compatibility. 435 435 * 436 436 * @since 4.0.0 437 * @param string $name 438 * @return mixed 437 * @access public 438 * 439 * @param string $name Property to get. 440 * @return mixed Property. 439 441 */ 440 442 public function __get( $name ) { 441 443 return $this->$name; 442 444 } 443 445 444 446 /** 445 * Make private properties setable for backwards compatibility 447 * Make private properties setable for backwards compatibility. 446 448 * 447 449 * @since 4.0.0 448 * @param string $name 449 * @param string $value 450 * @return mixed 450 * @access public 451 * 452 * @param string $name Property to check if set. 453 * @param mixed $value Property value. 454 * @return mixed Newly-set property. 451 455 */ 452 456 public function __set( $name, $value ) { 453 457 return $this->$name = $value; 454 458 } 455 459 456 460 /** 457 * Make private properties checkable for backwards compatibility 461 * Make private properties checkable for backwards compatibility. 458 462 * 459 463 * @since 4.0.0 460 * @param string $name 461 * @return mixed 464 * @access public 465 * 466 * @param string $name Property to check if set. 467 * @return bool Whether the property is set. 462 468 */ 463 469 public function __isset( $name ) { 464 470 return isset( $this->$name ); 465 471 } 466 472 467 473 /** 468 * Make private properties unsetable for backwards compatibility 474 * Make private properties unsetable for backwards compatibility. 469 475 * 470 476 * @since 4.0.0 471 * @param string $name 472 * @return mixed 477 * @access public 478 * 479 * @param string $name Property to unset. 473 480 */ 474 481 public function __unset( $name ) { 475 482 unset( $this->$name ); 476 483 } 477 484 478 485 /** 479 * Make private/protected methods readable for backwards compatibility 486 * Make private/protected methods readable for backwards compatibility. 480 487 * 481 488 * @since 4.0.0 482 * @param string $name 483 * @param array $arguments 484 * @return mixed 489 * @access public 490 * 491 * @param callable $name Method to call. 492 * @param array $arguments Arguments to pass when calling. 493 * @return mixed|bool Return value of the callback, false otherwise. 485 494 */ 486 495 public function __call( $name, $arguments ) { 487 496 return call_user_func_array( array( $this, $name ), $arguments );