wp/wp-includes/customize/class-wp-customize-selective-refresh.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   279 	 * @since 4.5.0
   279 	 * @since 4.5.0
   280 	 *
   280 	 *
   281 	 * @param int    $errno   Error number.
   281 	 * @param int    $errno   Error number.
   282 	 * @param string $errstr  Error string.
   282 	 * @param string $errstr  Error string.
   283 	 * @param string $errfile Error file.
   283 	 * @param string $errfile Error file.
   284 	 * @param string $errline Error line.
   284 	 * @param int    $errline Error line.
   285 	 * @return true Always true.
   285 	 * @return true Always true.
   286 	 */
   286 	 */
   287 	public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) {
   287 	public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) {
   288 		$this->triggered_errors[] = array(
   288 		$this->triggered_errors[] = array(
   289 			'partial'      => $this->current_partial_id,
   289 			'partial'      => $this->current_partial_id,
   333 		 * Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts
   333 		 * Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts
   334 		 * and styles which may get enqueued in the response.
   334 		 * and styles which may get enqueued in the response.
   335 		 *
   335 		 *
   336 		 * @since 4.5.0
   336 		 * @since 4.5.0
   337 		 *
   337 		 *
   338 		 * @param WP_Customize_Selective_Refresh $this     Selective refresh component.
   338 		 * @param WP_Customize_Selective_Refresh $refresh  Selective refresh component.
   339 		 * @param array                          $partials Placements' context data for the partials rendered in the request.
   339 		 * @param array                          $partials Placements' context data for the partials rendered in the request.
   340 		 *                                                 The array is keyed by partial ID, with each item being an array of
   340 		 *                                                 The array is keyed by partial ID, with each item being an array of
   341 		 *                                                 the placements' context data.
   341 		 *                                                 the placements' context data.
   342 		 */
   342 		 */
   343 		do_action( 'customize_render_partials_before', $this, $partials );
   343 		do_action( 'customize_render_partials_before', $this, $partials );
   382 		 * Plugins may do things like call wp_footer() to scrape scripts output and return them
   382 		 * Plugins may do things like call wp_footer() to scrape scripts output and return them
   383 		 * via the {@see 'customize_render_partials_response'} filter.
   383 		 * via the {@see 'customize_render_partials_response'} filter.
   384 		 *
   384 		 *
   385 		 * @since 4.5.0
   385 		 * @since 4.5.0
   386 		 *
   386 		 *
   387 		 * @param WP_Customize_Selective_Refresh $this     Selective refresh component.
   387 		 * @param WP_Customize_Selective_Refresh $refresh  Selective refresh component.
   388 		 * @param array                          $partials Placements' context data for the partials rendered in the request.
   388 		 * @param array                          $partials Placements' context data for the partials rendered in the request.
   389 		 *                                                 The array is keyed by partial ID, with each item being an array of
   389 		 *                                                 The array is keyed by partial ID, with each item being an array of
   390 		 *                                                 the placements' context data.
   390 		 *                                                 the placements' context data.
   391 		 */
   391 		 */
   392 		do_action( 'customize_render_partials_after', $this, $partials );
   392 		do_action( 'customize_render_partials_after', $this, $partials );