Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54192, comment 8


Ignore:
Timestamp:
10/10/2021 02:45:45 PM (3 years ago)
Author:
strarsis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54192, comment 8

    initial v1  
    33{{{#!php
    44<?php
    5 function get_attachment_id_by_rel_url($urL) {
    6     $url_abs    = home_url($urL);
     5function get_attachment_id_by_rel_url($url) {
     6    $url_abs    = home_url($url);
    77    $attachment = attachment_url_to_postid($url_abs);
    88    return $attachment;