Plugin Directory

Changeset 2626899


Ignore:
Timestamp:
11/09/2021 06:18:34 PM (4 years ago)
Author:
yikesinc
Message:

Update to version 2.0.6 from GitHub

Location:
wp-rest-api-controller
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-rest-api-controller/tags/2.0.6/admin/partials/settings-functions.php

    r2122081 r2626899  
    44// ------------------------------------------------------------------
    55//
     6
     7use wp_rest_api_controller;
     8
    69class wp_rest_api_controller_Settings {
    710
  • wp-rest-api-controller/tags/2.0.6/includes/class-wp-rest-api-controller.php

    r2489950 r2626899  
    8888
    8989        $this->plugin_name        = 'WP REST API Controller';
    90         $this->version            = '2.0.5';
    91         $this->enabled_post_types = $this->get_stored_post_types();
     90        $this->version            = '2.0.6';
     91        $this->enabled_post_types = self::get_stored_post_types();
    9292        $this->enabled_taxonomies = $this->get_stored_taxonomies();
    9393
     
    234234     * @since 1.0.0
    235235     */
    236     public function get_stored_post_types() {
     236    public static function get_stored_post_types() {
    237237        $stored_post_types = get_option( 'wp_rest_api_controller_post_types', false );
    238238
     
    358358            }
    359359
    360             $rest_base = $this->get_post_type_rest_base( $post_type_slug );
     360            $rest_base = self::get_post_type_rest_base( $post_type_slug );
    361361
    362362            if ( 'enabled' !== $enabled ) {
     
    498498
    499499        $original_meta_key_name = $this->get_original_meta_key_name( $object_type, $field_name, $is_tax );
    500        
    501         // If we can't find the original meta key name, then return. 
     500
     501        // If we can't find the original meta key name, then return.
    502502        // We do not want our get_post_meta() call to look like get_post_meta( $id, NULL, true ) or all meta fields will be returned
    503503        if ( empty( $original_meta_key_name ) ) {
  • wp-rest-api-controller/tags/2.0.6/readme.txt

    r2596924 r2626899  
    44Requires at least: WordPress 4.7
    55Tested up to: 5.8.1
    6 Stable tag: 2.0.5
     6Stable tag: 2.0.6
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.txt
  • wp-rest-api-controller/tags/2.0.6/wp-rest-api-controller.php

    r2489950 r2626899  
    44 * Plugin URI:        https://www.yikesplugins.com
    55 * Description:       WP REST API Controller enables a UI to toggle endpoints in the REST API.
    6  * Version:           2.0.5
     6 * Version:           2.0.6
    77 * Author:            YIKES, Inc.
    88 * Author URI:        https://www.yikesinc.com
  • wp-rest-api-controller/trunk/admin/partials/settings-functions.php

    r2122081 r2626899  
    44// ------------------------------------------------------------------
    55//
     6
     7use wp_rest_api_controller;
     8
    69class wp_rest_api_controller_Settings {
    710
  • wp-rest-api-controller/trunk/includes/class-wp-rest-api-controller.php

    r2489950 r2626899  
    8888
    8989        $this->plugin_name        = 'WP REST API Controller';
    90         $this->version            = '2.0.5';
    91         $this->enabled_post_types = $this->get_stored_post_types();
     90        $this->version            = '2.0.6';
     91        $this->enabled_post_types = self::get_stored_post_types();
    9292        $this->enabled_taxonomies = $this->get_stored_taxonomies();
    9393
     
    234234     * @since 1.0.0
    235235     */
    236     public function get_stored_post_types() {
     236    public static function get_stored_post_types() {
    237237        $stored_post_types = get_option( 'wp_rest_api_controller_post_types', false );
    238238
     
    358358            }
    359359
    360             $rest_base = $this->get_post_type_rest_base( $post_type_slug );
     360            $rest_base = self::get_post_type_rest_base( $post_type_slug );
    361361
    362362            if ( 'enabled' !== $enabled ) {
     
    498498
    499499        $original_meta_key_name = $this->get_original_meta_key_name( $object_type, $field_name, $is_tax );
    500        
    501         // If we can't find the original meta key name, then return. 
     500
     501        // If we can't find the original meta key name, then return.
    502502        // We do not want our get_post_meta() call to look like get_post_meta( $id, NULL, true ) or all meta fields will be returned
    503503        if ( empty( $original_meta_key_name ) ) {
  • wp-rest-api-controller/trunk/readme.txt

    r2596924 r2626899  
    44Requires at least: WordPress 4.7
    55Tested up to: 5.8.1
    6 Stable tag: 2.0.5
     6Stable tag: 2.0.6
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.txt
  • wp-rest-api-controller/trunk/wp-rest-api-controller.php

    r2489950 r2626899  
    44 * Plugin URI:        https://www.yikesplugins.com
    55 * Description:       WP REST API Controller enables a UI to toggle endpoints in the REST API.
    6  * Version:           2.0.5
     6 * Version:           2.0.6
    77 * Author:            YIKES, Inc.
    88 * Author URI:        https://www.yikesinc.com
Note: See TracChangeset for help on using the changeset viewer.