plugin updates
This commit is contained in:
@@ -70,11 +70,10 @@ function acf_esc_attrs( $attrs ) {
|
||||
*
|
||||
* This function emulates `wp_kses_post()` with a context of "acf" for extensibility.
|
||||
*
|
||||
* @date 16/4/21
|
||||
* @since 5.9.6
|
||||
* @since 5.9.6
|
||||
*
|
||||
* @param string $string
|
||||
* @return string
|
||||
* @param string $string The string to be escaped
|
||||
* @return string|false
|
||||
*/
|
||||
function acf_esc_html( $string = '' ) {
|
||||
|
||||
@@ -88,12 +87,11 @@ function acf_esc_html( $string = '' ) {
|
||||
/**
|
||||
* Private callback for the "wp_kses_allowed_html" filter used to return allowed HTML for "acf" context.
|
||||
*
|
||||
* @date 16/4/21
|
||||
* @since 5.9.6
|
||||
*
|
||||
* @param array $tags An array of allowed tags.
|
||||
* @param string $context The context name.
|
||||
* @return array.
|
||||
* @param array $tags An array of allowed tags.
|
||||
* @param string $context The context name.
|
||||
* @return array
|
||||
*/
|
||||
function _acf_kses_allowed_html( $tags, $context ) {
|
||||
global $allowedposttags;
|
||||
|
||||
@@ -34,7 +34,7 @@ if ( ! class_exists( 'ACF_Ajax_Local_JSON_Diff' ) ) :
|
||||
public function get_response( $request ) {
|
||||
// Bail early if the current user can't access the ACF admin.
|
||||
if ( ! acf_current_user_can_admin() ) {
|
||||
return new WP_Error( 'acf_not_allowed', __( 'Sorry, you are not allowed to do that.', 'acf' ), array( 'status' => 403 ) );
|
||||
return new WP_Error( 'acf_not_allowed', __( 'Sorry, you do not have permission to do that.', 'acf' ), array( 'status' => 403 ) );
|
||||
}
|
||||
|
||||
$json = array();
|
||||
|
||||
@@ -21,7 +21,7 @@ if ( ! class_exists( 'ACF_Ajax_Upgrade' ) ) :
|
||||
*/
|
||||
public function get_response( $request ) {
|
||||
if ( ! current_user_can( acf_get_setting( 'capability' ) ) ) {
|
||||
return new WP_Error( 'upgrade_error', __( 'Sorry, you don\'t have permission to do that.', 'acf' ) );
|
||||
return new WP_Error( 'upgrade_error', __( 'Sorry, you do not have permission to do that.', 'acf' ) );
|
||||
}
|
||||
|
||||
// Switch blog.
|
||||
|
||||
@@ -1076,6 +1076,10 @@ function acf_shortcode( $atts ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( is_array( $value ) ) {
|
||||
$value = implode( ', ', $value );
|
||||
}
|
||||
|
||||
// Temporarily always get the unescaped version for action comparison.
|
||||
$unescaped_value = get_field( $atts['field'], $post_id, $atts['format_value'], false );
|
||||
|
||||
|
||||
@@ -437,13 +437,13 @@ if ( ! class_exists( 'acf_field_icon_picker' ) ) :
|
||||
'dashicons-book' => esc_html__( 'Book Icon', 'acf' ),
|
||||
'dashicons-book-alt' => esc_html__( 'Book (alt) Icon', 'acf' ),
|
||||
'dashicons-buddicons-activity' => esc_html__( 'Activity Icon', 'acf' ),
|
||||
'dashicons-buddicons-bbpress-logo' => esc_html__( 'BbPress Icon', 'acf' ),
|
||||
'dashicons-buddicons-bbpress-logo' => esc_html__( 'bbPress Icon', 'acf' ),
|
||||
'dashicons-buddicons-buddypress-logo' => esc_html__( 'BuddyPress Icon', 'acf' ),
|
||||
'dashicons-buddicons-community' => esc_html__( 'Community Icon', 'acf' ),
|
||||
'dashicons-buddicons-forums' => esc_html__( 'Forums Icon', 'acf' ),
|
||||
'dashicons-buddicons-friends' => esc_html__( 'Friends Icon', 'acf' ),
|
||||
'dashicons-buddicons-groups' => esc_html__( 'Groups Icon', 'acf' ),
|
||||
'dashicons-buddicons-pm' => esc_html__( 'Pm Icon', 'acf' ),
|
||||
'dashicons-buddicons-pm' => esc_html__( 'PM Icon', 'acf' ),
|
||||
'dashicons-buddicons-replies' => esc_html__( 'Replies Icon', 'acf' ),
|
||||
'dashicons-buddicons-topics' => esc_html__( 'Topics Icon', 'acf' ),
|
||||
'dashicons-buddicons-tracking' => esc_html__( 'Tracking Icon', 'acf' ),
|
||||
@@ -570,8 +570,8 @@ if ( ! class_exists( 'acf_field_icon_picker' ) ) :
|
||||
'dashicons-hidden' => esc_html__( 'Hidden Icon', 'acf' ),
|
||||
'dashicons-hourglass' => esc_html__( 'Hourglass Icon', 'acf' ),
|
||||
'dashicons-html' => esc_html__( 'HTML Icon', 'acf' ),
|
||||
'dashicons-id' => esc_html__( 'Id Icon', 'acf' ),
|
||||
'dashicons-id-alt' => esc_html__( 'Id (alt) Icon', 'acf' ),
|
||||
'dashicons-id' => esc_html__( 'ID Icon', 'acf' ),
|
||||
'dashicons-id-alt' => esc_html__( 'ID (alt) Icon', 'acf' ),
|
||||
'dashicons-image-crop' => esc_html__( 'Crop Icon', 'acf' ),
|
||||
'dashicons-image-filter' => esc_html__( 'Filter Icon', 'acf' ),
|
||||
'dashicons-image-flip-horizontal' => esc_html__( 'Flip Horizontal Icon', 'acf' ),
|
||||
|
||||
Reference in New Issue
Block a user