Making WordPress.org


Ignore:
Timestamp:
05/16/2024 01:30:50 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: SVN: Watch for Tag deletions, such that we can properly handle cases when a tag is deleted.

See #3263, #5900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tools/class-svn.php

    r11918 r13709  
    403403                                foreach ( $simple_xml->logentry as $entry ) {
    404404                                        $revision = (int) $entry->attributes()['revision'];
     405                                        $actions  = array();
    405406                                        $paths    = array();
    406407
    407408                                        foreach ( $entry->paths->children() as $child_path ) {
    408                                                 $paths[] = (string) $child_path;
     409                                                $path   = (string) $child_path;
     410                                                $action = (string) ( $child_path->attributes()['action'] ?? 'M' );
     411
     412                                                $paths[]          = $path;
     413                                                $actions[ $path ] = $action;
    409414                                        }
    410415
     
    414419                                                'date'     => strtotime( (string) $entry->date ),
    415420                                                'paths'    => $paths,
     421                                                'actions'  => $actions,
    416422                                                'message'  => (string) $entry->msg,
    417423                                        );
Note: See TracChangeset for help on using the changeset viewer.