Plugin Directory

Changeset 3041353


Ignore:
Timestamp:
02/26/2024 02:30:13 PM (2 years ago)
Author:
pressmate
Message:

Fixes for publishing name not appearing and edit story

Location:
makestories-helper/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • makestories-helper/trunk/api/publish.php

    r3040153 r3041353  
    255255        $parsed = json_decode($response['body'], true);
    256256        if($parsed && !$parsed['error'] && $parsed['url']){
    257             if(isset($parsed['publisherDetails'])){
     257            if(isset($parsed['publisherDetails']) && is_array($parsed['publisherDetails'])){
    258258                update_post_meta( $post, "publisher_details", json_encode($parsed['publisherDetails']));
     259                wp_update_post([
     260                    "ID" => $post,
     261                    "post_title" => $parsed['publisherDetails']['title'],
     262                ]);
     263
    259264            }
    260265            print_r(
     
    271276            wp_die(json_encode([
    272277                "success" => false,
    273                 "error" => $parsed["message"] ? $parsed["message"] : 'Some error occured'
     278                "error" => $parsed["message"] ? $parsed["message"] : 'Some error occurred while publishing! Please try again or contact support if issue persists.'
    274279            ]));
    275280        }
  • makestories-helper/trunk/makestories.php

    r3040153 r3041353  
    44Plugin URI:     https://makestories.io/official-wordpress-webstories-plugin/
    55Description:    The leading Google Web Stories Editor is now available to create Stories in WordPress. It is easy to use, allows for extensive customization, and is adaptive for future changes.
    6 Version:        3.0.1
     6Version:        3.0.2
    77Author:         MakeStories Team
    88Author URI:     https://makestories.io
  • makestories-helper/trunk/pages/index.php

    r3037980 r3041353  
    174174    $post_type = get_post_type($post_id);
    175175    if($post_type === MS_POST_TYPE && $storyId){
    176         return admin_url("admin.php?page=".MS_ROUTING['EDITOR']['slug']."&mspage=edit-story&story=".$storyId);
     176        return admin_url("admin.php?page=".MS_ROUTING['EDITOR']['slug']."&mspage=edit-story&storyId=".$storyId);
    177177    }
    178178    return $link;
  • makestories-helper/trunk/readme.txt

    r3040153 r3041353  
    44Requires at least: 4.0
    55Tested up to: 6.4.3
    6 Stable tag: 3.0.1
     6Stable tag: 3.0.2
    77Requires PHP: 5.6
    88
Note: See TracChangeset for help on using the changeset viewer.