We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098eaa3 commit a95788dCopy full SHA for a95788d
mu-plugins/jquery-filters.php
@@ -131,3 +131,15 @@ function strip_https($url) {
131
return str_replace( '//' . JQUERY_LIVE_SITE, '//' . JQUERY_STAGING_PREFIX . JQUERY_LIVE_SITE, $value );
132
} );
133
}
134
+
135
+add_filter( 'xmlrpc_wp_insert_post_data', function ( $post_data, $content_struct ) {
136
+ if ( $post_data['post_type'] !== 'page' ) {
137
+ return $post_data;
138
+ }
139
140
+ if ( isset( $content_struct['page_template'] ) ) {
141
+ $post_data['page_template'] = $content_struct['page_template'];
142
143
144
145
+}, /* priority */ 10, /* accepted args */ 2 );
0 commit comments