mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide.
Ajax, while considered an acronym for Asynchronous JavaScript and XML, is most commonly capitalized only in the first character. Part props ocean90. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@38028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -38,7 +38,7 @@ class WP_Embed {
|
||||
// Attempts to embed all URLs in a post
|
||||
add_filter( 'the_content', array( $this, 'autoembed' ), 8 );
|
||||
|
||||
// After a post is saved, cache oEmbed items via AJAX
|
||||
// After a post is saved, cache oEmbed items via Ajax
|
||||
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
|
||||
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class WP_Embed {
|
||||
|
||||
/**
|
||||
* If a post/page was saved, then output JavaScript to make
|
||||
* an AJAX request that will call WP_Embed::cache_oembed().
|
||||
* an Ajax request that will call WP_Embed::cache_oembed().
|
||||
*/
|
||||
public function maybe_run_ajax_cache() {
|
||||
$post = get_post();
|
||||
|
||||
Reference in New Issue
Block a user