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. Built from https://develop.svn.wordpress.org/trunk@38028 git-svn-id: http://core.svn.wordpress.org/trunk@37969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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