Make WordPress Core

Ticket #38529: 38529.2.diff

File 38529.2.diff, 2.5 KB (added by joehoyle, 7 years ago)
  • src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

     
    11321132                                        'description'     => __( 'The content for the object.' ),
    11331133                                        'type'            => 'object',
    11341134                                        'context'         => array( 'view', 'edit', 'embed' ),
     1135                                        'arg_options'     => array(
     1136                                                'sanitize_callback' => null, // Note: sanitization implemented in self::prepare_item_for_database()
     1137                                        ),
    11351138                                        'properties'      => array(
    11361139                                                'raw'         => array(
    11371140                                                        'description'     => __( 'Content for the object, as it exists in the database.' ),
  • src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

     
    18131813                                                'description' => __( 'The title for the object.' ),
    18141814                                                'type'        => 'object',
    18151815                                                'context'     => array( 'view', 'edit', 'embed' ),
     1816                                                'arg_options' => array(
     1817                                                        'sanitize_callback' => null, // Note: sanitization implemented in self::prepare_item_for_database()
     1818                                                ),
    18161819                                                'properties'  => array(
    18171820                                                        'raw' => array(
    18181821                                                                'description' => __( 'Title for the object, as it exists in the database.' ),
     
    18341837                                                'description' => __( 'The content for the object.' ),
    18351838                                                'type'        => 'object',
    18361839                                                'context'     => array( 'view', 'edit' ),
     1840                                                'arg_options' => array(
     1841                                                        'sanitize_callback' => null, // Note: sanitization implemented in self::prepare_item_for_database()
     1842                                                ),
    18371843                                                'properties'  => array(
    18381844                                                        'raw' => array(
    18391845                                                                'description' => __( 'Content for the object, as it exists in the database.' ),
     
    18691875                                                'description' => __( 'The excerpt for the object.' ),
    18701876                                                'type'        => 'object',
    18711877                                                'context'     => array( 'view', 'edit', 'embed' ),
     1878                                                'arg_options' => array(
     1879                                                        'sanitize_callback' => null, // Note: sanitization implemented in self::prepare_item_for_database()
     1880                                                ),
    18721881                                                'properties'  => array(
    18731882                                                        'raw' => array(
    18741883                                                                'description' => __( 'Excerpt for the object, as it exists in the database.' ),