[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> revision.php (summary)

WordPress Administration Revisions API

File Size: 470 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  wp_get_revision_ui_diff()
  wp_prepare_revisions_for_js()
  wp_print_revision_templates()

Functions
Functions that are not part of a class:

wp_get_revision_ui_diff( $post, $compare_from, $compare_to )   X-Ref
Get the revision UI diff.

return: array|false Associative array of a post's revisioned fields and their diffs.
param: WP_Post|int $post         The post object or post ID.
param: int         $compare_from The revision ID to compare from.
param: int         $compare_to   The revision ID to come to.
since: 3.6.0

wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null )   X-Ref
Prepare revisions for JavaScript.

return: array An associative array of revision data and related settings.
param: WP_Post|int $post                 The post object or post ID.
param: int         $selected_revision_id The selected revision ID.
param: int         $from                 Optional. The revision ID to compare from.
since: 3.6.0

wp_print_revision_templates()   X-Ref
Print JavaScript templates required for the revisions experience.

since: 4.1.0



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1