/
home
/
techb158
/
primomovers.ca
/
wp-content
/
plugins
/
polylang-pro
/
include
/
/home/techb158/primomovers.ca/wp-content/plugins/polylang-pro/include
mkdir
upload
Name
Size
Mode
Actions
format-util.php
2797
0644
edit
dl
rm
functions.php
454
0644
edit
dl
rm
pro.php
3414
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/plugins/polylang-pro/include/functions.php
(454B)
<?php /** * @package Polylang */ /** * Tells if the given REST request is in the edit context. * * @since 3.5 * * @param WP_REST_Request $request A REST request. * @return bool */ function pll_is_edit_rest_request( WP_REST_Request $request ): bool { if ( in_array( $request->get_method(), array( 'PATCH', 'POST', 'PUT' ), true ) ) { return true; } return 'GET' === $request->get_method() && 'edit' === $request->get_param( 'context' ); }
Save
get_method(), array( 'PATCH', 'POST', 'PUT' ), true ) ) { return true; } return 'GET' === $request->get_method() && 'edit' === $request->get_param( 'context' ); }