Plugin Directory


Ignore:
Timestamp:
09/26/2026 04:01:43 PM (3 weeks ago)
Author:
TigrouMeow
Message:

Version 6.5.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wplr-sync/trunk/classes/api.php

    r3651505 r3714439  
    8080                        else if ( $args->action === 'linkinfo' )
    8181                                $this->linkinfo( $args );
     82                        else if ( $args->action === 'linkinfo_bulk' )
     83                                $this->linkinfo_bulk( $args );
    8284                        else if ( $args->action === 'list_unlinks' )
    8385                                $this->list_unlinks( $args );
    … …  
    359361        }
    360362
     363        // Get LinkInfo (without the hash) for many Media IDs at once
     364        function linkinfo_bulk( $args ) {
     365                global $wplr;
     366                $wp_ids = isset( $args->wp_ids ) ? (array)$args->wp_ids : array();
     367                $list = $wplr->linkinfo_bulk( $wp_ids );
     368                return $this->response( $list );
     369        }
     370
    361371        // List files (the Media IDs) that are not linked
    362372        function list_unlinks( $args ) {
Note: See TracChangeset for help on using the changeset viewer.